Projekt

Allgemein

Profil

Document Structure » Historie » Version 2

Martin Kraetke, 22.12.2021 13:51

1 1 Martin Kraetke
h1. Document Structure
2
3
h2. Minimal TeX Document
4
5
A minimal tex document that uses the transpect-tex Framework has the following structure: 
6
7
<pre><code class="text">
8
\documentclass[book]{transpect}                              (1)
9
\usepackage[main=ngerman,bidi=basic,silent]{babel}           (2)
10
\babelprovide[import]{english}                               (3)
11
\babelprovide[import]{french}                                (4)
12
\usepackage[<opt>]{<verlagsstyle>}                           (5)
13
...                                                          (6)
14
\begin{document}                                             (7)
15
…                                                            (8)
16
\end{document}                                               (9)
17
</code></pre>
18
19
# Document class
20
** Document class name is *always* @transpect@. 
21
** Optional argument can be used to pass LaTeX-options such as @a4paper@, @openright@, @twoside@, etc.
22
** and the document type:
23
*** "book" 
24
*** "collection" for books with contributions from various authors
25
*** "article" for journal articles
26
# you can include the Babel package, in which the main language of the document is specified (main=<myBabelLanguage>)
27
# with @\babelprovide{}@ you can specify aditionally used languages
28
# add an @\babelprovide{<sprachname>}@ for each language
29
# Include the customer-specific style with the respective options
30
# the area between @\documentclass[…]{…}@ and @\begin{document}@ is the TeX preamble. Additional meta information (e.g. color definitions, parameters for the front cover, ...) may inserted here
31
# @\begin{document}@ marks the start of the document
32
# Content
33
# anything after @\end{document}@ is ignored. 
34
35
h2. Compiling
36
37
The minimal order of the TeX files is shown below:
38
<pre><code class="ruby">
39
latex <main>.tex       ## first run: collect
40
latex <main>.tex       ## second run: read and apply aux, toc, lof, lot
41
latex <main>.tex       ## third run: update page numbers after including toc, lof, etc.
42
./index.sh <main>      ## script to generate the index 
43
latex <main>.tex       ## fourth run: Index-Ausgabe, ggf. Aktualisierung toc für Index-ÜS
44
latex <main>.tex       ## fifth run: update toc 
45
</code></pre>