Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Columns #44

Open
michelk opened this issue Jan 3, 2018 · 2 comments
Open

Feature Request: Columns #44

michelk opened this issue Jan 3, 2018 · 2 comments

Comments

@michelk
Copy link

michelk commented Jan 3, 2018

LaTeX Beamer for example supports column-layout.

Beamer-images

It would be nice, if this would also be available in patat. Pandoc supports this since this commit.

@jaspervdj
Copy link
Owner

This seems reasonable (although I guess you can already do something similar with tables).

Could you mock up a screenshot (or txt...) of what you expect the output to look like?

@michelk
Copy link
Author

michelk commented Jan 4, 2018

I would like to patat behave like tmux or vim when doing a vertical split. This would need information about the terminal width. I'm not sure if this is easy to query. An additional enhancement would be auto-updating, if terminal width (e.g. within a tmux session) changes.

So for example from

## Columns
 :::::::::::::: {.columns}
 ::: {.column width="50%"}
 left column content:
 
 - uno
 - due
 - tre
 
 > Some quote
 
 :::
 ::: {.column width="50%"}
 right column content
 
 Code with empty line:
 
     puts "wow"
 
     puts "amaze"
 
 > Some quote
 
 :::
 ::::::::::::::

I would expect

## Columns
 
 
 left column content:                       | right column content
                                            | Code with empty line:
 - uno                                      |
 - due                                      |     puts "wow"
 - tre                                      |
                                            |     puts "amaze"
 > Some quote                               |
                                            | > Some quote
 


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants