diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/euflag')
-rw-r--r-- | Master/texmf-dist/tex/latex/euflag/euflag.sty | 91 |
1 files changed, 59 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/euflag/euflag.sty b/Master/texmf-dist/tex/latex/euflag/euflag.sty index 28644220326..8e05d67c107 100644 --- a/Master/texmf-dist/tex/latex/euflag/euflag.sty +++ b/Master/texmf-dist/tex/latex/euflag/euflag.sty @@ -15,62 +15,89 @@ %% maintainer for inclusion in future versions. %% \NeedsTeXFormat{LaTeX2e}[2016/02/01] -\ProvidesPackage{euflag}[2019/02/02 v0.4 - European Union Flag] +\ProvidesPackage{euflag}[2020/05/16 v0.7 + 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 being passed to package xcolor} + \message{Option svgnames not passed to package xcolor} \else %% this is a user job: include PassOptionsToPackage -\message{Option svgnames being passed to package xcolor} -\PassOptionsToPackage{svgnames}{xcolor} + \message{Option svgnames passed to package xcolor} + \PassOptionsToPackage{svgnames}{xcolor} \fi %% -%% Packages required +%% ****************************************************************** +%% +%% 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} +\RequirePackage[svgnames]{xcolor}% \@ifundefined{T}{% - \newcommand{\T}[2]{{\fontencoding{T1}\selectfont#2}}}{} + \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} +\RequirePackage{graphicx}% %% Provide for the American Mathematical Society's symbols (see their documentation for details). -\RequirePackage{amssymb} +\RequirePackage{amssymb}% +%% +%% ****************************************************************** +%% +%% Changes to package defaults \definecolor{PantoneReflexBlue}{HTML}{003399} \definecolor{PantoneYellow}{HTML}{FFCC00} +%% +%% ****************************************************************** +%% +%% The flag \newcommand{\eustar}{\scalebox{0.1}{\ensuremath{\bigstar}}} -\newcommand{\euflag}{{% +\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 - \colorbox{PantoneReflexBlue}{% + \raisebox{#1}{% + \colorbox{PantoneReflexBlue}{% \vbox to1em{% \hsize1.5em \parskip0pt \parindent0pt \centering - \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}% - }% end vbox - }% end colorbox - }% end environment + \makestars + }% end vbox + }% end colorbox + }% end raisebox + }% end encapsulation }% end command \endinput |