-
Notifications
You must be signed in to change notification settings - Fork 3
/
scielo.sty
112 lines (102 loc) · 3.7 KB
/
scielo.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
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
106
107
108
109
110
111
112
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc} %% *
\RequirePackage[portuges,spanish,french,english,german,italian,russian]{babel} %% *
\RequirePackage{amstext}
\RequirePackage{authblk}
\RequirePackage{unicode-math}
\RequirePackage{multirow}
\RequirePackage{graphicx}
\RequirePackage{etoolbox}
\RequirePackage{xtab}
\RequirePackage{adjustbox}
\RequirePackage[flushleft]{threeparttable}
\RequirePackage{enumerate}
\RequirePackage{hyperref}
\RequirePackage{penalidades}
\RequirePackage{textcase}
\RequirePackage[footnotesize,bf,hang]{caption}
\RequirePackage[nodayofweek,level]{datetime}
\RequirePackage[top=0.85in,left=2.75in,footskip=0.75in]{geometry}
\RequirePackage{lastpage,fancyhdr}
\RequirePackage{epstopdf}
\RequirePackage[table]{xcolor}
\RequirePackage{multirow}
\RequirePackage{tikz}
\RequirePackage{eso-pic}
\usepackage{ccicons}
\usepackage{textcomp}
\newlength\savedwidth
\newcommand\thickcline[1]{\noalign{\global
\savedwidth
\arrayrulewidth
\global\arrayrulewidth 2pt}
\cline{#1}
\noalign{\vskip\arrayrulewidth}
\noalign{\global\arrayrulewidth\savedwidth}}
\newcommand\thickhline{\noalign{\global
\savedwidth\arrayrulewidth
\global\arrayrulewidth 2pt}
\hline
\noalign{\global\arrayrulewidth\savedwidth}}
\pagestyle{myheadings}
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{27.023pt}
\lhead{\includegraphics[width=11mm]{logo.png}}
\rhead{\ifdef{\journaltitle}{\journaltitle}{}
\ifdef{\volume}{vol.\,\volume}{}
\ifdef{\issue}{(\issue)}{}
\ifdef{\fpage}{\fpage--\lpage\,pp.}}
\rfoot{\thepage/\pageref{LastPage}}
\renewcommand{\footrule}{\hrule height 2pt \vspace{2mm}}
\fancyheadoffset[L]{2.25in}
\fancyfootoffset[L]{2.25in}
\lfoot{\sf \ifdef{\articledoi}{\articledoi}{}}
\definecolor{burgundy}{rgb}{0.5, 0.0, 0.13}
\definecolor{maroon}{cmyk}{0.85,0.30,1,0.15}
\definecolor{beginho}{cmyk}{0.15,0.15,0.25,0}
\definecolor{verde}{cmyk}{0.20,0,0.18,0}
\definecolor{verdelimao}{cmyk}{0.40,0,0.36,0}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyhead[R]{\colorbox{burgundy}{
\makebox[
\dimexpr\headwidth-2\fboxsep][r]{\strut\color{white}
\sffamily\bfseries
\MakeTextUppercase\subject}}%
\colorbox{white}{\makebox[\dimexpr0.2
\headwidth-2
\fboxsep][c]{\strut\ }
}}
%\fancyhead[R]{\sffamily\bfseries\color{blue}\textsc{\subject}}
\fancyhead[L]{}
\fancyfoot[L]{
\begin{tikzpicture}[gray,very thin,remember picture,overlay]
%\foreach \y in {0,1,2,3,4,5,7,8,9,10,11,12,13,14,15}
%\draw[step=1cm,gray,very thin] (0,0) node {0} (0,\y) node {\y} (-2,-2) grid (60,60);
\draw (2,20) node {\includegraphics[width=4cm]{logo.png}};
\draw (3cm,9cm) node[text width = 5cm] {\baselineskip=.7\baselineskip
\footnotesize\begin{minipage}{5cm}
\hyphenpenalty=10000\authornotes\\ \ifdef{\cclicense}{\cclicense}{}\end{minipage}};
\end{tikzpicture}
\sf \ifdef{\articledoi}{\articledoi}{}}
\fancyfoot[R]{\thepage/\pageref{LastPage}}
\renewcommand{\headrulewidth}{0pt}}
\setmainfont{Linux Libertine O}
\renewcommand*{\thefootnote}{\alph{footnote}}
\makeatletter
\newcommand{\fn}{\afterassignment\fn@aux\count0=}
\newcommand{\fn@aux}{\csname fn\the\count0\endcsname}
\makeatother
% title
\newcommand{\subtitlestyle}[1]{-- \emph{#1}\medskip}
\newcommand{\transtitlestyle}[1]{\par\medskip\Large #1}
\newcommand{\transsubtitlestyle}[1]{-- \Large\emph{ #1}}
\newcommand{\titlegroup}{
\ifdef{\subtitle}{\subtitlestyle{\subtitle}}{}
\ifdef{\transtitleen}{\transtitlestyle{\transtitleen}}{}
\ifdef{\transtitlees}{\transtitlestyle{\transtitlees}}{}
\ifdef{\transtitlefr}{\transtitlestyle{\transtitlefr}}{}
\ifdef{\transtitlept}{\transtitlestyle{\transtitlept}}{}
\ifdef{\transsubtitle}{\transsubtitlestyle{\transsubtitle}}{}
}