Reputation: 2292
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.
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}")))
Upvotes: 1
Views: 11285
Reputation: 38942
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}
Upvotes: 3