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
|
%%
%% This is file `euflag.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% euflag.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright © 2019 by Silmaril Consultants
%%
%% This file was generated from an XML master source.
%% Amendments and corrections should be notified to the
%% maintainer for inclusion in future versions.
%%
\NeedsTeXFormat{LaTeX2e}[2016/02/01]
\ProvidesPackage{euflag}[2020/05/22 v0.8
European Union Flag]
\def\CPK@thispackage{euflag}
\edef\CPK@thispackage{\meaning\CPK@thispackage}
\edef\CPK@thisjob{\jobname}
\edef\CPK@thisjob{\meaning\CPK@thisjob}
\ifx\CPK@thispackage\CPK@thisjob
%% this is the documentation: omit PassOptionsToPackage
\message{Option svgnames not passed to package xcolor}
\else
%% this is a user job: include PassOptionsToPackage
\message{Option svgnames passed to package xcolor}
\PassOptionsToPackage{svgnames}{xcolor}
\fi
%%
%% ******************************************************************
%%
%% Options
\newlength{\EUF@baseline}
\setlength{\EUF@baseline}{0pt}
\DeclareOption{baseline}{\setlength\EUF@baseline{-.167em}}
\DeclareOption*{%
\PackageWarning{euflag}{Unknown option
‘\CurrentOption’; please Read The Fine Manual}%
}
\ProcessOptions
%%
%% Packages required for the class or package
%%
%% Provide color.
\RequirePackage[svgnames]{xcolor}%
\@ifundefined{T}{%
\newcommand{\T}[2]{{\fontencoding{T1}%
\selectfont#2}}}{}
%% Provide for graphics (PNG, JPG, or PDF format (only) for pdflatex; EPS format (only) for standard \LaTeX{}).
\RequirePackage{graphicx}%
%% Provide for the American Mathematical Society's symbols (see their documentation for details).
\RequirePackage{amssymb}%
%%
%% ******************************************************************
%%
%% Changes to package defaults
\definecolor{PantoneReflexBlue}{HTML}{003399}
\definecolor{PantoneYellow}{HTML}{FFCC00}
%%
%% ******************************************************************
%%
%% The flag
\newcommand{\eustar}{\scalebox{0.1}{\ensuremath{\bigstar}}}
\newcommand{\makestars}{%
\color{PantoneYellow}%
\setlength{\unitlength}{1em}
\divide\unitlength by18
\begin{picture}(6,6)(-2,3.5)
\put(6,0){\eustar}
\put(5.196,3){\eustar}
\put(3,5.196){\eustar}
\put(0,6){\eustar}
\put(-3,5.196){\eustar}
\put(-5.196,3){\eustar}
\put(-6,0){\eustar}
\put(-5.196,-3){\eustar}
\put(-3,-5.196){\eustar}
\put(0,-6){\eustar}
\put(3,-5.196){\eustar}
\put(5.196,-3){\eustar}
\end{picture}%
}
\newcommand{\euflag}[1][\EUF@baseline]{%
{%
\fboxsep0pt
\raisebox{#1}{%
\colorbox{PantoneReflexBlue}{%
\vbox to1em{%
\hsize1.5em
\parskip0pt
\parindent0pt
\centering
\makestars
}% end vbox
}% end colorbox
}% end raisebox
}% end encapsulation
}% end command
\endinput
%%
%% End of file `euflag.sty'.
|