Debian Codegraph @

texmf-dist/doc/latex/copyedit/example/test-copy.tex

raw
1 \documentclass[a4paper]{article}
2
3 \usepackage[lat=2,lang=ca,abbr=italic,last=true,eitem=4]{copyedit}
4
5 %
6 % all the options can be changed in the middle of the document or
7 % anywhere in the document with the command:
8 %
9 % \cesetup{c<comma separated list of options>}
10 %
11
12 \usepackage[sc,osf]{mathpazo}
13 \usepackage{lipsum}
14
15 \begin{document}
16
17 \parindent 0pt
18 \parskip 12pt
19 \advance\baselineskip by 3pt
20
21 \newacro{H2O}[$\mathrm{H_2O}$]{Dihygrogen Monoxide}
22 \newacro{WHO}[W.H.O.]{World Health Organization}
23
24 \subsubsection*{Language Variants}
25
26 \lipsum[1]
27
28 \definevariant{colour}{color}{COLOR}{Color}
29
30 \cesetup{lang=uk}
31
32 \vara{colour}
33 \vara{color}
34 \vara{COLOR}
35 \vara{Color}
36
37 \cesetup{lang=us}
38
39 \vara{colour}
40 \vara{color}
41 \vara{COLOR}
42 \vara{Color}
43
44 \cesetup{lang=ca}
45
46 \vara{colour}
47 \vara{color}
48 \vara{COLOR}
49 \vara{Color}
50
51 \cesetup{lang=au}
52
53 \vara{colour}
54 \vara{color}
55 \vara{COLOR}
56 \vara{Color}
57
58 \subsubsection*{Hyphenate, etc}
59
60 \closeup{anti}{body} and for that matter \hyp{anti}{body}.
61 \sword{Civil}{War}.
62
63 \subsubsection*{Latin abbreviation}
64
65 \definelat{e.g.}{eg}{for example}
66
67 First option keeps the abbreviation as such:
68 \cesetup{lat=0} \lat{e.g.}.
69
70 The second option remove all dots:
71 \cesetup{lat=1,abbr=rm} \lat{e.g.}.
72
73 The third one switches to English equivalent:
74 \cesetup{lat=2} \lat{e.g.}.
75
76 \subsubsection*{Acronym}
77
78 \ac{H2O}
79
80 \ac{WHO}
81
82 \lipsum[2]
83
84 \ac{H2O}
85
86 \ac{WHO}
87
88 \medskip
89
90 \subsubsection*{Parenthetical Comma}
91
92 \cesetup{pc=0}
93 The enthusiastic young ducks flying in front of the group
94 \pc{led by the sugecious older ones at the back, make a lot of noise
95 and turbulence} which are used by older ones at the back to warm
96 their heart and the wing.
97
98 \cesetup{pc=1}
99 The enthusiastic young ducks flying in front of the group
100 \pc{led by the sugecious older ones at the back, make a lot of noise
101 and turbulence} which are used by older ones at the back to warm
102 their heart and the wing.
103
104 \cesetup{pc=2}
105 The enthusiastic young ducks flying in front of the group
106 \pc{led by the sugecious older ones at the back, make a lot of noise
107 and turbulence} which are used by older ones at the back to warm
108 their heart and the wing.
109
110 \cesetup{pc=3}
111 The enthusiastic young ducks flying in front of the group
112 \pc{led by the sugecious older ones at the back, make a lot of noise
113 and turbulence} which are used by older ones at the back to warm
114 their heart and the wing.
115
116 \cesetup{pc=4}
117 The enthusiastic young ducks flying in front of the group
118 \pc{led by the sugecious older ones at the back, make a lot of noise
119 and turbulence} which are used by older ones at the back to warm
120 their heart and the wing.
121
122
123 \elist{warblers,tits,wrens,hummingbirds}
124
125 No problems even if the space is not cared for in the list:
126
127 \elist{warblers , tits, wrens,hummingbirds }
128
129 \definetoken{mango}{His Holyness, the Prince of Mangoistan}{The Prince of
130 Mangoistan}{He}
131
132 Full: \Token{mango}
133
134 Part: \Token{mango}
135
136 Short: \Token{mango}
137
138 Short: \Token{mango}
139
140 \subsubsection*{Eitem}
141
142 % \cesetup{eitem=0,last}
143 % \cesetup{eitem=1,last}
144 % \cesetup{eitem=2,last}
145 % \cesetup{eitem=3,last}
146 % \cesetup{eitem=4,last}
147 \cesetup{eitem=5,last}
148
149
150 \begin{eitem}
151
152 \item one
153 \item two
154 \item three
155 \item four
156 \item five
157 \item six
158 \item seven
159 %\item eight
160 %\item nine
161 %\item ten
162
163 \end{eitem}
164
165 \end{document}