diff --git a/src/Writers/LaTeXWriter.jl b/src/Writers/LaTeXWriter.jl index 3c048a2878..e82d2247a3 100644 --- a/src/Writers/LaTeXWriter.jl +++ b/src/Writers/LaTeXWriter.jl @@ -221,14 +221,35 @@ function writeheader(io::IO, doc::Documents.Document) \\usepackage{./documenter} \\usepackage{./custom} - \\settocdepth{section} - + %% Title Page \\title{ {\\HUGE $(doc.user.sitename)}\\\\ {\\Large $(get(ENV, "TRAVIS_TAG", ""))} } \\author{$(doc.user.authors)} + %% TOC settings + % -- TOC depth + % value: [part, chapter, section, subsection, + % subsubsection, paragraph, subparagraph] + \\settocdepth{section} % show "part+chapter+section" in TOC + % -- TOC spacing + % ref: https://tex.stackexchange.com/questions/60317/toc-spacing-in-memoir + % doc: memoir/memman.pdf + % - Figure 9.2: Layout of a ToC + % - Table 9.3: Value of K in macros for styling entries + \\makeatletter + % {part} to {chaper} + \\setlength{\\cftbeforepartskip}{1.5em \\@plus \\p@} + % {chaper} to {chaper} + \\setlength{\\cftbeforechapterskip}{0.0em \\@plus \\p@} + % Chapter num to chapter title spacing (Figure 9.2@memman) + \\setlength{\\cftchapternumwidth}{2.5em \\@plus \\p@} + % indent before section number + \\setlength{\\cftsectionindent}{2.5em \\@plus \\p@} + \\makeatother + + %% Main document begin \\begin{document} \\frontmatter