Debian Codegraph @

texmf-dist/doc/latex/tuda-ci/DEMO-TUDaLeaflet.tex

raw
1 %% This is file `DEMO-TUDaLeaflet.tex' version 4.05 (2025-11-13),
2 %% it is part of
3 %% TUDa-CI -- Corporate Design for TU Darmstadt
4 %% ----------------------------------------------------------------------------
5 %%
6 %% Copyright (C) 2018--2025 by Marei Peischl <[email protected]>
7 %%
8 %% ============================================================================
9 %% This work may be distributed and/or modified under the
10 %% conditions of the LaTeX Project Public License, either version 1.3c
11 %% of this license or (at your option) any later version.
12 %% The latest version of this license is in
13 %% http://www.latex-project.org/lppl.txt
14 %% and version 1.3c or later is part of all distributions of LaTeX
15 %% version 2008/05/04 or later.
16 %%
17 %% This work has the LPPL maintenance status `maintained'.
18 %%
19 %% The current maintainer of this work is
20 %% Marei Peischl <[email protected]>
21 %%
22 %% The development repository can be found at
23 %% https://github.com/tudace/tuda_latex_templates
24 %% Please use the issue tracker for feedback!
25 %%
26 %% If you need a compiled version of this document, have a look at
27 %% http://mirror.ctan.org/macros/latex/contrib/tuda-ci/doc
28 %% or at the documentation directory of this package (if installed)
29 %% <path to your LaTeX distribution>/doc/latex/tuda-ci
30 %% ============================================================================
31 %%
32 % !TeX program = lualatex
33 %%
34
35 \documentclass[
36 english,% Main language as global option
37 accentcolor=9c,% Choose accent color: For a list of available colors see the full tudapub documentation
38 % accept-missing-logos=true,% No error in case logo files are not available
39 % logofile=example-image,% In case logo should be replaced
40 ]{tudaleaflet}
41
42 %%%%%%%%%%%%%%%%%%%
43 % Language setup
44 %%%%%%%%%%%%%%%%%%%
45 \usepackage[english]{babel}
46 \usepackage[autostyle]{csquotes}% \enquote, to simplify use of quotation marks
47
48 %%%%%%%%%%%%%%%%%%%
49 % Bibliography
50 %%%%%%%%%%%%%%%%%%%
51 \usepackage{biblatex}
52 \addbibresource{DEMO-TUDaBibliography.bib}% File name of BibTeX database
53
54 %%%%%%%%%%%%%%%%%%%
55 % Document specific setup for demonstration, generally not needed!
56 %%%%%%%%%%%%%%%%%%%
57 \newcommand*{\file}[1]{\texttt{#1}}
58 \newcommand*{\code}[1]{\texttt{#1}}
59 \newcommand*{\pkg}[1]{\textsf{#1}}
60 \newcommand*{\cls}[1]{\textsf{#1}}
61 \let\tbs\textbackslash
62 %%%%%%%%%%%%%%%%%%%
63 % End of demo specific setup
64 %%%%%%%%%%%%%%%%%%%
65
66 \title{TUDaLeaflet}
67 % \titleimage{\includegraphics[width=\width,height=\height]{example-image}}
68 \subtitle{Leaflet using TUDa-CI}
69 \addTitleBox{Institute}
70
71 \AddSponsor{\includegraphics[height=\height ]{example-image}}
72 \AddSponsor{\includegraphics[height=\height ]{example-image}}
73 \AddSponsor{\includegraphics[height=\height ]{example-image}}
74
75 \begin{document}
76
77 \maketitle
78
79 \section{Basic usage}
80 \cls{tudaleaflet} is based on the \cls{leaflet} class.
81 The usage is similar to the article class, only the page breaks are those of a leaflet and are normally divided into six partial pages.
82 Options not defined by \cls{tudaleaflet} may be passed to the base class.
83 See \cite{leaflet} for more information about the \cls{leaflet} class.
84
85 \pkg{scrextend} has added some mechanisms for better compatibility. However, this is not a \KOMAScript class, which is why not all mechanisms are available \cite[see][]{scrguide}.
86
87 \section{title page}
88 The title page is like the other TUDa CI classes and contains the following macros:
89 \begin{description}
90 \item[title] Title
91 \item[subtitle] Is placed in the block between the title and cover image
92 \item[author] Can be placed under the subtitle if necessary
93 \item[date] Can be placed under the author
94 \item[addTitleBox] Title box
95 The title box is placed below the logo at a specified distance. The background is white and can be filled with text or institute logo.
96
97 With \code{\addTitleBoxLogo} logos can be used in the title box.
98 It accepts an image file path as an argument.
99 \begin{verbatim}
100 \addTitleBoxLogo{example-image}
101 \addTitleBoxLogo*{
102 \includegraphics
103 [width=\linewidth]
104 {example-image}
105 }
106 \end{verbatim}
107 \item[titleimage] \code{titleimage} is usually for placing a graphic, but also accepts any content. The content is placed flush with the top corner in the body of the front page.
108 \begin{verbatim}
109 \titleimage{
110 \includegraphics
111 [width=\width]
112 {example-image}
113 }
114 \end{verbatim}
115 To fill the area there, these locally defined macros \verb+\height+ and \verb+\width+ will help.
116 \end{description}
117
118 \subsection{Title page customization options}
119 \begin{description}
120 \item[colorback] Activates backround color of the \verb+\titleimage+ area. Default is \verb+color+""\verb+back=true+
121 \item[colorbacktitle] Similar to title block. Default is \verb+colorbacktitle=false+
122 \item[colorbacksubtitle] This option can only be used if \verb+colorbacktitle=true+. If \verb+colorbacktitle=false+ an error message occurs. The strip between the title block and the image area will be colored the same color as the identity bar. The default is \verb+colorbacksubtitle=false+
123 \item[logofile] Alternate main logo, e.\,g. in case the TUDa logo is not available.
124 \end{description}
125
126 Text alignment of the title is done with \verb+\raggedtitle+.
127 To prevent breaks within the title, the default is \verb+\raggedright+.
128 Other alignments can be done with \verb+\renewcommand+.
129
130 \subsection{Sponsor logos}
131 \begin{verbatim}
132 \AddSponsor{<logo1>}
133 \AddSponsor{<logo2>}
134 \end{verbatim}
135 is available for sponsor logos.
136 In the example, all logos are at the same height. This can be done with \verb+\height+ within the argument.
137 The block always ends with the text on the sides. The space between the logos is automatically filled.
138
139 The second variant can be particularly helpful for logos with different heights.
140 It enables manual vertical alignment, where only the spacing and separating lines are added to the logos:
141
142 \begin{verbatim}
143 \sponsors{
144 <logo1><logo2>
145 }
146 \end{verbatim}
147
148 Usually the logos are at the bottom of the title page. However, the CI guidelines also offer the option to place them at the end of the document.
149
150 TUDaLeaflet provides \verb+sponsor+ with the values \verb+title+, \verb+lastfoot+ or \verb+manual+.
151 The default is \verb+title+.
152 \verb+lastfoot+ places the sponsors on the last page. This is done with \verb+\vfill+.
153 \verb+manual+ in turn allows the box to be placed manually.
154
155 \begin{verbatim}
156 \insertSponsors
157 \end{verbatim}
158 Is the corresponding macro for this and inserts the box at the appropriate position.
159 But this only works if \verb+sponsor=manual+.
160 Otherwise it has no effect.
161
162
163 \printbibliography
164
165 \end{document}
166 %% End of file `DEMO-TUDaLeaflet.tex'.