Debian Codegraph @

texmf-dist/doc/fonts/countriesofeurope/countriesofeurope.tex

raw
1 %\listfiles
2 %% $Id: countriesofeurope.tex 1095 2019-10-03 06:05:39Z herbert $
3 \documentclass[11pt,english,BCOR=10mm,DIV=13,toc=bibliography,parskip=false,
4 headings=small,headinclude=false,footinclude=false,oneside]{pst-doc}
5 \usepackage[Scale=7.5]{countriesofeurope}
6 \let\pstFV\fileversion
7
8 \usepackage{ifluatex}
9 \usepackage{dtk-logos}
10 \ifluatex\else
11 \pdfmapfile{+countriesofeurope.map} % only needed, if the map is not enabled with updmap
12 \fi
13 \usepackage{lmodern,array,longtable,graphicx,ifthen,ragged2e,libertinus}
14
15 \makeatletter
16 \newcommand\Country[2][]{{%
17 \tabular{|>{\Centering}p{2.5cm}|}\hline
18 \strut\footnotesize\texttt{\textbackslash#2}\\\hline
19 \parbox[c][3.2cm]{2cm}{\EUCountry[#1]{#2}}\\\hline
20 \endtabular}}
21
22 \makeatother
23
24 \newcounter{N}
25
26 \renewcommand\bgImage{%
27 \EUCountry[Scale=3,outline,fillcolor=blue!20,linecolor=black]{Germany}}
28
29 \usepackage{biblatex}
30 \addbibresource{\jobname.bib}
31 \begin{document}
32
33 \title{Package \texttt{countriesofeurope}}
34 \subtitle{Printing all european countries as a character of a font (v.\,0.23)}
35 \author{Rolf Niepraschk\\Herbert Voß\\Ingo Zimmermann}
36 \docauthor{Herbert Voß}
37 \date{\today}
38 \maketitle
39
40 \section{Introduction}
41
42 \begin{sloppypar}
43 This package defines the two macros \Lcs{countriesofeuropefamily} (short version is \Lcs{CoEF})
44 and \Lcs{EUCountry}\verb|[options]{name}|,
45 which allow to print one of the european countries as a single character with the given scaling or
46 with an individual scaling.
47
48 The first one switches
49 to the font encoding \verb|U| (Type 1) or \verb|TU| (OpenType) and loads the font and the second
50 one does the same but also with
51 printing the character which the given name, e.\,g. for Finland: \verb|\EUCountry[Scale=0.2]{Germany}|$\rightarrow$%
52 \EUCountry[Scale=0.2]{Germany}.
53 \end{sloppypar}
54
55 The font can be loaded
56 with an optional argument for the scaling factor, which is preset to 1:
57
58 \begin{verbatim}
59 \usepackage[Scale=10]{countriesofeurope}% scaled to 10
60 \end{verbatim}
61
62
63 \section{Default use}
64
65 The countris itself are available by a macro from the following list. The characters are
66 at the position 128--166 in the Type~1 font \LFile{countriesofeurope.pfb} and also available
67 with the \verb|\char| primitive. The following table shows the countries in their original size
68 with a scaling of 7.5:
69
70 \begin{longtable}{cccc}
71 \Country{Albania} &
72 \Country{Andorra} &
73 \Country{Austria} &
74 \Country{Belarus} \\
75 \Country{Belgium} &
76 \Country{Bosnia} &
77 \Country{Bulgaria} &
78 \Country{Croatia} \\
79 \Country{Czechia} &
80 \Country{Denmark} &
81 \Country{Estonia} &
82 \Country{Finland} \\
83 \Country{France} &
84 \Country{Germany} &
85 \Country{GreatBritain} &
86 \Country{Greece} \\
87 \Country{Hungary} &
88 \Country{Iceland} &
89 \Country{Ireland} &
90 \Country{Italy} \\
91 \Country{Latvia} &
92 \Country{Liechtenstein} &
93 \Country{Lithuania} &
94 \Country{Luxembourg} \\
95 \Country{Macedonia} &
96 \Country{Malta} &
97 \Country{Moldova} &
98 \Country{Montenegro} \\
99 \Country{Netherlands} &
100 \Country{Norway} &
101 \Country{Poland} &
102 \Country{Portugal} \\
103 \Country{Romania} &
104 \Country{Serbia} &
105 \Country{Slovakia} &
106 \Country{Slovenia} \\
107 \Country{Spain} &
108 \Country{Sweden} &
109 \Country{Switzerland}
110
111 \end{longtable}
112
113
114 \noindent\rule{\textwidth}{.5mm}
115
116 The countries in the original size with the given bounding box and the text command \verb|\huge|:
117
118 % \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}
119
120 \medskip
121
122 \begingroup
123 \fboxsep=0pt
124 \noindent%
125 \ifluatex
126 \fontspec[Scale=1]{countriesofeurope.otf}
127 \huge
128 \setcounter{N}{63724}%
129 \whiledo{\value{N} > 63686}{%
130 \fbox{\symbol{\value{N}}}%
131 \addtocounter{N}{-1}}
132 \else
133 \huge
134 \setcounter{N}{128}%
135 \whiledo{\value{N} < 167}{%
136 \fbox{\symbol{\value{N}}}%
137 \stepcounter{N}}
138 \fi
139 \endgroup
140
141 \rmfamily
142
143 \section{Outline font}
144
145 All countries can be printed as outline, e.\,g.:
146
147 \verb|\EUCountry[Scale=37.5,outline]{Germany}|
148
149 \EUCountry[Scale=5,outline]{Germany}
150
151
152
153
154 \begingroup
155 \ifluatex
156 \CoEF
157 \else
158 \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}
159 \fi
160
161 \begin{longtable}{cccc}
162 \Country[outline]{Albania} &
163 \Country[outline]{Andorra} &
164 \Country[outline]{Austria} &
165 \Country[outline]{Belarus} \\
166 \Country[outline]{Belgium} &
167 \Country[outline]{Bosnia} &
168 \Country[outline]{Bulgaria} &
169 \Country[outline]{Croatia} \\
170 \Country[outline]{Czechia} &
171 \Country[outline]{Denmark} &
172 \Country[outline]{Estonia} &
173 \Country[outline]{Finland} \\
174 \Country[outline]{France} &
175 \Country[outline]{Germany} &
176 \Country[outline]{GreatBritain} &
177 \Country[outline]{Greece} \\
178 \Country[outline]{Hungary} &
179 \Country[outline]{Iceland} &
180 \Country[outline]{Ireland} &
181 \Country[outline]{Italy} \\
182 \Country[outline]{Latvia} &
183 \Country[outline]{Liechtenstein} &
184 \Country[outline]{Lithuania} &
185 \Country[outline]{Luxembourg} \\
186 \Country[outline]{Macedonia} &
187 \Country[outline]{Malta} &
188 \Country[outline]{Moldova} &
189 \Country[outline]{Montenegro} \\
190 \Country[outline]{Netherlands} &
191 \Country[outline]{Norway} &
192 \Country[outline]{Poland} &
193 \Country[outline]{Portugal} \\
194 \Country[outline]{Romania} &
195 \Country[outline]{Serbia} &
196 \Country[outline]{Slovakia} &
197 \Country[outline]{Slovenia} \\
198 \Country[outline]{Spain} &
199 \Country[outline]{Sweden} &
200 \Country[outline]{Switzerland}
201
202 \end{longtable}
203
204 \endgroup
205
206
207 \section{Ligatures}
208 \rmfamily
209
210 The countries are internally defined as a ligature so that abreviations of the countries can be
211 used for printing.
212 %
213 %\begin{verbatim}
214 %\CoEF ge au
215 %\end{verbatim}
216 %
217 These Ligatures are enabled by default!
218
219 %\begin{verbatim}
220 %\defaultfontfeatures+[\countriesofeuropefamily]{Ligatures=Common}
221 %\end{verbatim}
222
223 %leads to
224
225 \begingroup
226 \ifluatex
227 \CoEF
228 % \defaultfontfeatures+[\countriesofeuropefamily]{Ligatures=Common}
229 \else
230 \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}
231 \fi
232 \verb|{\CoEF ge GE}| $\rightarrow$ {\CoEF ge GE}
233 \endgroup
234
235
236
237
238 \def\TAB#1{\tabular[b]{@{}l@{}}#1\endtabular}
239 \begin{longtable}{ll ll}\toprule
240 \emph{Ligature} & \emph{Output} & \emph{Ligature} & \emph{Output}\\\midrule
241 \endfirsthead
242 \midrule
243 \emph{Ligature} & \emph{Output} & \emph{Ligature} & \emph{Output}\\\midrule
244 \endhead
245 AL & \CoEF AL & AN & \CoEF AN \\\hline
246 AU & \CoEF AU & BELA & \CoEF BELA \\\hline
247 BELG & \CoEF BELG & BO & \CoEF BO\\\hline
248 BU & \CoEF BU & CR & \CoEF CR\\\hline
249 CZ & \CoEF CZ & \TAB{DAN\\DAE} & \CoEF DAN\\\hline
250 EST & \CoEF EST & FI & \CoEF FI \\\hline
251 FR & \CoEF FR & GE & \CoEF GE \\
252 \TAB{EN\\GREA\\BR} & \CoEF BR & GRI & \CoEF GRI \\\hline
253 HU & \CoEF HU & IC & \CoEF IC \\\hline
254 IR & \CoEF IR & IT & \CoEF IT \\\hline
255 LA & \CoEF LA & LIE & \CoEF LIE\\\hline
256 LIT & \CoEF LIT & LU & \CoEF LU \\\hline
257 MAC & \CoEF MAC & MAL & \CoEF MAL\\\hline
258 MOL & \CoEF MOL & MON & \CoEF MON \\\hline
259 NE & \CoEF NE & NO & \CoEF NO\\\hline
260 POL & \CoEF POL & POR & \CoEF POR \\\hline
261 RO & \CoEF RO & SE & \CoEF SE \\\hline
262 SLOVA& \CoEF SLOVA& SLOVE& \CoEF SLOVE \\\hline
263 SP & \CoEF SP & \TAB{SWE\\SV} & \CoEF SWE\\\hline
264 SWI & \CoEF SWI & & \\\bottomrule
265 \end{longtable}
266
267
268 %\defaultfontfeatures[\countriesofeuropefamily]{Ligatures=NoCommon}
269
270
271 %The Ligatures can also be enabled by
272
273 %\begin{verbatim}
274 %\usepackage[Ligatures=Common]{countriesofeurope}
275 %\end{verbatim}
276
277
278 \rmfamily
279 \section{Color options}
280
281
282
283 With the optional arguments \Lkeyword{fillcolor} and \Lkeyword{linecolor} the countries can printed with
284 different colors. The option \Lkeyword{fillcolor} is only valiD, if the option \Lkeyword{outline} is
285 set, too.
286
287
288
289 \verb|\EUCountry[Scale=37.5,outline,fillcolor=blue!20,linecolor=blue]{Germany}|
290 \ifluatex
291 \fontspec{countriesofeurope.otf}
292 \else
293 \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}
294 \fi
295
296
297 \fbox{\EUCountry[Scale=5,outline,fillcolor=blue!20,linecolor=blue]{Germany}}
298
299
300
301 \rmfamily
302 \bgroup
303 \raggedright
304 \nocite{*}
305 %\bibliographystyle{plain}
306 \printbibliography
307 \egroup
308
309 \printindex
310
311
312
313
314
315 \end{document}