-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
611b160
commit 401718b
Showing
14 changed files
with
256 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
%% Default preamble BEGIN | ||
\documentclass[oneside]{memoir} | ||
|
||
\usepackage{./documenter} | ||
\usepackage{./custom} | ||
|
||
%% Title Page | ||
\title{ | ||
{\HUGE \DocMainTitle }\\ | ||
{\Large \deprecatedEnvTravisTag } | ||
} | ||
\author{ \DocAuthors } | ||
|
||
%% 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@} | ||
% Section num to section title spacing (Figure 9.2@memman) | ||
\setlength{\cftsectionnumwidth}{4.0em \@plus \p@} | ||
\makeatother | ||
|
||
%% Main document begin | ||
\begin{document} | ||
|
||
\frontmatter | ||
\maketitle | ||
\clearpage | ||
\tableofcontents | ||
|
||
\mainmatter | ||
%% preamble END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
\documentclass[oneside]{memoir} | ||
|
||
\usepackage{./documenter} | ||
\usepackage{./custom} | ||
|
||
%% Main document begin | ||
\begin{document} | ||
|
||
\input{assets/titlepage.tex} | ||
|
||
\frontmatter | ||
% \maketitle | ||
\clearpage | ||
\tableofcontents | ||
|
||
\mainmatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
% ref: P65 - http://mirrors.ctan.org/macros/latex/contrib/memoir/memman.pdf | ||
\begin{titlingpage} | ||
\begin{center} | ||
\vspace*{2cm}\noindent | ||
|
||
%% ---- Main title | ||
\Huge \textbf{ \DocMainTitle } | ||
\\[0.6cm] | ||
|
||
%% ---- Subtitle | ||
{\LARGE Built by Julia \JuliaVersion } | ||
\vspace*{3cm}\par\noindent | ||
|
||
\textbf{ \DocAuthors } | ||
\vfill | ||
|
||
%% ---- logo | ||
\includegraphics[width=0.4\textwidth]{example-image} | ||
\\[1.5cm] | ||
|
||
\Large | ||
\deprecatedEnvTravisTag | ||
\today | ||
|
||
\end{center} | ||
\end{titlingpage} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Test Case: Customized Cover Page | ||
|
||
![cover](./assets/cover.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
\documentclass[oneside]{memoir} | ||
\usepackage{./documenter} | ||
\usepackage{./custom} | ||
|
||
%% Title Page | ||
\title{ | ||
{\HUGE \DocMainTitle }\\ | ||
{\Large \deprecatedEnvTravisTag } | ||
} | ||
\author{ \DocAuthors } | ||
|
||
%% TOC settings | ||
% -- TOC depth | ||
% value: [part, chapter, section, subsection, | ||
% subsubsection, paragraph, subparagraph] | ||
\settocdepth{chapter} % show "part+chapter" in TOC | ||
|
||
|
||
%% Main document begin | ||
\begin{document} | ||
\frontmatter | ||
\maketitle | ||
\clearpage | ||
\tableofcontents | ||
\mainmatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# LaTeX backend test case: LaTeX TOC style | ||
|
||
|
||
With the default settings of `Documenter.jl`, the section name will be displayed in the TOC. | ||
|
||
```tex | ||
%% TOC settings | ||
% -- TOC depth | ||
% value: [part, chapter, section, subsection, | ||
% subsubsection, paragraph, subparagraph] | ||
\settocdepth{section} % show "part+chapter+section" in TOC | ||
``` | ||
|
||
You can modify settings that related to the TOC format by add customized `preamble.tex`. | ||
|
||
## Only show part and chapter in TOC | ||
|
||
```tex | ||
\settocdepth{part} % show "part+chapter" in TOC | ||
``` | ||
|
||
## Default style vs. custom style | ||
|
||
Left side: default style, show "part+chapter+section" in TOC. | ||
|
||
Right side: custom style, show "part+chapter" in TOC. | ||
|
||
![default vs. customized](./assets/default-customized.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters