-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Allow multicols env in LaTeX reader #6449
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
base: main
Are you sure you want to change the base?
Conversation
28e949e
to
929e103
Compare
Maybe even better, we could parse it into a structure with Divs.
We actually support this in beamer output. |
Agree! I just discovered that HTML/CSS support multi-columns docs nowadays (not very useful to me, though). |
There is one external div with class "columns", and N internal divs (where N = the number of columns) each with class "column". |
929e103
to
ade67f7
Compare
The multicols environment has a mandatory argument - number of columns. It is incorrectly parsed as plain string. Wrap multicols content into nested divs. Signed-off-by: Igor Pashev <pashev.igor@gmail.com>
ade67f7
to
aab5127
Compare
[Div ("",["column"],[]) | ||
[Div ("",["column"],[]) | ||
[Para [Str "Hello"]]]]] | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you may have misunderstood what I meant about two column
Divs: the structure should be:
Div columns
[ Div column
, Div column ]
and not
Div columns
[ Div column
[ Div column ...
Does that make more sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, what would be the content of the first div for example? Empty?
Div columns
[ Div column ""
, Div column "text foo hello"]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I need to understand better what you're trying to do.
The latex multicols environment creates columned text, but it computes where the column breaks go.
In order to duplicate this in pandoc we'd need pandoc to compute where a new column starts.
Is this something you're trying to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I am basically trying to ignore the number of columns in latex :)
\begin{multicols}{2} % <- here
% ...
\end{multicols}
There is nothing more we can do, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then maybe I led you astray in my advice to include the nested column divs.
Maybe it makes most sense simply to include an outer "columns" div, and then the content inside.
The multicols environment has a mandatory argument - number of columns.
It is incorrectly parsed as plain string. Wrap multicols content into nested divs.
Signed-off-by: Igor Pashev pashev.igor@gmail.com