Debian Codegraph @

texmf-dist/doc/latex/fancyhandout/fancyhandout-doc.tex

raw
1 %% This is file 'fancyhandout-doc.tex', Version 2018-01-22
2 %% Copyright 2017-18 Sebastian Friedl <[email protected]>
3 %%
4 %% This work may be distributed and/or modified under the conditions of the LaTeX Project
5 %% Public License, either version 1.3c of this license or (at your option) any later version.
6 %% The latest version of this license is available at
7 %% http://www.latex-project.org/lppl.txt
8 %% and version 1.3c or later is part of all distributions of LaTeX version 2008-05-04 or later.
9 %%
10 %% This work has the LPPL maintenance status 'maintained'.
11 %% Author: Sebastian Friedl
12 %% Current maintainer of this work is Sebastian Friedl
13 %%
14 %% This work consists of the files fancyhandout.cls and fancyhandout-doc.tex
15 %%
16 %% ---------------------------------------------------------------------------------------------------------------------------------------------
17 %%
18 %% A LaTeX class for producing nice-looking handouts.
19 %%
20 %% ---------------------------------------------------------------------------------------------------------------------------------------------
21 %%
22 %% Please report bugs and other problems as well as suggestions for improvements to the following email address: [email protected]
23 %%
24 %% ---------------------------------------------------------------------------------------------------------------------------------------------
25
26
27 \documentclass[11pt]{ltxdoc}
28
29 \usepackage{csquotes}
30 \usepackage[unicode, pdfborder={0 0 0}]{hyperref}
31 \usepackage{verbatim}
32
33 \usepackage[erewhon]{newtxmath}
34 \usepackage{fontspec}
35 \setmainfont{erewhon}
36 \setsansfont[Scale=MatchLowercase]{Source Sans Pro}
37 \setmonofont[Scale=MatchLowercase]{Hack}
38
39 \usepackage{polyglossia}
40 \setdefaultlanguage{english}
41 \usepackage[english]{selnolig}
42
43
44 \MakeShortVerb{"}
45 \parindent0pt
46
47 \usepackage[left=4.50cm,right=2.75cm,top=3.25cm,bottom=2.75cm,nohead]{geometry}
48
49 \hyphenation{re-du-cing}
50
51 \title{The \texttt{fancyhandout} class \\ {\large\url{https://github.com/SFr682k/fancyhandout}}}
52 \author{Sebastian Friedl \\ \href{mailto:[email protected]}{\ttfamily [email protected]}}
53 \date{2018/01/22}
54
55 \hypersetup{pdftitle={The fancyhandout class},pdfauthor={Sebastian Friedl}}
56
57 \begin{document}
58 \maketitle
59
60 \begin{abstract}\parindent0pt%
61 \noindent%
62 \textbf{A \LaTeX\ class for producing nice-looking handouts.}
63
64 \smallskip
65 Many students conducting a presentation are asked to provide a handout containing the essential information of their report.
66 However, \LaTeX\ has never been designed for typesetting such documents mostly consisting out of bullet points.
67
68 \smallskip
69 "fancyhandout" breaks up with some of \LaTeX's principles and redefines basic \LaTeX\ commands with the aim of producing well-designed and clear structured handouts: \\
70 A \textsf{sans-serif} font is used by default, sections are not numbered and highlighted by underlining them, head- and footline display document information and for avoiding too large whitespace around the text, the margin sizes are adjusted to a proper value.
71
72 \smallskip
73 All together, "fancyhandout" provides a way of typesetting documents not exclusively consisting of running text in a beautiful way.
74 \end{abstract}
75
76
77 \tableofcontents
78 \clearpage
79
80
81
82 \subsection*{Dependencies on other packages}
83 \addcontentsline{toc}{subsection}{Dependencies on other packages}
84 The "fancyhandout" class requires \LaTeXe\ and the following packages:
85 \begin{multicols}{3}\ttfamily\centering
86 csquotes \\ enumitem \\ etoolbox \\ fancyhdr \\ geometry \\ xcolor
87 \end{multicols}
88
89 \subsection*{License}
90 \addcontentsline{toc}{subsection}{License}
91 \textcopyright\ 2017-18 Sebastian Friedl
92
93 \smallskip
94 This work may be distributed and/or modified under the conditions of the \LaTeX\ Project Public License, either version 1.3c of this license or (at your option) any later version.
95
96 \smallskip
97 The latest version of this license is available at \url{http://www.latex-project.org/lppl.txt} and version 1.3c or later is part of all distributions of \LaTeX\ version 2008-05-04 or later.
98
99 \smallskip
100 This work has the LPPL maintenance status \enquote*{maintained}. The current maintainer of this work is Sebastian Friedl. \\
101 This work consists of the following files:
102 \begin{itemize} \itemsep 0pt
103 \item "fancyhandout.cls" and
104 \item "fancyhandout-doc.tex"
105 \end{itemize}
106
107
108 \subsection*{Call for cooperation}
109 \addcontentsline{toc}{subsection}{Call for cooperation}
110 Please report bugs and other problems as well as suggestions for improvements by using the \href{https://github.com/SFr682k/fancyhandout/issues}{issue tracker on GitHub} or sending an email to \href{mailto:[email protected]}{\texttt{[email protected]}}.
111
112
113 \clearpage
114
115
116
117 % DOCUMENTATION PART ----------------------------------------------------------------------
118
119 \section{Creating a handout}
120 \subsection{Loading \texttt{fancyhandout}}
121 Load "fancyhandout" by using the "\documentclass" command.
122
123 \bigskip
124 By default, "fancyhandout" typesets documents using two side page layout on DIN/ISO A4 paper and an 11pt \textsf{sans serif} font. This can be changed by using these class options:
125
126 \medskip
127 \DescribeMacro{10pt}\DescribeMacro{12pt}
128 These options change the font size to 10 or 12 points. \\
129 Please do \emph{not} use both options simultaneously.
130
131 \medskip
132 \DescribeMacro{rmfont}
133 This option changes the used font to the roman (=\,serif) one.
134
135 \medskip
136 \DescribeMacro{letter}
137 This option changes the page size to letter format.
138
139 \medskip
140 \DescribeMacro{oneside}
141 This option leads to using one side page layout.
142
143
144 \subsection{Providing document information}\label{docinfo}
145 Basic \LaTeX\ defines the commands "\title", "\author" and "\date" for providing document information.
146 When using "fancyhandout" the following ones are available:
147
148 \medskip
149 \DescribeMacro{\title}
150 Sets the handout's title. \\[\smallskipamount]
151 \textit{Example:}\quad "\title{An introduction on \texttt{fancyhandout}}"
152
153 \medskip
154 \DescribeMacro{\subtitle}
155 When required, a subtitle may be also provided. \\[\smallskipamount]
156 \textit{Example:}\quad "\subtitle{With some notes on \LaTeX\ itself}"
157
158 \medskip
159 \DescribeMacro{\author}
160 Useful for specifying the author(s). \\
161 Multiple authors should be separated using the "\and" command inside "\author" (e.~g. "\author{J. Doe \and M. Mustermann}"). \\
162 "\and" will expand to "\qquad" in the title and to ",~" in the headline. \\[\smallskipamount]
163 \textit{Example:}\quad "\author{Sebastian Friedl}"
164
165 \medskip
166 \DescribeMacro{\institute}
167 Additional to or instead of the author(s), it is also possible to specify the institute name(s). \\
168 You may also use the "\and" command to separate different names. \\
169 However, information about the institute won't be shown in the headline. \\[\smallskipamount]
170 \textit{Example:}\quad "\institute{University of Foo Bar City}"
171
172 \medskip
173 \DescribeMacro{\date}
174 This command changes the date shown in the title and footline.
175 "\date"'s value is "\today" until another value for "\date" is given. \\[\smallskipamount]
176 \textit{Example:}\quad "\date{20. January 2018}"
177
178 \subsubsection*{Short version}
179 It is also possible to provide short versions of the command's values as an optional argument in squared braces.
180 These are only used inside the head- or footline. \\[\smallskipamount]
181 \textit{Example:}\quad "\author[S. Friedl]{Sebastian Friedl}"
182
183
184 \subsection{The handout title}
185 \DescribeMacro{\maketitle}
186 Using the "\maketitle" command, a colored title box displaying the document information listed in section \ref{docinfo} gets typeset.
187
188 \medskip
189 The colors of the box can be changed by "\colorlet"ting …
190 \begin{itemize}
191 \item "fancyhandouttboxlinecolor" \\
192 to change the color used for drawing the line around the title box \\[\smallskipamount]
193 \textit{Example:}\quad "\colorlet{fancyhandouttboxlinecolor}{red!80!black}"
194
195 \item "fancyhandouttboxfillcolor" \\
196 to change the color used for filling the title box \\[\smallskipamount]
197 \textit{Example:}\quad "\colorlet{fancyhandouttboxfillcolor}{red!10}"
198 \end{itemize}
199
200
201 \subsection{Sectioning}
202 \DescribeMacro{\section}\DescribeMacro{\subsection}\DescribeMacro{\subsubsection}
203 "fancyhandout" supports the three basic sectioning commands "\section", "\subsection" and "\subsubsection". These commands produce sections, subsections and subsubsections visible in the table of contents (TOC). \\
204 \DescribeMacro{\section*}\DescribeMacro{\subsection*}\DescribeMacro{\subsubsection*}
205 The starred versions "\section*", "\subsection*" and "\subsubsection*" are also provided to produce sections, subsections and subsubsections not visible in the table of contents.
206
207 \medskip
208 All sections, subsections and subsubsections are \emph{not} numbered. \\
209 Section and subsection headings are underlined to stand out. The colors of these lines can be changed by "\colorlet"ting …
210 \begin{itemize}
211 \item "fancyhandoutsectlinecolor" \\
212 to change the color used for underlining section headings \\[\smallskipamount]
213 \textit{Example:}\quad "\colorlet{fancyhandoutsectlinecolor}{red!80!black}"
214
215 \item "fancyhandoutsubsectlinecolor" \\
216 to change the color used for underlining subsection headings \\[\smallskipamount]
217 \textit{Example:}\quad "\colorlet{fancyhandoutsubsectlinecolor}{red!70!black!70}"
218 \end{itemize}
219
220 \medskip
221 \textbf{Important note:} \\
222 Unlike "article"'s sectioning commands, "fancyhandout"'s sectioning commands do \emph{not} accept optional arguments in squared braces.
223
224
225 \subsection{The main content}
226 The main content may be any arbitrary \LaTeX\ code.
227
228 \medskip
229 \textbf{Note:} \\
230 Neither the sectioning commands, nor the table of contents print section, subsection and subsubsection numbers in front of section headings. \\
231 Therefore, relying on section numbers when numbering things like figures and equations is usually a very, \emph{very} bad idea. Rely on page numbers instead.
232
233
234
235
236 \section{Advanced settings}
237 \subsection{Lists}
238 By default, "fancyhandout" loads "enumitem" for setting "itemsep" to~"0ex" and reducing "topsep" to~".75ex". \\
239 \DescribeMacro{\setlist}
240 These settings can be reverted or modified using the "\setlist" command (see "enumitem"'s package documentation for further details).
241
242 \subsection{Page margins}
243 "fancyhandout" uses the "geometry" package for setting the page margins to 2.25\,cm each, including page head and foot. \\
244 \DescribeMacro{\geometry}
245 These margins (and the page geometry) can be modified using the "\geometry" command (see "geometry"'s package documentation for further details).
246
247 \smallskip
248 \DescribeMacro{typearea}
249 Also, it is possible to construct the page area by loading the "typearea" package.
250
251 \subsection{Paragraph indent}
252 \DescribeMacro{\parindent}
253 The length of "\parindent" is set to "0pt" when loading "fancyhandout". If you want to change it, simply use a command like "\parindent1em" after the class has been loaded to set "\parindent"'s length to it's initial value.
254
255
256
257
258 \clearpage
259 \section{Upcoming features}
260 The following features are planned to be finished with the next versions of "fancyhandout":
261 \begin{enumerate}
262 \item
263 Provide different styles for "\maketitle" \\
264 \textit{e.~g. centered text above a separation line}
265
266 \item
267 Provide "beamer"-like block environments
268
269 \item
270 Provide color themes \\
271 \textit{e.~g. red, green, …}
272 \end{enumerate}
273
274 You may add other feature requests of public interest to the \href{https://github.com/SFr682k/fancyhandout/issues}{issue tracker on GitHub}.
275 \end{document}
276