summaryrefslogtreecommitdiff
path: root/summary.tex
blob: ebb4477993756330f01fc7edb9248c24de27ac6c (plain) (blame)
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
\documentclass[10pt,a4paper]{article}

\title{An Introduction to Christian Theology\\\normalsize{Summary of the book by Plantinga, Thompson and Lundberg}}
\author{Camil Staps}

\usepackage{dogmatics}
\showquestionsfalse%

\usepackage[top=2cm, bottom=3cm, left=3cm, right=5cm, heightrounded,
marginparwidth=3.8cm, marginparsep=0.4cm]{geometry}
\usepackage[hidelinks]{hyperref}
\usepackage[english]{babel}
\usepackage{multicol}
\usepackage{array}
\usepackage{morefloats}

\makeatletter
% Align marginpars to inside; doesn't work yet
\let\oldmarginpar\marginpar%
\renewcommand*{\marginpar}[1]{\oldmarginpar{\color{black}#1}}
% Smaller font in marginpars
\long\def\@ympar#1{%
	\@savemarbox\@marbox{\scriptsize #1}%
	\global\setbox\@currbox\copy\@marbox%
	\@xympar}
\makeatother

% Indexing
\usepackage{makeidx}
\usepackage{multicol}
\makeindex
% Index on same page; http://tex.stackexchange.com/a/23873/23992
% But in next column; http://tex.stackexchange.com/a/27481/23992
\makeatletter
\renewenvironment{theindex}
	{\vfill\eject\section*{\indexname}%
		\@mkboth{\MakeUppercase\indexname}%
		        {\MakeUppercase\indexname}%
		\thispagestyle{plain}\parindent\z@
		\parskip\z@ \@plus .3\p@\relax
		\columnseprule \z@
		\columnsep 35\p@
		\let\item\@idxitem}
	{}
\makeatother

% Show index entries in the margin notes; see http://tex.stackexchange.com/q/236373/23992
\usepackage{xparse}
\let\oldindex\index%
\renewcommand\qindex[1]{\oldindex{#1}}
\renewcommand{\index}[1]{%
		\oldindex{#1}%
		\marginpar{\bfseries\splitentry{#1}}%
}
\NewDocumentCommand{\splitentry}{	>{\SplitArgument{1}{!}}	m	}
	{%
		\splitentryEM#1%
	}
\NewDocumentCommand{\splitentryEM}{mm}
	{%
		\splitentryBAR{#1}%
		\IfValueT{#2}{,	\splitentryBAR{#2}}%
	}
\NewDocumentCommand{\splitentryBAR}{	>{\SplitArgument{1}{|}}	m	}
	{%
		\dosplitentryBAR#1%
	}
\NewDocumentCommand{\dosplitentryBAR}{	>{\SplitArgument{1}{@}}	m	m	}
	{%
		\splitentryAT#1%
	}
\NewDocumentCommand{\splitentryAT}{	m	m	}
	{
		\IfNoValueTF{#2}{#1}{#2}%
	}

\begin{document}

\maketitle

\input{sum-chap-3.tex}
\input{sum-chap-4.tex}
\input{sum-chap-6.tex}
\input{sum-chap-9.tex}
\input{sum-chap-13.tex}
\input{sum-chap-16.tex}

\clearpage\onecolumn%
\begin{multicols}{3}
	\printindex
\end{multicols}

\end{document}