Repository navigation
Expand file tree
/
Copy pathmain.tex
More file actions
102 lines (81 loc) · 3.05 KB
/
Copy pathmain.tex
File metadata and controls
102 lines (81 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
\input{glyphtounicode}\pdfgentounicode=1 % searchable, copyable text (pdflatex)
% ECCE by Example: worked calculations that show what ECCE does.
% Build: make (lualatex, makeindex, bibtex; see README.md)
\documentclass[
11pt,
fleqn,
a4paper,
]{LegrandOrangeBook}
% No font expansion: stretched glyphs make single words look like another font.
\microtypesetup{expansion=false}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{float}
\usepackage[version=4]{mhchem}
\usepackage{siunitx}
\usepackage{makeidx}
\makeindex
\setcounter{tocdepth}{2}
\graphicspath{{figures/}}
\input{ecce-macros}
\addbibresource{references.bib}
\author{CA Ohlin}
\title{ECCE by Example}
\hypersetup{
pdftitle={ECCE by Example},
pdfauthor={CA Ohlin},
pdfsubject={Computational chemistry with ECCE},
pdfkeywords={ECCE, computational chemistry, quantum chemistry, molecular dynamics, diffraction},
pdfcreator={LuaLaTeX},
}
\definecolor{ocre}{RGB}{243, 102, 25}
\chapterspaceabove{6.5cm}
\chapterspacebelow{6.75cm}
\setlength{\emergencystretch}{3em} % no lines into the margin
% Screenshots are large: without these, each one waits for a float page of its own
% at the end of the chapter, leaving half-empty pages behind.
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.6}
\renewcommand{\textfraction}{0.12}
\renewcommand{\floatpagefraction}{0.75}
\setcounter{totalnumber}{4}
\usepackage{etoolbox}
\AtBeginEnvironment{figure}{\setkeys{Gin}{height=0.45\textheight,keepaspectratio}}
\usetikzlibrary{calc}
\begin{document}
\frontmatter
% Cover: figures/cover.png from calculations/cover/compose.sh (art only, with the
% accent band at 0.556-0.667 of the page height); the text is set here.
\thispagestyle{empty}
\begin{tikzpicture}[remember picture, overlay]
\node[anchor=north west, inner sep=0pt] at (current page.north west)
{\includegraphics[width=\paperwidth,height=\paperheight]{figures/cover.png}};
\node[anchor=west, inner sep=0pt, text width=0.86\paperwidth, align=left, text=white, font=\sffamily]
at ($(current page.north west)!0.611!(current page.south west) + (0.07\paperwidth,0)$)
{{\fontsize{34}{38}\selectfont\bfseries ECCE by Example\par}\vspace{8pt}
{\large Worked calculations with the Extensible Computational Chemistry Environment\par}};
\node[anchor=south west, inner sep=0pt, font=\sffamily\huge\bfseries]
at ($(current page.south west) + (0.07\paperwidth,0.07\paperheight)$) {CA Ohlin};
\node[anchor=south east, inner sep=0pt, font=\sffamily\Large, text=ocre]
at ($(current page.south east) + (-0.07\paperwidth,0.07\paperheight)$) {For ECCE \ecceversion};
\end{tikzpicture}
\null\newpage
\input{frontmatter}
\pagestyle{empty}
\tableofcontents
\pagestyle{fancy}
\cleardoublepage
\mainmatter
\input{chapters/introduction}
% Parts and chapters: chapters/plan.tex, written by chapters.py (make plan).
\input{chapters/plan}
\backmatter
\printbibliography[heading=bibintoc, title={Bibliography}]
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Index}
\printindex
\end{document}