Template Styles » Historie » Version 18
Martin Kraetke, 19.04.2024 12:58
1 | 1 | Martin Kraetke | h1. Template Styles |
---|---|---|---|
2 | |||
3 | {{toc}} |
||
4 | |||
5 | h2. Prefix |
||
6 | |||
7 | All style names contain a prefix that represents the publisher and is separated by an underscore. The table below shows only the style name without the prefix. The prefix is part of the customer-specific configuration. |
||
8 | |||
9 | Example: |
||
10 | * Prefix for publisher (1-3 characters): e.g. @ts@ for _transcript publishers_ |
||
11 | * Full style name for @heading_1@: @ts_heading_1@ |
||
12 | |||
13 | h2. Style Names |
||
14 | |||
15 | h3. Headings |
||
16 | |||
17 | The numbering of the headings is taken from the Word file, since authors sometimes use very heterogeneous numbering schemes. Therefore, one must watch out for numbering errors in the manuscript. The standard styles for headings from Word are also evaluated, whereby @Heading 1@ corresponds to the style @heading_part@, @Heading 2@ corresponds to @heading_1@ etc. |
||
18 | |||
19 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
20 | | book title | @book_title@ | Book title| @\title{...}@ | |
||
21 | |\4=. | |
||
22 | 5 | Martin Kraetke | | part | @heading_part@ | Teil | \begin{heading}{part} | |
23 | 1 | Martin Kraetke | |\4=. | |
24 | 5 | Martin Kraetke | | chapter | @heading_1@ | chapter, Überschrift 1. Ordnung | \begin{heading}{chapter}... | |
25 | | chapter subheading | @subheading_1@ | subheading für chapter/Überschrift 2. Ordnung | @\tpSubTitle{...}@ | |
||
26 | 1 | Martin Kraetke | | chapter author | @author@ | chapter author | @\tpAuthor{...}@ | |
27 | 5 | Martin Kraetke | | chapter author biography | @author_description@ | author biography included in a chapter | @\tpBio@ | |
28 | | chapter epigraph | @epigraph@, @epigraph@ | epigraph at chapter start | @\tpQuote{...}@ | |
||
29 | 1 | Martin Kraetke | | chapter epigraph source | @epigraph_source@, @epigraph_source@ | source or author of epigraph | | |
30 | |\4=. | |
||
31 | 5 | Martin Kraetke | | section 1. level | @heading_2@ | | @\begin{heading}{section}...@ | |
32 | 1 | Martin Kraetke | | section 1. level subheading | @subheading_2@ | subheading | | |
33 | 5 | Martin Kraetke | | section epigraph | @epigraph@ | section epigraph | @\tpQuote{...}@ | |
34 | 1 | Martin Kraetke | |\4=. | |
35 | 5 | Martin Kraetke | | section 2. level | @heading_3@ | @\\begin{heading}{subsection}{...}@ | |
36 | 1 | Martin Kraetke | | section 2. level subheading | @subheading_3@ | subheading | | |
37 | |\4=. | |
||
38 | 5 | Martin Kraetke | | section 3. level | @heading_4@ | | @\begin{heading}{subsubsection}...@ | |
39 | 1 | Martin Kraetke | | section 3. level subheading | @subheading_4@ | subheading | | |
40 | |\4=. | |
||
41 | 5 | Martin Kraetke | | section 4. level | @heading_5@ | | @\begin{heading}{paragraph}...@ | |
42 | 1 | Martin Kraetke | | section 4. level subheading | @subheading_5@ | subheading | | |
43 | |\4=. | |
||
44 | | bridgehead | @headword@ | bridgehead, not included in ToC | @\subparagraph{...}@ | |
||
45 | 17 | Martin Kraetke | | frontmatter 1. level | @frontmatter_1@ | Frontmatter section | | |
46 | | frontmatter 2. level | @frontmatter_2@ | Frontmatter section | | |
||
47 | | frontmatter 3. level | @frontmatter_3@ | Frontmatter section | | |
||
48 | | frontmatter 4. level | @frontmatter_4@ | Frontmatter section | | |
||
49 | | frontmatter 5. level | @frontmatter_5@ | Frontmatter section | | |
||
50 | | backmatter 1. level | @backmatter_1@ | Backmatter section | | |
||
51 | | backmatter 2. level | @backmatter_2@ | Backmatter section | | |
||
52 | | backmatter 3. level | @backmatter_3@ | Backmatter section | | |
||
53 | | backmatter 4. level | @backmatter_4@ | Backmatter section | | |
||
54 | | backmatter 5. level | @backmatter_5@ | Backmatter section | | |
||
55 | 1 | Martin Kraetke | |
56 | h3. Running Headers |
||
57 | |||
58 | Running headers are automatically generated depending on the layout and the customer-specific configuration. If individual or shortened running headers are required, the following style can be used after the part, chapter or section heading. |
||
59 | |||
60 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
61 | | running header short | @headline_short@ | override for automatically generated running header. | @\chaptermark{}@ | |
||
62 | |||
63 | h3. Figures |
||
64 | |||
65 | Figures must be placed in a separate paragraph with a specific paragraph style. There must not be text in the paragraph. For each additional image, a separate paragraph must be used. Figure captions and caption source must be set below the image in separate paragraphs. |
||
66 | |||
67 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
68 | | Figure | @figure@ | Figure | @\begin{tpFigure}[<options>] |
||
69 | \tpCaption{<caption>} |
||
70 | \tpSource{<Quelle>} |
||
71 | \tpLegend{<Legende>} |
||
72 | \tpNumber{<Nummer>} |
||
73 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
74 | \end{tpFigure}@ | |
||
75 | |_\4=. multiple figures with specific layouts | |
||
76 | 3 | Martin Kraetke | | figure (layout A) | @figure_A${Zahl}@ | image with ${number} 1 to 3 images side by side column width | @\begin{tpFigure}[class=a]@ | |
77 | | figure (layout B) | @figure_B${Zahl}@ | image with ${number} 1 to 3 images side by side with margin | @\begin{tpFigure}[class=b]@ | |
||
78 | | figure (layout C) | @figure_C${Zahl}@ | image with ${number} 1 to 3 images side by side with more margin | @\begin{tpFigure}[class=c]@ | |
||
79 | 1 | Martin Kraetke | |\4=. | |
80 | | caption | @figure_caption@ | caption or description of the image | @\tpCaption{...}@ | |
||
81 | 4 | Martin Kraetke | | caption source | @figure_source@ | information about creator, copyright or other content which is different from the caption | @\tpSource{...}@ | |
82 | 1 | Martin Kraetke | |
83 | 4 | Martin Kraetke | h3. Tables |
84 | 1 | Martin Kraetke | |
85 | 4 | Martin Kraetke | Tables are created with the Word default function. Table cell borders and background colors, row and column spans are kept for the output. For rotated tables, you need to apply a specific style. Tables can either be rotated or continued over several pages. |
86 | 1 | Martin Kraetke | |
87 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
88 | 15 | Martin Kraetke | | Table Header | @table_header@ | Paragraph style for table headers. Needs to be applied in the table cell | | |
89 | 4 | Martin Kraetke | | Caption | @table_caption@ | Title or caption of the table | | |
90 | | Source | @table_source@ | Additional information that is placed below the table | | |
||
91 | | rotated table | @table_rotated@ | style needs to be applied on the paragraph before the table | | |
||
92 | | continued table | @table_pagewrap@ | style needs to be applied on the paragraph before the table | | |
||
93 | 1 | Martin Kraetke | |
94 | 4 | Martin Kraetke | h3. Lists |
95 | 1 | Martin Kraetke | |
96 | 4 | Martin Kraetke | Simple and numbered lists are heuristically detected by list marker and indent. Description lists like lists of abbreviations have a specific style. Description lists require that a single tab is placed between definition term and description. |
97 | 1 | Martin Kraetke | |
98 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
99 | 4 | Martin Kraetke | | description list | @abbreviations@ | list of abbreviations | @\begin{description} \item[begriff] ... \end{description}@ | |
100 | 1 | Martin Kraetke | |
101 | 4 | Martin Kraetke | h3. Long Quotations |
102 | 1 | Martin Kraetke | |
103 | 4 | Martin Kraetke | Several consecutive citation paragraphs are combined automatically in a long citation environment. |
104 | 1 | Martin Kraetke | |
105 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
106 | 4 | Martin Kraetke | | citation | @quotation@ | citation wrapper | @\begin{quotation}...\end{quotation}@ | |
107 | 1 | Martin Kraetke | |
108 | 4 | Martin Kraetke | h3. Dialogues |
109 | 1 | Martin Kraetke | |
110 | 4 | Martin Kraetke | Several consecutive paragraphs that contain the dialog style are combined in a dialog wrapper. The speaker is automatically identified using a tactical symbol, usually a colon. The paragraph must begin with the speaker name. |
111 | 1 | Martin Kraetke | |
112 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
113 | 4 | Martin Kraetke | | dialog | @dialogue@ | Dialog-Absatz | @\begin{dialogue}...\end{dialogue}@ | |
114 | | speaker | colon: after speaker | speaker | @\item[speaker] ...@ | |
||
115 | 1 | Martin Kraetke | |
116 | 4 | Martin Kraetke | h3. Boxes |
117 | 1 | Martin Kraetke | |
118 | 4 | Martin Kraetke | The beginning and the end of a box are each marked with specific paragraph styles for start end. No other text should appear in this paragraph, since they are removed in the process. |
119 | 1 | Martin Kraetke | |
120 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
121 | 4 | Martin Kraetke | | box with border start | @box_border_start@ | start marker of box with border | @\begin{kastenlinie}...@ | |
122 | | box with border end | @box_border_end@ | end marker of box with border | @...\end{kastenlinie}@ | |
||
123 | | box grey start | @box_grey_start@ | start marker of box with grey background | @\begin{kastengrau}...@ | |
||
124 | | box grey end | @box_grey_end@ | end marker of box with grey background | @...\end{kastengrau}@ | |
||
125 | 1 | Martin Kraetke | |
126 | 4 | Martin Kraetke | h3. Equations |
127 | 1 | Martin Kraetke | |
128 | 4 | Martin Kraetke | Equations are automatically detected and converted to the proper markup. If you want to markup a simple text paragraph that may contain an equation as |
129 | |||
130 | 1 | Martin Kraetke | |_. Common Name |_. Style Name |_. Description |_. TeX | |
131 | 4 | Martin Kraetke | | Equation paragraph | @formula@ | paragraph that contains equation | @\begin{equation}...\end{equation}@ | |
132 | 1 | Martin Kraetke | |
133 | 4 | Martin Kraetke | h3. Dedication |
134 | 1 | Martin Kraetke | |
135 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
136 | 4 | Martin Kraetke | | Dedication | @dedication@ | Dedication | @\dedication@ | |
137 | 1 | Martin Kraetke | |
138 | 4 | Martin Kraetke | h3. Letter |
139 | 1 | Martin Kraetke | |
140 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
141 | 4 | Martin Kraetke | | Letter paragraph | @letter@ | paragraph of a letter | @\begin{letter}...\end{letter}@ | |
142 | | Letter paragraph with margin before | @letter_spacing@ | letter paragraph with margin before | @\item@ | |
||
143 | 1 | Martin Kraetke | |
144 | 4 | Martin Kraetke | *Example:* before @\item@ and at the end there should be no @\\@ |
145 | 1 | Martin Kraetke | |
146 | 4 | Martin Kraetke | |_. HUB-XML |<pre> |
147 | 1 | Martin Kraetke | <div role="letter"> |
148 | 4 | Martin Kraetke | <para role="letter">Dear John Doe</para> |
149 | <para role="letter_spacing">Here I am writing to you today</para> |
||
150 | <para role="letter">and hope this and that.</para> |
||
151 | <para role="letter">Give Jane my best regards.</para> |
||
152 | </div></pre> | |
||
153 | |_. TeX | <pre>\begin{letter} |
||
154 | Dear John Doe, |
||
155 | \item Here I am writing to you today \\ |
||
156 | 6 | Martin Kraetke | and hope this and that.\\ |
157 | 4 | Martin Kraetke | Give Jane my best regards. |
158 | 1 | Martin Kraetke | \end{letter} |
159 | 4 | Martin Kraetke | </pre> | |
160 | |_. PDF| <pre> |
||
161 | Dear John Doe, |
||
162 | 1 | Martin Kraetke | |
163 | 4 | Martin Kraetke | Here I am writing to you today |
164 | and hope this and that. |
||
165 | Give Jane my best regards.</pre> | |
||
166 | 1 | Martin Kraetke | |
167 | 7 | Martin Kraetke | h3. Bibliography |
168 | 1 | Martin Kraetke | |
169 | 7 | Martin Kraetke | A bibliography consists of consecutive paragraphs with references to literature. The paragraphs must be marked with the same style. If there is a regular heading above, this is automatically set as the heading of the bibliography. |
170 | 1 | Martin Kraetke | |
171 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
172 | 7 | Martin Kraetke | | literature | @literature@ | bibliographical reference | @\bibitem@ | |
173 | 1 | Martin Kraetke | |
174 | 8 | Martin Kraetke | h3. Index |
175 | 1 | Martin Kraetke | |
176 | 8 | Martin Kraetke | Indices can be created in the following four ways, which can also be combined. |
177 | 1 | Martin Kraetke | |
178 | 8 | Martin Kraetke | h4. (1) Word index function |
179 | 1 | Martin Kraetke | |
180 | 8 | Martin Kraetke | Index entries can be made for selected words in the Word ribbon @References@. Mark a word and click the @Mark Entry@ button. Further information can be found in the "Microsoft Word documentation":https://support.microsoft.com/en-us/office/create-and-update-an-index-cc502c71-a605-41fd-9a02-cda9d14bf073 |
181 | 1 | Martin Kraetke | |
182 | 8 | Martin Kraetke | h4. (2) Marking of index terms via character format |
183 | 1 | Martin Kraetke | |
184 | 8 | Martin Kraetke | Index entries can be specified by marking up words or phrases with the @index_mark@ format. Index entries that have already been coded with the Word index function are ignored. |
185 | 1 | Martin Kraetke | |
186 | 8 | Martin Kraetke | h4. (3) Insert a concordance list of index entries |
187 | 1 | Martin Kraetke | |
188 | 8 | Martin Kraetke | Index entries can be automatically encoded using a concordance list. To do this, a list of index entries must be added at the end of the document. Wherever in the rest of the document words or phrases from this list are found, an index entry is automatically encoded. An index entry with the paragraph format @index_list@ must be used for this. Each entry must be in a separate paragraph. Index entries that have already been coded with the Word index function or via the @index@ character format are ignored. |
189 | 1 | Martin Kraetke | |
190 | 8 | Martin Kraetke | h4. (4) Insert a static index |
191 | 1 | Martin Kraetke | |
192 | 13 | Martin Kraetke | If you do not want to automatically search for entries in the text in the index, you can also insert a static index. Simply insert a list of index entries with the @index_static@ format. Page numbers in the form @My Entry 144, 156, 192 @ are then linked to the page, i.e. you have to make sure that the page reference is correct! |
193 | 1 | Martin Kraetke | |
194 | 8 | Martin Kraetke | h4. Index styles |
195 | 1 | Martin Kraetke | |
196 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
197 | 8 | Martin Kraetke | | Index heading | @index_heading@ | Heading of index | | |
198 | | Index entry, see (2) | @index_mark@ | Character style for encoding an index entry in the content | | |
||
199 | | Index entry, see (3) | @index_list@ | paragraph style for an index entry in a concordance list | | |
||
200 | | Index entry search term | @index_name@ | Character style, must be used within @index_list@ to mark the index search term separately, e.g. for _John Doe_, _Doe_ can be marked so that an index entry is also created for _Mr Doe_ | | |
||
201 | 1 | Martin Kraetke | | Index entry, see (4) | @index_static@ | Index entry in a static index list. if you insert a page number, a page reference is automatically created | | |
202 | 14 | Martin Kraetke | | Index type suffix (4) | @index_*_(person/location/subject)@ | suffix to add to any of the index styles above which specifies a certain index type. Needed if you want to print multiple indices in one document. | | |
203 | 1 | Martin Kraetke | |
204 | 18 | Martin Kraetke | h3. Appendix |
205 | |||
206 | Sometimes there are chapter appendices that are not assigned to the backmatter. To do this, their heading is marked with a style sheet: |
||
207 | |||
208 | |_. Description |_. Name |_. Description |_. TeX | |
||
209 | | Appendix heading | @appendix@ | Heading of the appendix | @\begin{heading}{chapter}@ | |
||
210 | |||
211 | 9 | Martin Kraetke | h3. Listings |
212 | 1 | Martin Kraetke | |
213 | 16 | Maren Pufe | To create the following listings, you only need to place the heading with a specific style. The contents of the listing is automatically generated. |
214 | 1 | Martin Kraetke | |
215 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
216 | 9 | Martin Kraetke | | List of Figures | @list_of_figures@ | Heading of the LoF | @\listoffigures@ | |
217 | 16 | Maren Pufe | | List of Tables | @list_of_tables@ | Heading of the LoT | @\listoftables@ | |
218 | 9 | Martin Kraetke | | Endnotes | @list_of_endnotes@ | Endnotes heading | @\printnotes@ | |
219 | 1 | Martin Kraetke | |
220 | 10 | Martin Kraetke | h3. Line breaks |
221 | 1 | Martin Kraetke | |
222 | 10 | Martin Kraetke | Empty paragraphs are automatically removed. To control the number of line breaks, you should mark empty paragraphs with the @lineskip@ style. You can specify the number of breaks at the end of the style name, e.g. @lineskip3@ for three breaks. A normal break (Shift + Enter) is converted to @\newline@. |
223 | 1 | Martin Kraetke | |
224 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
225 | 10 | Martin Kraetke | | line break | @lineskip@ | | @\vskip 1\baselineskip@ | |
226 | |||
227 | 12 | Martin Kraetke | h3. Character styles |
228 | 1 | Martin Kraetke | |
229 | |_. Common Name |_. Style Name |_. Description |_. TeX | |
||
230 | 11 | Martin Kraetke | | non-latin | @nonlatin@ | | @\unichar@ | |
231 | | regular | @regular@ | | | |
||
232 | | bold | @bold@ | | @\textbf@ | |
||
233 | | itaklic | @italic@ | | @\textit@ | |
||
234 | | small caps | @smallcaps@ | | @\textsc@ | |
||
235 | | non breaking space | @space_nonbreaking@ | | | |
||
236 | | thin space | @space_thin@ | | | |
||
237 | | spaced | @spaced@ | | @\so@ | |
||
238 | | underline | @underline@ | | @\ul@ | |
||
239 | | linethrough | @strike_trough@ | | @\st@ | |
||
240 | | superscript | @superscript@ | | @\textsuperscript@ | |
||
241 | | subscript | @subscript@ | | @\textsubscript@ | |