0
votes

I'm using Emacs and its org mode markup language to generate PDFs. It uses LaTeX however I write the markup similar to a markdown document, then the LaTeX export is handled by Emacs relying on a config file.

enter image description here

I tried increasing the size of the sections by using the sectsy package. It works but only for the first level heading, all the other headings stays the same small size. How can I fix that? I want the other headings to increase as well to some extent. Of course, the second level heading has to be a little bit smaller size than the first level heading and so on.

Also I would like to increase the body text as well just a little bit, like 1pt or something like that. These are the options I fed to Emacs's config file:

  (require 'ox-latex)

  (setq org-latex-compiler "xelatex")
  (add-to-list 'org-latex-classes
               '("article"
                 "\\documentclass[11pt,a4paper]{article}
                  \\usepackage{fontspec}
                  \\setmainfont{Charis SIL}
                  \\usepackage{geometry}
                  \\geometry{a4paper, left=0.67in, right=0.67in,
                             top=0.5in, bottom=0.67in}
                  \\setlength{\\parindent}{0pt}
                  \\setlength{\\parskip}{1em}
                  \\setcounter{secnumdepth}{0}
                  \\renewcommand{\\baselinestretch}{1.2}"
                 ("\\section{%s}"       . "\\section*{%s}")
                 ("\\subsection{%s}"    . "\\subsection*{%s}")
                 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                 ("\\paragraph{%s}"     . "\\paragraph*{%s}")
                 ("\\subparagraph{%s}"  . "\\subparagraph*{%s}")))
1
For the text size, you might want to modify (or add) another section to org-latex-classes which mimics article except that it uses e.g. 12pt as a class option.NickD
shouldn't be the size specified in this line \\setmainfont{Charis SIL} instead?Zoltan King

1 Answers

1
votes

You can use the sectsty package to also change the size of lower level sectioning commands:

\usepackage{sectsty}
\sectionfont{\Huge}
\subsectionfont{\LARGE}
\subsubsectionfont{\Large}
\paragraphfont{\large}
\subparagraphfont{\normalsize}