Skip to content

Instantly share code, notes, and snippets.

@ntfc
Created September 16, 2014 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntfc/f0d88ba056a306ad1a39 to your computer and use it in GitHub Desktop.
Save ntfc/f0d88ba056a306ad1a39 to your computer and use it in GitHub Desktop.
UM Logo
% UM_ENg Logo
\DeclareRobustCommand{\UMEng}[1][normal]{
% define colors
\ifstrequal{#1}{grey}{%
% greyscaled logos
\definecolor{eng}{rgb}{0.61,0.6,0.6}
\definecolor{um}{rgb}{0.61,0.6,0.6}
\begin{tikzpicture}[%
% bars styling,
logone/.style={rectangle,fill=white,rounded corners=0.08cm,minimum width=0.16cm,inner sep=0pt},
bigone/.style={minimum height=0.74cm},
smaone/.style={minimum height=0.48cm},
engone/.style={minimum height=0.86cm},
pos1/.style={xshift=1.3cm,yshift=1.3cm},
pos2/.style={xshift=3.95cm,yshift=1.3cm}
]
}{%
% colorful logos
\definecolor{eng}{rgb}{0.89,0.37,0.086}
\definecolor{um}{rgb}{0.701,0.075,0.114}
\begin{tikzpicture}[%
% bars styling,
logone/.style={rectangle,fill=white,rounded corners=0.08cm,minimum width=0.16cm,inner sep=0pt},
bigone/.style={minimum height=0.74cm},
smaone/.style={minimum height=0.48cm},
engone/.style={minimum height=0.86cm},
pos1/.style={xshift=1.3cm,yshift=1.3cm},
pos2/.style={xshift=3.9cm,yshift=1.3cm}
]
}
% Uminho logo
\fill[fill=um] (0,0) -- (2.6,0) -- (2.6,2.6) -- (0,2.6) -- cycle;
\foreach \i in {1,...,3}{
\node at (\i*120+30:0.45)[logone,bigone,pos1,rotate=\i*120-60]{};
\node at (\i*120+90:0.60)[logone,smaone,pos1,rotate=\i*120]{};
}
% EngUminho logo
\ifstrequal{#1}{grey}{%
\fill[fill=eng] (2.65,0) -- (5.3,0) -- (5.3,2.6) -- (2.65,2.6) -- cycle;
}{%
\fill[fill=eng] (2.6,0) -- (5.2,0) -- (5.2,2.6) -- (2.6,2.6) -- cycle;
}
\foreach \i in {1,...,5}
\node at (\i*72-90:0.68)[engone,logone,pos2,rotate=\i*72-90]{};
\end{tikzpicture}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment