| 1 |
%% |
| 2 |
%% This is file `euflag.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% euflag.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Copyright © 2019 by Silmaril Consultants |
| 12 |
%% |
| 13 |
%% This file was generated from an XML master source. |
| 14 |
%% Amendments and corrections should be notified to the |
| 15 |
%% maintainer for inclusion in future versions. |
| 16 |
%% |
| 17 |
\NeedsTeXFormat{LaTeX2e}[2016/02/01] |
| 18 |
\ProvidesPackage{euflag}[2020/05/22 v0.8 |
| 19 |
European Union Flag] |
| 20 |
\def\CPK@thispackage{euflag} |
| 21 |
\edef\CPK@thispackage{\meaning\CPK@thispackage} |
| 22 |
\edef\CPK@thisjob{\jobname} |
| 23 |
\edef\CPK@thisjob{\meaning\CPK@thisjob} |
| 24 |
\ifx\CPK@thispackage\CPK@thisjob |
| 25 |
%% this is the documentation: omit PassOptionsToPackage |
| 26 |
\message{Option svgnames not passed to package xcolor} |
| 27 |
\else |
| 28 |
%% this is a user job: include PassOptionsToPackage |
| 29 |
\message{Option svgnames passed to package xcolor} |
| 30 |
\PassOptionsToPackage{svgnames}{xcolor} |
| 31 |
\fi |
| 32 |
%% |
| 33 |
%% ****************************************************************** |
| 34 |
%% |
| 35 |
%% Options |
| 36 |
\newlength{\EUF@baseline} |
| 37 |
\setlength{\EUF@baseline}{0pt} |
| 38 |
\DeclareOption{baseline}{\setlength\EUF@baseline{-.167em}} |
| 39 |
\DeclareOption*{% |
| 40 |
\PackageWarning{euflag}{Unknown option |
| 41 |
‘\CurrentOption’; please Read The Fine Manual}% |
| 42 |
} |
| 43 |
\ProcessOptions |
| 44 |
%% |
| 45 |
%% Packages required for the class or package |
| 46 |
%% |
| 47 |
%% Provide color. |
| 48 |
\RequirePackage[svgnames]{xcolor}% |
| 49 |
\@ifundefined{T}{% |
| 50 |
\newcommand{\T}[2]{{\fontencoding{T1}% |
| 51 |
\selectfont#2}}}{} |
| 52 |
%% Provide for graphics (PNG, JPG, or PDF format (only) for pdflatex; EPS format (only) for standard \LaTeX{}). |
| 53 |
\RequirePackage{graphicx}% |
| 54 |
%% Provide for the American Mathematical Society's symbols (see their documentation for details). |
| 55 |
\RequirePackage{amssymb}% |
| 56 |
%% |
| 57 |
%% ****************************************************************** |
| 58 |
%% |
| 59 |
%% Changes to package defaults |
| 60 |
\definecolor{PantoneReflexBlue}{HTML}{003399} |
| 61 |
\definecolor{PantoneYellow}{HTML}{FFCC00} |
| 62 |
%% |
| 63 |
%% ****************************************************************** |
| 64 |
%% |
| 65 |
%% The flag |
| 66 |
\newcommand{\eustar}{\scalebox{0.1}{\ensuremath{\bigstar}}} |
| 67 |
\newcommand{\makestars}{% |
| 68 |
\color{PantoneYellow}% |
| 69 |
\setlength{\unitlength}{1em} |
| 70 |
\divide\unitlength by18 |
| 71 |
\begin{picture}(6,6)(-2,3.5) |
| 72 |
\put(6,0){\eustar} |
| 73 |
\put(5.196,3){\eustar} |
| 74 |
\put(3,5.196){\eustar} |
| 75 |
\put(0,6){\eustar} |
| 76 |
\put(-3,5.196){\eustar} |
| 77 |
\put(-5.196,3){\eustar} |
| 78 |
\put(-6,0){\eustar} |
| 79 |
\put(-5.196,-3){\eustar} |
| 80 |
\put(-3,-5.196){\eustar} |
| 81 |
\put(0,-6){\eustar} |
| 82 |
\put(3,-5.196){\eustar} |
| 83 |
\put(5.196,-3){\eustar} |
| 84 |
\end{picture}% |
| 85 |
} |
| 86 |
\newcommand{\euflag}[1][\EUF@baseline]{% |
| 87 |
{% |
| 88 |
\fboxsep0pt |
| 89 |
\raisebox{#1}{% |
| 90 |
\colorbox{PantoneReflexBlue}{% |
| 91 |
\vbox to1em{% |
| 92 |
\hsize1.5em |
| 93 |
\parskip0pt |
| 94 |
\parindent0pt |
| 95 |
\centering |
| 96 |
\makestars |
| 97 |
}% end vbox |
| 98 |
}% end colorbox |
| 99 |
}% end raisebox |
| 100 |
}% end encapsulation |
| 101 |
}% end command |
| 102 |
|
| 103 |
\endinput |
| 104 |
%% |
| 105 |
%% End of file `euflag.sty'. |