Debian Codegraph @

texmf-dist/doc/fonts/eurosym/testeuro.tex

raw
1 \documentclass[10pt]{article}
2
3 \usepackage{german}
4 \usepackage[official,right]{eurosym}
5 \usepackage{multicol}
6
7 \makeatletter
8
9 \def\finalpagebreak{\vfill\pagebreak}
10
11 %\usepackage{standard}
12
13 \oddsidemargin 0 in % Note that \oddsidemargin = \evensidemargin
14 \evensidemargin 0 in
15 %\marginparwidth 0.75 in
16 \textwidth 6.375 true in % Width of text line.
17 %\textheight 21cm
18 %\topmargin-1cm
19
20 \renewcommand\section[1]{%
21 \par\vspace{0.5\baselineskip}%
22 \noindent{\bfseries\large #1}%
23 \\[0.5\baselineskip]}
24
25 \def\EUR{\,\euro}
26
27 \def\oldefault{ol}
28 \DeclareRobustCommand\olshape{\fontshape\oldefault\selectfont}
29
30 \setlength\parskip{0.5\baselineskip}
31 \setlength\parindent{0pt}
32
33 \begin{document}
34 \begin{centering}
35 \LARGE{The European Currency Symbol \euro{} for \LaTeX}\\
36 \vspace*{4mm}
37 \large{by Henrik Theiling}\\
38 \large{\tt [email protected]}\\
39 \end{centering}
40 \vspace*{2\baselineskip}
41
42 %======================================================================
43 \section{Why?}
44 The European currency symbol \euro{} is already available for \LaTeX{}
45 in different packages (Text-Companion fonts, Marvosym package,
46 etc.{}). However, I wanted to create a symbol that is constructed
47 according to the official European Commision's definitions.
48 Furthermore, I wanted to do it with {\sf METAFONT} because I don't
49 like to use PostScript fonts because they are likely to create
50 compatibility problems.
51
52 \section{Usage}
53 At the beginning of the document in the pre-amble, declare
54 \verb:\usepackage{eurosym}:. Then the new commands
55 \verb:\officialeuro{}:, \verb:\geneuro{}:, \verb:\geneuronarrow{}: and
56 \verb:\geneurowide{}: create \officialeuro{}, \geneuro{},
57 \geneuronarrow{}, and \geneurowide{} resp. The latter three create an
58 overlayed symbol from the current font's C and the two horizontal bars
59 with three different lengths. Of course you should only use the
60 latter commands if the font you're using lacks the \officialeuro{}
61 symbol or you don't like ``\officialeuro{}'' for some reason.
62 Officially, ``\officialeuro{}'' has to be used with all the fonts
63 because it's the only official shape. However, this doesn't always
64 look nice (especially in bold or oblique font shapes). Furthermore,
65 even the OCR draft suggests a different shape for OCR-B.
66
67 There is also the command \verb:\euro{}: which defaults to be a
68 shortcut for \verb:\officialeuro{}:. You can set a different default
69 symbol by either declaring e.\,g.{} \verb:\let\euro=\eurogen: or by
70 using one of the package options {\tt{}official}, {\tt{}gen},
71 {\tt{}gennarrow} or {\tt{}genwide}.
72
73 There is a convenient command \verb:\EUR{:\dots\verb:}: which lets you
74 typeset an amount of money nicely (with a micro space \verb:\,:
75 between the symbol and the number). Because in some countries the
76 symbol has to appear on the left of the number while in others it has
77 to be on the right, the packages recognizes the two options {\tt left}
78 and {\tt right}. So if you put \verb:\usepackage[left]{eurosym}: at
79 the beginning of your document, \verb:\EUR{1000}: will create
80 \euro{}\,1000, while a \verb:\usepackage[right]{eurosym}: makes it
81 appear as 1000\,\euro{}. The package default is {\tt [left]} unless
82 the {\tt german} package was included {\em before\/} the {\tt eurosym}
83 package. You can change the shape of the symbol that \verb:\EUR: uses
84 by redefining \verb:\euro:.
85
86 %======================================================================
87 \section{Table of Commands}
88 Here is a table of the major commands:
89
90 \begin{tabular}{ll}
91 \verb:\usepackage[:{\it options}\verb:]{eurosym}:
92 & include the eurosym package. Available options:\\
93 & {\tt left}, {\tt right}, {\tt official}, {\tt gen},
94 {\tt gennarrow}, {\tt genwide}.\\
95 \verb:\euro{}:
96 & create a \euro{} symbol. The shape depends on the \\
97 & package options and defaults to \verb:\officialeuro{}:\\
98 \verb:\EUR{:{\it amount}\verb:}:
99 & typeset an amount of \euro{}. The position of the\\
100 & currency symbol depends on the package option and\\
101 & defaults to {\tt left} except the {\tt german} package\\
102 & is loaded in which case it defaults to {\tt right}.
103 \end{tabular}
104
105 \noindent There should generally be no need to use the following minor
106 commands.
107
108 \begin{tabular}{ll}
109 \verb:\officialeuro{}: & create a \officialeuro{} symbol\\
110 \verb:\geneuro{}: & create a \geneuro{} symbol\\
111 \verb:\geneuronarrow{}: & create a \geneuronarrow{} symbol\\
112 \verb:\geneurowide{}: & create a \geneurowide{} symbol\\
113 \verb:\eurobars{}: & create only the bars of the symbol: \eurobars\\
114 \verb:\eurobarsnarrow{}: & create the bars of the symbol in 80\% width: \eurobarsnarrow\\
115 \verb:\eurobarswide{}: & create the bars of the symbol in 120\% width: \eurobarswide\\
116 \end{tabular}
117
118 \section{Exact Sizes}
119 A \euro{} symbol is as tall as a C. The {\tt bx}-shaped version
120 should be a little wider than the normal one and should of course be
121 bold.
122
123 \vspace*{2mm}
124 \setlength\fboxsep{0pt}
125 \setlength\fboxrule{0.1pt}
126 \def\EC#1{\def\f@size{#1}\selectfont\let\ff=\f@size{\normalsize\ff\,pt:} \fbox{\euro{}C}}
127 \begin{tabular}{lll@{\qquad}ll}
128 {\EC{24.88}} & {\EC{10}} & {\EC{6}} & \tt n & \noindent{\Huge \fbox{\euro{}}}\\
129 {\EC{17.28}} & {\EC{9}} & {\EC{5}} & \tt b & \noindent{\Huge \fbox{\bfseries\euro}{}}\\
130 {\EC{14.4}} & {\EC{8}} & & &\\
131 {\EC{12}} & {\EC{7}} & & &\\
132 \end{tabular}
133
134
135 \section{Appearance in Text}
136 \setlength\parskip{0.5ex}
137 \begin{tabular}{lll}
138 \mddefault & \updefault & Ich bezahlte 500\EUR{} f\"ur das Radio. Bzw. 1000\,\geneuro{} f\"ur den Fernseher.\\
139 \mddefault & \sldefault & \slshape Ich bezahlte 500\EUR{} f\"ur das Radio. Bzw. 1000\,\geneuro{} f\"ur den Fernseher. \\
140 \mddefault & \itdefault & \itshape Ich bezahlte 500\EUR{} f\"ur das Radio. Bzw. 1000\,\geneuro{} f\"ur den Fernseher. \\
141 \mddefault & \scdefault & \scshape Ich bezahlte 500\EUR{} f\"ur das Radio. Bzw. 1000\,\geneuro{} f\"ur den Fernseher. \\
142 \bfdefault & \updefault & \bfseries Ich bezahlte 500\EUR{} f\"ur das Radio. Bzw. 1000\,\geneuro{} f\"ur den Fernseher. \\
143 \bfdefault & \sldefault & \bfseries\slshape Ich bezahlte 500\EUR{} f\"ur das Radio. Bzw. 1000\,\geneuro{} f\"ur den Fernseher. \\
144 \bfdefault & \itdefault & \bfseries\itshape Ich bezahlte 500\EUR{} f\"ur das Radio. Bzw. 1000\,\geneuro{} f\"ur den Fernseher.
145 \end{tabular}
146
147 \section{Table of Shapes}
148 The following shapes are derived from the official symbol ``Euro glyph''.\\
149 \let\testeuro\euro
150 \begin{tabular}{l|ccc}
151 & \tt\updefault=\tt\scdefault & \tt\sldefault=\tt\itdefault & \tt\oldefault \\\hline
152 \tt\mddefault & \testeuro & \slshape\testeuro &{\olshape\officialeuro}\\
153 \tt\bfdefault & \bfseries\testeuro & \bfseries\slshape\testeuro &{\bfseries\olshape\officialeuro}\\
154 \end{tabular}
155
156 The style file defines \verb:\slshape: as \verb:\itshape: for this symbol and
157 normal shape for \verb:\scshape:.
158
159 \section{Table of Generic Shapes}
160 The font also contains only the bars for a fast hacking way to create the Euro currency
161 symbol with fonts that don't contain it. Usually you can simply use \verb:\geneuro: to
162 get a hacked Euro symbol for the current font.
163
164 \begin{tabular}{l|cc}
165 & \tt\updefault & \tt\sldefault \\\hline
166 \tt\mddefault & \geneuro & \slshape\geneuro \\
167 \tt\bfdefault & \bfseries\geneuro & \bfseries\slshape\geneuro
168 \end{tabular}
169
170 If the font you are using is wider or more narrow so that the sizes of
171 the bars don't look nice for that font, you can either try
172 \verb:\geneuronarrow: or \verb:\geneurowide:.
173
174 \begin{tabular}{l|cccc}
175 & \multicolumn{2}{c}{\tt{$\backslash$}geneuronarrow}
176 & \multicolumn{2}{c}{\tt{$\backslash$}geneurowide}\\
177 & \tt\updefault & \tt\sldefault
178 & \tt\updefault & \tt\sldefault \\\hline
179 \tt\mddefault & \geneuronarrow & \slshape\geneuronarrow
180 & \geneurowide & \slshape\geneurowide \\
181 \tt\bfdefault & \bfseries\geneuronarrow & \bfseries\slshape\geneuronarrow
182 & \bfseries\geneurowide & \bfseries\slshape\geneurowide
183 \end{tabular}
184
185 %======================================================================
186 \section{Construction of the Symbol}
187 The construction is taken from the German c't Magazine, 11/98,
188 page~211. That construction was missing one measure. A completion of
189 my construction was reported by Dr. Werner Gans, who found the full
190 construction in `Encyclopaedia Britannica, Book of the Year 2002'.
191
192 Let the line thickness be $x$. Then the radius of the inner circle is
193 $5\,x$ and the distance between the inner bars is $x$. The angle of
194 the opening on the right is $80^\circ$. The $x$-coordinate of the
195 left pointed end of the bars is $8\,x$ from the center. All the other
196 points are obtained by intersection of lines and by parallelism.
197
198 \noindent
199 \setlength\unitlength{1mm}
200 \begin{picture}(80,80)
201 \put(30,15) {\mbox{\fontencoding{U}\fontfamily{eurosym}\def\f@size{200}\selectfont\char0}}
202 \put(66,38) {\mbox{$80^\circ$}}
203 \put(30.3,6) {\mbox{$\longleftarrow\hbox to20pt{~} 8 \times \hbox to20pt{~}\longrightarrow$}}
204 \put(38.7,10){\mbox{$\longleftarrow\hbox to8pt{~} 6 \times \hbox to8.2pt{~}\longrightarrow$}}
205 \put(43,38) {\mbox{$\longleftarrow\hbox to2pt{~} 5 \times \hbox to2pt{~}\longrightarrow$}}
206 \end{picture}
207
208 \section{Example in a Longer Text}
209 In the following, I've copied an article from a local newspaper
210 (Neue Westf\"alische, Nr.~174, Donnerstag, 30.~Juli 1998) containing
211 money amounts and changed ``DM'' to ``\euro'' or ``\geneuro''
212 resp.{} in order to give an impression of how it looks in a longer
213 text.
214
215 \setlength\premulticols{0pt}
216 \setlength\postmulticols{0pt}
217 \def\thetesttext{
218 \noindent\leftline{\large\bfseries Erzeugergemeinschaft plant bis zum Jahr
219 2003 Verdopplung des Umsatzes}\\[2ex]
220 \noindent\leftline{\Large\bfseries EGO will Riesenvorsprung nutzen}
221 \begin{multicols}{3}
222 \begin{bfseries}
223 \noindent B\,i\,s\,s\,e\,n\,d\,o\,r\,f\,/\,L\,a\,g\,e (blo).
224 Verbraucher kaufen Fleisch- und Wurstwaren
225 inzwischen sehr kritisch ein, gehen wieder viel h\"aufiger ins
226 Fleischerfachgesch\"aft. Das kommt der EGO (Erzeugergemeinschaft
227 f\"ur Schlachtvieh im Raum Osnabr\"uck e.\,G.{}) mit Ihren
228 "`Eichenhof"'-Produkten entgegen. Die EGO setzt auf
229 nachpr\"ufbare Herkunft und Qualit\"at, kooperiert mit 175 Fleischereien
230 und plant bis zum Jahr 2003 eine Umsatzverdopplung auf 400 Mio.{}\,\Euro{}.
231 \end{bfseries}
232 \par\vspace{1ex}
233 \noindent Dabei kann die EGO ein gro\ss es Pfund in die Waagschale
234 werfen. "`Wir haben mindestens 15~Jahre Vorsprung."' erkl\"arte
235 gesch\"aftsf\"uhrender Vorstandsvorsitzender Karl-Heinz
236 H\"ugelsmeyer in Bissendort. Der Vorsprung sind die strengen Kriterien,
237 nach denen der genossenschaftliche Zusammenschlu\ss{} vor knapp
238 700~vertraglich gebundenen b\"auerlichen Familienbetrieben zwischen
239 Teutoburger Wald und Wiehengebirge arbeitet: Tiergerechte Schweine- und
240 Rinderhaltung mit festen Regeln f\"ur F\"utterung, Zucht und
241 Aufzucht, Andienungspflicht und Abnahmegarantie, Sauberkeit der Produktion,
242 Regelverst\"o\ss{}e werden hart mit Ausschlu\ss{} geahndet.
243 \par\vspace{1ex}
244 \noindent Die Landwirte profitieren durch gute Auszahlungspreise und
245 Pr\"amien an die Mitglieder in 1997 aus, berichtete Gesch\"aftsf\"uhrer
246 Rudolf Fester. Er l\"ost am 1.~August EGO-Gr\"under Karl-Heinz
247 H\"uggelsmeyer als Vorstandschef ab. Der 65j\"ahrige H\"uggelsmeyer
248 wird noch f\"ur einige Jahre als Gesch\"aftsf\"uhrer der Tochterfirmen
249 Pieper (Lage) und Kinnius (Osnabr\"uck) t\"atig sein. diese beiden
250 Verarbeitsbetriebe erzielen den Angaben zufolge derzeit positivere
251 Ergebnisse als 1997, weil die Rohstoffpreise sinken. Insgesamt
252 stehe die EGO besser da als vor einem Jahr. F\"ur 1998 rechnet
253 die 210~Mitarbeiter besch\"aftigende Gruppe mit 200~Mio.{}\,\Euro{},
254 davon 5~Mio.{}\,\Euro{} mit Convenience-Produkten. Sie sollen
255 einmal 15~Mio.{}\,\Euro{} bringen. 1997 war der EGO-Umsatz um
256 7\% auf 197~Mio.{}\,\Euro{} gestiegen.
257 \par\vspace{1ex}
258 \noindent Die Landschlachterei Pieper, die einige ihrer
259 Abnehmer ausgesiebt hat, kam dabei im Vorjahr auf
260 29,3 (Vorjahr 30,3) Mio.{}\,\Euro{}\@. Die Zahl der
261 Mitgliedsbetriebe stieg um gut 100 auf~687. Aus der Fusion mit
262 der Erzeugergemeinschaft Minden-Ravensberg-Lippe (Herford),
263 die 320~Mitglieder hatte, kamen nur 81~Betriebe hinzu. Das Gros
264 wurde nicht \"ubernommen. Zitat: "`Die wollten unsere Kriterien
265 nicht erf\"ullen."'
266 \end{multicols}
267 }
268
269 \sloppy
270 \vfill\pagebreak
271 \let\Euro\euro
272 \thetesttext
273
274 \vfill\pagebreak
275 \let\Euro\geneuro
276 \thetesttext
277
278 \end{document}