Projekt

Allgemein

Profil

Headings » Historie » Version 4

Martin Kraetke, 22.12.2021 16:07

1 1 Martin Kraetke
h1. Headings
2
3 3 Martin Kraetke
h2. General Markup
4 1 Martin Kraetke
5
<pre><code class="text">
6
\begin{heading}[<opt>]{<level>}
7
  %% heading information:
8
  \tpTitle{…}
9
  \tpAuthor{…}
10
  \tpSubtitle{…}
11
  \tpNumber{…}
12
  \tpQuote{…}
13
  \tpQuoteSource{…}
14
  %% overrides for ToC-entries:
15
  \tpTocTitle{…}
16
  \tpTocAuthor{…}
17
  \tpTocSubtitle{…}
18
  \tpTocNumber{…}
19
  %% overrides for running header:
20
  \tpRunTitle{…}
21
  \tpRunAuthor{…}
22
  \tpRunSubtitle{…}
23
  \tpRunNumber{…}
24
\end{heading}
25
</code></pre>
26
27
* @<level>@ should include the name of the heading level such as @chapter@, @section@, @subsubsection@…
28
* @<opt>@ optional argument for headings. If there are none, then omit the brackets.
29
** @notoc@: heading is not included in the table of contents
30
* @\tpTitle{}@ contains the heading title. This instruction is mandatory, the commands below are optional
31
* @\tpAuthor{}@ the author
32
* @\tpSubtitle{}@ subtitle
33
* @\tpNumber{}@ the counter of the heading, e.g. "Chapter 2", "2.2.1" etc.
34
* @\tpQuote{}@ epigraph 
35
* @\tpQuoteSource{}@ author or source of the epigraph
36
* @\tpNumber{}@ override for automatic heading numbering 
37
38
39
Spezielle ÜSen haben weitere Datenfelder:
40
* @\tpAbstract{}@ Abstract
41
* @\tpAbstractTitle{}@ Abstract heading, default: “Abstract”
42
* @\tpKeywords{}@ Keywords
43
* @\tpKeywordsTitle{}@ Keyword heading, default: “Keywords”
44
* @\tpDOI{}@ DOI
45
* @\tpDOITitle{}@ Title for DOI, default: <empty>.
46
47
These "special headings" can have different names from project to project, but by convention the level is usually called @contribution@ and inherits their characteristics from @chapter@. 
48
49 2 Martin Kraetke
@\TitleBreak@ can be used in every macro, which creates a line break.
50 1 Martin Kraetke
51
h2. Overrides for Table of Contents, Running Headers and PDF bookmarks
52
53
54
* There are three overrides for each of the macros @\tp<Macro>@ with @<Macro>: = (Author | Number | Subtitle | Title)@: @\tpRun <Macro>@ (for running headers), @\tpToc<Macro> @(for IHV), and @\tpBM <Macro>@ (for PDF bookmarks).
55
** If the override for running headers or table of contents is missing, the content of @\tp<Macro>@ for running header or ToC entry is used.
56
** If \tpBM is not used, the content of @\tpToc<Makro>@ is used instead
57
** If @\tp(Run|Toc|BM)<Macro>{<Text>}@ is used, @<text>@ instead of the content von @\tp(Toc)<Makro>@ is used
58
** if @\tp(Run|Toc|BM)<Makro>{}@ is used with empty argument, there is no output.
59
60
*Example:*
61
62
<pre>
63
\begin{heading}{chapter}
64
  \tpTitle{Title of the heading}
65
  \tpAuthor{Jane Doe}
66
  \tpTocAuthor{The incredible Jane Doe}
67
  \tpRunTitle{Title of the running header}
68
  \tpRunAuthor{Author of the running header}
69
\end{heading}
70
</pre>
71
72
h3. *Note on PDF-Bookmarks*
73
74 4 Martin Kraetke
There should be no TeX markup within @\tpBM{}@. This applies also to language markup like @\foreignlanguage@. Just use plain text with Unicode characters here.
75 1 Martin Kraetke
76
h2. List of Figures and List of Tables
77
78
These two listings are marked as normal headings according to the hierarchy level and then the macro for creating the listing follows. 
79
80
<pre>
81
\begin{heading}{section}
82
\tpTitle{My List of Figures}
83
\tpTocTitle{Figures}
84
\tpRunTitle{Lots of Figures}
85
\end{heading}
86
87
\listoffigures
88
</pre>