Debian Codegraph @

texmf-dist/source/latex/koma-script/doc/common-marginpar-en.tex

raw
1 % ======================================================================
2 % common-marginpar-en.tex
3 % Copyright (c) Markus Kohm, 2001-2022
4 %
5 % This file is part of the LaTeX2e KOMA-Script bundle.
6 %
7 % This work may be distributed and/or modified under the conditions of
8 % the LaTeX Project Public License, version 1.3c of the license.
9 % The latest version of this license is in
10 % http://www.latex-project.org/lppl.txt
11 % and version 1.3c or later is part of all distributions of LaTeX
12 % version 2005/12/01 or later and of this work.
13 %
14 % This work has the LPPL maintenance status "author-maintained".
15 %
16 % The Current Maintainer and author of this work is Markus Kohm.
17 %
18 % This work consists of all files listed in MANIFEST.md.
19 % ======================================================================
20 %
21 % Paragraphs that are common for several chapters of the KOMA-Script guide
22 % Maintained by Markus Kohm
23 %
24 % ======================================================================
25
26 \KOMAProvidesFile{common-marginpar-en.tex}
27 [$Date: 2022-06-05 12:40:11 +0200 (So, 05. Jun 2022) $
28 KOMA-Script guide (common paragraphs)]
29 \translator{Gernot Hassenpflug\and Markus Kohm\and Karl Hagen}
30
31 \section{Marginal Notes}
32 \seclabel{marginNotes}%
33 \BeginIndexGroup
34 \BeginIndex{}{marginal notes}%
35
36 \IfThisCommonFirstRun{}{%
37 The information in \autoref{sec:\ThisCommonFirstLabelBase.marginNotes}
38 applies equally to this chapter. So if you have already read and understood
39 \autoref{sec:\ThisCommonFirstLabelBase.marginNotes}, you can skip ahead to
40 \autoref{sec:\ThisCommonLabelBase.marginNotes.next},
41 \autopageref{sec:\ThisCommonLabelBase.marginNotes.next}.%
42 }
43
44 In addition to the text area, which normally fills the type area, documents
45 often contain a column for marginalia. You can set marginal notes in this
46 area.
47 \IfThisCommonLabelBase{scrlttr2}{%
48 In letters, however, marginal notes are unusual and should be used
49 sparingly.%
50 }{%
51 This \iffree{guide}{book} makes frequent use of them.%
52 }%
53
54
55 \begin{Declaration}
56 \Macro{marginpar}\OParameter{margin note left}\Parameter{margin note}%
57 \Macro{marginline}\Parameter{margin note}
58 \end{Declaration}%
59 Marginal notes\Index[indexmain]{marginal notes} in {\LaTeX} are usually
60 inserted with the \Macro{marginpar} command. They are placed in the outer
61 margin. One-sided documents use the right border. Although you can specify a
62 different marginal note for \Macro{marginpar} in case it winds up in the left
63 margin, marginal notes are always fully justified. However, experience has
64 shown that many users prefer left- or right-justified marginal notes
65 instead. For this purpose, {\KOMAScript} offers the \Macro{marginline}
66 command.
67
68 \IfThisCommonFirstRun{%
69 \iftrue%
70 }{%
71 For a detailed example, see
72 \autoref{sec:\ThisCommonFirstLabelBase.marginNotes} at
73 \PageRefxmpl{\ThisCommonFirstLabelBase.cmd.marginline}.%
74 \csname iffalse\endcsname%
75 }%
76 \begin{Example}
77 \phantomsection\xmpllabel{cmd.marginline}%
78 In some parts of this \iffree{guide}{book}, the class name
79 \Class{scrartcl} can be found in the margin. You can produce this with:%
80 \iffalse% Umbruchkorrekturtext
81 \footnote{Actually, instead of \Macro{texttt}, a semantic markup
82 was used. To avoid confusion, this has been replaced in the example.}%
83 \fi
84 \begin{lstcode}
85 \marginline{\texttt{scrartcl}}
86 \end{lstcode}
87
88 Instead of \Macro{marginline} you could have used \Macro{marginpar}. In fact
89 the first command is implemented internally as:
90 \begin{lstcode}
91 \marginpar[\raggedleft\texttt{scrartcl}]
92 {\raggedright\texttt{scrartcl}}
93 \end{lstcode}
94 Thus \Macro{marginline} is really just a shorthand notation for the
95 code above.%
96 \end{Example}%
97 \fi
98
99 Advanced users\textnote{Attention!} will find notes about difficulties that
100 can arise using \Macro{marginpar} in \autoref{sec:maincls-experts.addInfos}%
101 \iffree{}{, on \DescPageRef{maincls-experts.cmd.marginpar}}. These remarks
102 also apply to \Macro{marginline}. In addition,
103 \autoref{cha:scrlayer-notecolumn} introduces a package that you can use to
104 create note columns with their own page breaks.%
105 \iffalse% Umbruchkorrektur
106 \ However, the
107 \hyperref[cha:scrlayer-notecolumn]{\Package{scrlayer-notecolumn}}%
108 \IndexPackage{scrlayer-notecolumn} package is more a proof of concept than a
109 finished package.%
110 \fi%
111 %
112 \EndIndexGroup
113 %
114 \EndIndexGroup
115
116 %%% Local Variables:
117 %%% mode: latex
118 %%% TeX-master: "scrguide-en.tex"
119 %%% coding: utf-8
120 %%% ispell-local-dictionary: "en_GB"
121 %%% eval: (flyspell-mode 1)
122 %%% End: