Kolbe Kegel
2015-02-05 20:03:02 UTC
Hi,
I'm converting from Markdown to PDF. This so far has been going really
well, but I ran into an issue where "Header 4" (#### in markdown) and
"Header 5" (##### in markdown) are translated, respectively,
into \paragraph and \subparagraph in LaTeX. Apparently LaTeX doesn't put a
linebreak after \paragraph and \subparagrph. The result is that the text in
Header 4 and Header 5 flows directly into the follow body.
I want to somehow have pandoc automatically add linebreaks after these
\paragraph and \subparagraph LaTeX commands. Is that feasible? Is there a
better solution?
For example:
<document>
# Header 1
## Header 2
### Header 3
This is the body of Header 3.
#### Header 4
This is the body of Header 4.
##### Header 5
This is the body of Header 5.
</document>
is rendered this way (copied/pasted from this PDF: http://uy.pe/f/test.pdf):
<output>
Header 1
Header 2
Header 3
This is the body of Header 3.
Header 4 This is the body of Header 4.
Header 5 This is the body of Header 5.
</output>
I am not really bothered by the fact that the font sizes of the "Header 4"
and "Header 5" output are indistinguishable from the font used for the
body. I'm only worried about the lack of linebreaks.
Any help or guidance would be much appreciated!
Kolbe
I'm converting from Markdown to PDF. This so far has been going really
well, but I ran into an issue where "Header 4" (#### in markdown) and
"Header 5" (##### in markdown) are translated, respectively,
into \paragraph and \subparagraph in LaTeX. Apparently LaTeX doesn't put a
linebreak after \paragraph and \subparagrph. The result is that the text in
Header 4 and Header 5 flows directly into the follow body.
I want to somehow have pandoc automatically add linebreaks after these
\paragraph and \subparagraph LaTeX commands. Is that feasible? Is there a
better solution?
For example:
<document>
# Header 1
## Header 2
### Header 3
This is the body of Header 3.
#### Header 4
This is the body of Header 4.
##### Header 5
This is the body of Header 5.
</document>
is rendered this way (copied/pasted from this PDF: http://uy.pe/f/test.pdf):
<output>
Header 1
Header 2
Header 3
This is the body of Header 3.
Header 4 This is the body of Header 4.
Header 5 This is the body of Header 5.
</output>
I am not really bothered by the fact that the font sizes of the "Header 4"
and "Header 5" output are indistinguishable from the font used for the
body. I'm only worried about the lack of linebreaks.
Any help or guidance would be much appreciated!
Kolbe
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+***@googlegroups.com.
To post to this group, send email to pandoc-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b4244cdf-5931-4bef-9318-323e0563bb94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+***@googlegroups.com.
To post to this group, send email to pandoc-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b4244cdf-5931-4bef-9318-323e0563bb94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.