summaryrefslogtreecommitdiff
path: root/fonts/countriesofeurope/doc/countriesofeurope.tex
blob: b812cd4ef635a55dc08b6142610f152cbf3b3f9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
%\listfiles
%% $Id: countriesofeurope.tex 1095 2019-10-03 06:05:39Z herbert $
\documentclass[11pt,english,BCOR=10mm,DIV=13,toc=bibliography,parskip=false,
   headings=small,headinclude=false,footinclude=false,oneside]{pst-doc}
\usepackage[Scale=7.5]{countriesofeurope}
\let\pstFV\fileversion

\usepackage{ifluatex}
\usepackage{dtk-logos}
\ifluatex\else
  \pdfmapfile{+countriesofeurope.map} % only needed, if the map is not enabled with updmap
\fi
\usepackage{lmodern,array,longtable,graphicx,ifthen,ragged2e,libertinus}

\makeatletter
\newcommand\Country[2][]{{%
  \tabular{|>{\Centering}p{2.5cm}|}\hline
    \strut\footnotesize\texttt{\textbackslash#2}\\\hline
    \parbox[c][3.2cm]{2cm}{\EUCountry[#1]{#2}}\\\hline
  \endtabular}}

\makeatother

\newcounter{N}

\renewcommand\bgImage{%
 \EUCountry[Scale=3,outline,fillcolor=blue!20,linecolor=black]{Germany}}

\usepackage{biblatex}
\addbibresource{\jobname.bib}
\begin{document}

\title{Package \texttt{countriesofeurope}}
\subtitle{Printing all european countries as a character of a font (v.\,0.23)}
\author{Rolf Niepraschk\\Herbert Voß\\Ingo Zimmermann}
\docauthor{Herbert Voß}
\date{\today}
\maketitle

\section{Introduction}

\begin{sloppypar}
This package defines the two macros \Lcs{countriesofeuropefamily} (short version is \Lcs{CoEF}) 
and \Lcs{EUCountry}\verb|[options]{name}|,
which allow to print one of the european countries as a single character with the given scaling or
with an individual scaling.

The first one switches
to the font encoding \verb|U| (Type 1) or \verb|TU| (OpenType) and loads the font and the second 
one does the same but also with
printing the character which the given name, e.\,g. for Finland: \verb|\EUCountry[Scale=0.2]{Germany}|$\rightarrow$%
\EUCountry[Scale=0.2]{Germany}.
\end{sloppypar}

The font can be loaded
with an optional argument for the scaling factor, which is preset to 1:

\begin{verbatim}
\usepackage[Scale=10]{countriesofeurope}%   scaled to 10
\end{verbatim}


\section{Default use}

The countris itself are available by a macro from the following list. The characters are
at the position 128--166 in the Type~1 font \LFile{countriesofeurope.pfb} and also available
with the \verb|\char| primitive. The following table shows the countries in their original size
with a scaling of 7.5:

\begin{longtable}{cccc}
\Country{Albania} & 
\Country{Andorra} & 
\Country{Austria} & 
\Country{Belarus} \\ 
\Country{Belgium} &
\Country{Bosnia} & 
\Country{Bulgaria} & 
\Country{Croatia} \\ 
\Country{Czechia} & 
\Country{Denmark} &
\Country{Estonia} & 
\Country{Finland} \\ 
\Country{France} & 
\Country{Germany} & 
\Country{GreatBritain} &
\Country{Greece} \\
\Country{Hungary} & 
\Country{Iceland} & 
\Country{Ireland} & 
\Country{Italy} \\
\Country{Latvia} & 
\Country{Liechtenstein} & 
\Country{Lithuania} & 
\Country{Luxembourg} \\ 
\Country{Macedonia} &
\Country{Malta} & 
\Country{Moldova} & 
\Country{Montenegro} \\ 
\Country{Netherlands} & 
\Country{Norway} &
\Country{Poland} & 
\Country{Portugal} \\ 
\Country{Romania} & 
\Country{Serbia} & 
\Country{Slovakia} &
\Country{Slovenia} \\ 
\Country{Spain} & 
\Country{Sweden} & 
\Country{Switzerland}

\end{longtable}


\noindent\rule{\textwidth}{.5mm}

The countries in the original size with the given bounding box and the text command \verb|\huge|:

%  \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}

\medskip

\begingroup
\fboxsep=0pt
\noindent%
\ifluatex
  \fontspec[Scale=1]{countriesofeurope.otf}
  \huge
  \setcounter{N}{63724}%
  \whiledo{\value{N} > 63686}{%
    \fbox{\symbol{\value{N}}}%
    \addtocounter{N}{-1}}
\else
  \huge
  \setcounter{N}{128}%
  \whiledo{\value{N} < 167}{%
    \fbox{\symbol{\value{N}}}%
    \stepcounter{N}}
\fi
\endgroup

\rmfamily

\section{Outline font}

All countries can be printed as outline, e.\,g.:

\verb|\EUCountry[Scale=37.5,outline]{Germany}|

\EUCountry[Scale=5,outline]{Germany}




\begingroup
\ifluatex
  \CoEF
\else
  \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}
\fi

\begin{longtable}{cccc}
\Country[outline]{Albania} & 
\Country[outline]{Andorra} & 
\Country[outline]{Austria} & 
\Country[outline]{Belarus} \\ 
\Country[outline]{Belgium} &
\Country[outline]{Bosnia} & 
\Country[outline]{Bulgaria} & 
\Country[outline]{Croatia} \\ 
\Country[outline]{Czechia} & 
\Country[outline]{Denmark} &
\Country[outline]{Estonia} & 
\Country[outline]{Finland} \\ 
\Country[outline]{France} & 
\Country[outline]{Germany} & 
\Country[outline]{GreatBritain} &
\Country[outline]{Greece} \\
\Country[outline]{Hungary} & 
\Country[outline]{Iceland} & 
\Country[outline]{Ireland} & 
\Country[outline]{Italy} \\
\Country[outline]{Latvia} & 
\Country[outline]{Liechtenstein} & 
\Country[outline]{Lithuania} & 
\Country[outline]{Luxembourg} \\ 
\Country[outline]{Macedonia} &
\Country[outline]{Malta} & 
\Country[outline]{Moldova} & 
\Country[outline]{Montenegro} \\ 
\Country[outline]{Netherlands} & 
\Country[outline]{Norway} &
\Country[outline]{Poland} & 
\Country[outline]{Portugal} \\ 
\Country[outline]{Romania} & 
\Country[outline]{Serbia} & 
\Country[outline]{Slovakia} &
\Country[outline]{Slovenia} \\ 
\Country[outline]{Spain} & 
\Country[outline]{Sweden} & 
\Country[outline]{Switzerland}

\end{longtable}

\endgroup


\section{Ligatures}
\rmfamily

The countries are internally defined as a ligature so that abreviations of the countries can be
used for printing.
%
%\begin{verbatim}
%\CoEF ge au
%\end{verbatim}
%
These Ligatures are enabled by default! 

%\begin{verbatim}
%\defaultfontfeatures+[\countriesofeuropefamily]{Ligatures=Common}
%\end{verbatim}

%leads to

\begingroup
\ifluatex
  \CoEF
%  \defaultfontfeatures+[\countriesofeuropefamily]{Ligatures=Common}
\else
  \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}
\fi
\verb|{\CoEF ge GE}| $\rightarrow$ {\CoEF ge GE} 
\endgroup




\def\TAB#1{\tabular[b]{@{}l@{}}#1\endtabular}
\begin{longtable}{ll ll}\toprule
\emph{Ligature} & \emph{Output} & \emph{Ligature} & \emph{Output}\\\midrule
\endfirsthead
\midrule
\emph{Ligature} & \emph{Output} & \emph{Ligature} & \emph{Output}\\\midrule
\endhead
AL   & \CoEF AL   & AN   & \CoEF AN \\\hline
AU   & \CoEF AU   & BELA & \CoEF BELA \\\hline 
BELG & \CoEF BELG & BO   & \CoEF BO\\\hline
BU   & \CoEF BU   & CR   & \CoEF CR\\\hline 
CZ   & \CoEF CZ   & \TAB{DAN\\DAE}   & \CoEF DAN\\\hline
EST  & \CoEF EST  & FI   & \CoEF FI \\\hline 
FR   & \CoEF FR   & GE   & \CoEF GE \\
\TAB{EN\\GREA\\BR} & \CoEF BR & GRI & \CoEF GRI \\\hline
HU   & \CoEF HU   & IC   & \CoEF IC \\\hline 
IR   & \CoEF IR   & IT   & \CoEF IT \\\hline
LA   & \CoEF LA   & LIE  & \CoEF LIE\\\hline 
LIT  & \CoEF LIT  & LU   & \CoEF LU \\\hline 
MAC  & \CoEF MAC  & MAL  & \CoEF MAL\\\hline
MOL  & \CoEF MOL  & MON  & \CoEF MON \\\hline 
NE   & \CoEF NE   & NO   & \CoEF NO\\\hline
POL  & \CoEF POL  & POR  & \CoEF POR \\\hline 
RO   & \CoEF RO   & SE   & \CoEF SE \\\hline
SLOVA& \CoEF SLOVA& SLOVE& \CoEF SLOVE \\\hline 
SP   & \CoEF SP   & \TAB{SWE\\SV} & \CoEF SWE\\\hline
SWI  & \CoEF SWI & & \\\bottomrule
\end{longtable}


%\defaultfontfeatures[\countriesofeuropefamily]{Ligatures=NoCommon}


%The Ligatures can also be enabled by 

%\begin{verbatim}
%\usepackage[Ligatures=Common]{countriesofeurope}
%\end{verbatim}


\rmfamily
\section{Color options}



With the optional arguments  \Lkeyword{fillcolor} and \Lkeyword{linecolor} the countries can printed with
different colors. The option \Lkeyword{fillcolor} is only valiD, if the option \Lkeyword{outline} is
set, too.



\verb|\EUCountry[Scale=37.5,outline,fillcolor=blue!20,linecolor=blue]{Germany}|
\ifluatex
  \fontspec{countriesofeurope.otf}
\else
  \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[1]countriesofeurope}{}
\fi


\fbox{\EUCountry[Scale=5,outline,fillcolor=blue!20,linecolor=blue]{Germany}}



\rmfamily
\bgroup
\raggedright
\nocite{*}
%\bibliographystyle{plain}
\printbibliography
\egroup

\printindex





\end{document}