Document Structure » Historie » Version 5
Patrick Schulz, 19.12.2024 14:16
1 | 1 | Martin Kraetke | h1. Document Structure |
---|---|---|---|
2 | |||
3 | h2. Minimal TeX Document |
||
4 | |||
5 | 5 | Patrick Schulz | A minimal tex document that uses the CoCoTeX Framework has the following structure: |
6 | 1 | Martin Kraetke | |
7 | <pre><code class="text"> |
||
8 | 4 | Patrick Schulz | \documentclass[<options>]{cocotex} (1) |
9 | 5 | Patrick Schulz | \usepackage[<options>]{<publisher style>} (2) |
10 | 3 | Patrick Schulz | ... (3) |
11 | \begin{document} (4) |
||
12 | … (5) |
||
13 | \end{document} (6) |
||
14 | 1 | Martin Kraetke | </code></pre> |
15 | |||
16 | # Document class |
||
17 | 3 | Patrick Schulz | ** Document class name is *always* @cocotex@. |
18 | ** Optional argument (stuff between @[@ and @]@, komma-separated) can be used to pass LaTeX-options such as @a4paper@, @openright@, @twoside@, etc. |
||
19 | ** the document type is given with the @pubtype@ Option and one of the following values: |
||
20 | *** @mono@ for monographs (i.e., books that are in its entirety written by the same Author(s)) |
||
21 | *** @collection@ for books with contributions/chapters from various authors |
||
22 | *** @article@ for journal articles |
||
23 | *** @journal@ for entire journals, i.e., collection of articles |
||
24 | ** Languages: |
||
25 | 5 | Patrick Schulz | *** @main=<name>@ is the main language of the document, this controlls the language of the document-wide meta data, the imprint, headings of fixed document parts (ToC, Index), etc. (Note: in previous versions, there was an additional @lang-id=@ option which set the document language for accessibility purposes. This is now determined automatically from the @main@ option.) |
26 | 3 | Patrick Schulz | *** other languages that are used throughout the document need to be listed as simple komma-separated entries, e.g., @ngerman@ (German with new spelling rules), @french@, etc. |
27 | *** Langauges that use their own script systems need to be listed in @usescript={…}@, e.g., @usescript={hebrew,greek,chinese,syriac}@ |
||
28 | ** If endnotes should be used instead of footnotes, use @endnotes@ |
||
29 | 1 | Martin Kraetke | *** if the endnotes Chapters (or sections) should *not* appear in the ToC, use @ennotoc@ |
30 | 3 | Patrick Schulz | *** If the endnotes should repeat the chapter headings, use @endnoteswithchapters@ |
31 | *** If footnote and/or endnote counters should be reset with each chapter, set @resetnotesperchapter@ |
||
32 | 5 | Patrick Schulz | ** PDF Standard and Versions |
33 | *** the PDF Standard and PDF Version are set with the @pdf-standard=Z@ option, where @Z@ can be one of: @A-1B@, @ A-1A@, @ A-2B@, @ A-2A@, @ A-2U@, @ A-3B@, @ A-3A@, @ A-3U@, @ A-4@, @ X-3@, @ X-4@, @ X-4P@, @ X-5G@, @ X-5N@, @ X-5PG@, @ X-6@, @ X-6N@, @ X-6P@, @ UA-1@, or @UA-2@. |
||
34 | *** The PDF Version that is generated from each of the options can be seen in the table below. |
||
35 | *** @UA-1@ and @UA-2@ enable the accessibility features |
||
36 | *** The @X@-Standards cause @hyperref@ macros (@\href@, @\url@, @\hyperlink@, etc.) to be *functionally disabled*, i.e., they can be used in the tex file but they cause no hyperlinks in the resulting PDF file. |
||
37 | 1 | Martin Kraetke | # Include the customer-specific style with the respective options |
38 | # the area between @\documentclass[…]{…}@ and @\begin{document}@ is the TeX preamble. Additional meta information (e.g. color definitions, parameters for the front cover, the @tpMeta@-Environment, ...) may inserted here |
||
39 | # @\begin{document}@ marks the start of the document |
||
40 | # Content |
||
41 | # anything after @\end{document}@ is ignored. |
||
42 | 5 | Patrick Schulz | |
43 | |_.PDF standard|_.PDF version| |
||
44 | |UA-1 | 1.7| |
||
45 | |UA-2 | 2.0| |
||
46 | |A-1.* | 1.4| |
||
47 | |A-[23].* | 1.7| |
||
48 | |A-4.* | 2.0| |
||
49 | |X-[123].* | 1.4| |
||
50 | |X-[45].* | 1.6| |
||
51 | |X-6.* | 2.0| |
||
52 | |||
53 | 1 | Martin Kraetke | |
54 | h2. Compiling |
||
55 | |||
56 | The minimal order of the TeX files is shown below: |
||
57 | <pre><code class="ruby"> |
||
58 | latex <main>.tex ## first run: collect |
||
59 | latex <main>.tex ## second run: read and apply aux, toc, lof, lot |
||
60 | latex <main>.tex ## third run: update page numbers after including toc, lof, etc. |
||
61 | ./index.sh <main> ## script to generate the index |
||
62 | latex <main>.tex ## fourth run: Index-Ausgabe, ggf. Aktualisierung toc für Index-ÜS |
||
63 | latex <main>.tex ## fifth run: update toc |
||
64 | </code></pre> |