-
Notifications
You must be signed in to change notification settings - Fork 0
/
logo-unicamp.sty
59 lines (51 loc) · 1.94 KB
/
logo-unicamp.sty
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
% UNICAMP's logo
{
\def\release{2010-03-08}
\def\lastedit{2010-03-12 23:28:46 by stolfi}
\typeout{logo-unicamp.sty release {\release} last edit {\lastedit}}
}
\ProvidesPackage{logo-unicamp}
\RequirePackage{graphicx}
% MACROS DEFINED IN THIS PACKAGE
%
% \LogoUnicamp
% This macro produces a fixed-size square box containing the UNICAMP
% logo, including the "UNICAMP" text at the bottom and whatever blank
% padding is necessary. Use \scalebox{SCALE}{\LogoUnicamp} etc. to resize it.
%
% \LogoUnicampBare
% This macro produces the UNICAMP logo, with the text underneath,
% in a tight-fitting box, scaled to have same width
% as the standard logo box but with a different height.
%
% PARAMETERS
% These parameters determine the location and style of the default
% logo images. Redefine with \renewcommand as appropriate.
%
\newcommand{\LogoUnicampSize}{60pt}
% The height and width of the logo box, including name (if any)
%
\newcommand{\LogoUnicampFile}{logo-unicamp.pdf}
% The name (relative to the current directory) of the EPS file that
% contains the UNICAMP logo.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Users should not need to read below this point
\advance \endlinechar by -256 % Ignore line breaks in this file
% Nominal logo dimensions (should match those of IC's logo!)
\newcommand{\LogoUnicampWidth}{\LogoUnicampSize} % Nominal width of Unicamp logo
\newcommand{\LogoUnicampHeight}{\LogoUnicampSize} % Nominal height of Unicamp logo
% Unicamp logo in a tight-fitting box, without name
\newcommand{\LogoUnicampBare}{
\hbox{\includegraphics*[width=\LogoUnicampWidth]{\LogoUnicampFile}}
}
\newcommand{\LogoUnicamp}{
\vbox to \LogoUnicampHeight{
\offinterlineskip
\hrule height 0pt width 0pt depth 0pt
\vss
\LogoUnicampBare
\vss
\hrule height 0pt width 0pt depth 0pt
}
}
\advance \endlinechar by 256 % Restore \endlinechar as before