jgm / pandoc

Universal markup converter
https://pandoc.org
Other
33.39k stars 3.31k forks source link

4th level headers and greater do not render correctly in pdf #783

Closed reubano closed 11 years ago

reubano commented 11 years ago
# Level 1

## Level 2

### Level 3

#### Level 4

##### Level 5

###### Level 6

should look like

Level 1

Level 2

Level 3

Level 4

Level 5
Level 6

but instead looks like

Level 1

Level 2

Level 3

Level 4

Level 5 Level 6

As shown, it places level 6 on the same line as the previous level.

pandoc v1.11

jgm commented 11 years ago

These are rendered to latex (from which PDF is produced) as follows:

\section{Level 1}

\subsection{Level 2}

\subsubsection{Level 3}

\paragraph{Level 4}

\subparagraph{Level 5}

Level 6

Level 6 is just a regular paragraph, because standard LaTeX doesn't have a 6th header level. And by default, \subparagraph will produce a heading on a following paragraph.

Anyway, these are the standard LaTeX section heading commands. I see nothing wrong with pandoc's output. You can adjust how they appear (except in the level 6 case) by customizing your latex template.

+++ Reuben Cummings [Mar 13 13 06:18 ]:

Level 1

Level 2

Level 3

Level 4

Level 5
Level 6

should look like

                                Level 1

Level 2

Level 3

Level 4

  Level 5

    Level 6

but instead looks like

Level 1

  Level 2

Level 3

Level 4

Level 5 Level 6

As shown, it places level 6 on the same line as the previous level.

pandoc v1.11

— Reply to this email directly or [1]view it on GitHub. [xJAuenYDiIoVt3LF3y6846ECXxq2hlCujsrFg2O5YPPDRm4uuiyTOtSrzmHRIewT.gif]

References

  1. https://github.com/jgm/pandoc/issues/783
reubano commented 11 years ago

Where in the template do I make the change? default.latex doesn't show those headings.

On Wed, Mar 13, 2013 at 4:57 PM, John MacFarlane notifications@github.comwrote:

These are rendered to latex (from which PDF is produced) as follows:

\section{Level 1}

\subsection{Level 2}

\subsubsection{Level 3}

\paragraph{Level 4}

\subparagraph{Level 5}

Level 6

Level 6 is just a regular paragraph, because standard LaTeX doesn't have a 6th header level. And by default, \subparagraph will produce a heading on a following paragraph.

Anyway, these are the standard LaTeX section heading commands. I see nothing wrong with pandoc's output. You can adjust how they appear (except in the level 6 case) by customizing your latex template.

+++ Reuben Cummings [Mar 13 13 06:18 ]:

Level 1

Level 2

Level 3

Level 4

Level 5
Level 6

should look like

Level 1

Level 2

Level 3

Level 4

Level 5

Level 6

but instead looks like

Level 1

Level 2

Level 3

Level 4

Level 5 Level 6

As shown, it places level 6 on the same line as the previous level.

pandoc v1.11

— Reply to this email directly or [1]view it on GitHub. [xJAuenYDiIoVt3LF3y6846ECXxq2hlCujsrFg2O5YPPDRm4uuiyTOtSrzmHRIewT.gif]

References

  1. https://github.com/jgm/pandoc/issues/783

— Reply to this email directly or view it on GitHubhttps://github.com/jgm/pandoc/issues/783#issuecomment-14842342 .


Reuben Cummings Arusha, Tanzania reubano@gmail.com

+255 756 477 319 (vodacom) +255 789 477 319 (airtel) +254 717 427 367 (safaricom) +1 (234) 738-2266 (u.s.)

skype/twitter/linkedin - reubano

jgm commented 11 years ago

You'd have to put some new commands in the preamble of the template (the part before \begin{document}. What you put there depends on what you want to do, and how you choose to do it. There are a number of options. See these links: http://tex.stackexchange.com/questions/59726/change-size-of-section-subsection-subsubsection-paragraph-and-subparagraph-ti http://stackoverflow.com/questions/10563043/how-to-start-new-line-after-paragraph-title-in-lyx