diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/ucsmonograph/ucsmonograph.cls | 150 |
1 files changed, 114 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/ucsmonograph/ucsmonograph.cls b/Master/texmf-dist/tex/latex/ucsmonograph/ucsmonograph.cls index bb6793e626e..8ee108f1841 100644 --- a/Master/texmf-dist/tex/latex/ucsmonograph/ucsmonograph.cls +++ b/Master/texmf-dist/tex/latex/ucsmonograph/ucsmonograph.cls @@ -26,43 +26,38 @@ %% Classe ucsmonograph %% Formata um documento da classe abnTeX2 para o padrao exigido pela Universidade de Caxias do Sul para monografias. %% -%% DUVIDAS E SUGESTOES: Entre em contato atraves do perfil do desenvolvedor no TeX Stack Exchange: -%% https://tex.stackexchange.com/users/153467/henrique-baron +%% DUVIDAS E SUGESTOES: Abra uma issue na pagina do projeto +%% https://github.com/HenriqueBaron/ucsmonograph %% \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ucsmonograph} -[2018/07/31 v1.0.0 Padrao de monografias da UCS] +[2018/08/16 v1.1.0 Padrao de monografias da UCS] \RequirePackage{ifthen} -\newboolean{lmodernAtivo} -\setboolean{lmodernAtivo}{false} +\newboolean{@lmodernAtivo} +\setboolean{@lmodernAtivo}{false} -\newboolean{listasAtivo} -\setboolean{listasAtivo}{false} +\newboolean{@siglasAtivo} +\setboolean{@siglasAtivo}{false} -\newboolean{siglasAtivo} -\setboolean{siglasAtivo}{false} - -\newboolean{simbolosAtivo} -\setboolean{simbolosAtivo}{false} +\newboolean{@simbolosAtivo} +\setboolean{@simbolosAtivo}{false} \RequirePackage{kvoptions} \DeclareStringOption[alf]{cite} \ProcessKeyvalOptions* \DeclareOption{lmodern}{% -\setboolean{lmodernAtivo}{true}% +\setboolean{@lmodernAtivo}{true}% } \DeclareOption{siglas}{% -\setboolean{listasAtivo}{true}% -\setboolean{siglasAtivo}{true}% +\setboolean{@siglasAtivo}{true}% } \DeclareOption{simbolos}{% -\setboolean{listasAtivo}{true}% -\setboolean{simbolosAtivo}{true}% +\setboolean{@simbolosAtivo}{true}% } \DeclareOption*{\PassOptionsToClass{\CurrentOption}{abntex2}} @@ -71,11 +66,12 @@ \RequirePackage{ifluatex} \ifluatex -\usepackage[math-style=upright]{unicode-math} -\setboolean{lmodernAtivo}{true} +\RequirePackage[math-style=upright]{unicode-math} +\setboolean{@lmodernAtivo}{true} \fi -\RequirePackage[\ucsmonograph@cite,abnt-etal-list=3,abnt-etal-text=it,abnt-full-initials=no]{abntex2cite} +\RequirePackage[\ucsmonograph@cite,abnt-etal-list=3,abnt-etal-text=it,% +abnt-full-initials=no]{abntex2cite} \ifthenelse{\equal{\ucsmonograph@cite}{num}}{% \citebrackets[]% @@ -86,8 +82,16 @@ \let\IfSubStringInString\relax \let\su@IfSubStringInString\relax -\ifthenelse{\boolean{lmodernAtivo}}{% -\RequirePackage{lmodern}% ^^A Habilita a fonte Latin Modern +\hypersetup{% +unicode=true, +pdfcreator={LaTeX with ucsmonograph}, +colorlinks=true, +linkcolor=black, +citecolor=black, +} + +\ifthenelse{\boolean{@lmodernAtivo}}{% +\RequirePackage{lmodern} }{} \RequirePackage{caption} @@ -115,21 +119,24 @@ \RequirePackage{suffix} -\ifthenelse{\boolean{siglasAtivo}}{% +\ifthenelse{\boolean{@siglasAtivo}}{% \PassOptionsToPackage{acronyms}{glossaries-extra}% } -\ifthenelse{\boolean{simbolosAtivo}}{% +\ifthenelse{\boolean{@simbolosAtivo}}{% \PassOptionsToPackage{symbols}{glossaries-extra}% } -\PassOptionsToPackage{record,toc=false,nonumberlist,style=long,acronyms,symbols}{glossaries-extra} +\ifthenelse{\boolean{@siglasAtivo} \OR \boolean{@simbolosAtivo}}{% +\PassOptionsToPackage{record,toc=false,nonumberlist,style=long}{glossaries-extra}% +}{} -\ifthenelse{\boolean{listasAtivo}}{% -\RequirePackage{glossaries-extra}% +\RequirePackage{glossaries-extra} +\setlength\glsdescwidth\linewidth% + +\ifthenelse{\boolean{@siglasAtivo}}{% \setabbreviationstyle[acronym]{long-short}% \setabbreviationstyle[foreignabbreviation]{long-short-user}% -\setlength{\glsdescwidth}{\linewidth}% }{} \newcommand{\quadroname}{Quadro} @@ -149,6 +156,12 @@ \counterwithout{quadro}{chapter} +\let\@oldlistofquadros\listofquadros +\def\listofquadros{% +\pdfbookmark[0]{\listquadroname}{loq} +\@oldlistofquadros +} + \makepagestyle{abntheadings} \makeevenhead{abntheadings}{\ABNTEXfontereduzida\thepage}{}{} \makeoddhead{abntheadings}{}{}{\ABNTEXfontereduzida\thepage} @@ -173,6 +186,7 @@ \renewcommand{\ABNTEXsubsubsubsectionfont}{\ABNTEXsubsubsectionfont\itshape} \renewcommand{\ABNTEXsubsubsubsectionfontsize}{\normalsize} +\AtBeginDocument{\setlength{\afterchapskip}{20pt}} \renewcommand{\cftchapterfont}{\ABNTEXchapterfont} \renewcommand{\cftsectionfont}{\ABNTEXsectionfont} \renewcommand{\cftsubsectionfont}{\ABNTEXsubsectionfont} @@ -222,7 +236,61 @@ \expandafter\uppercase\expandafter{\thedate}% } -\ifthenelse{\boolean{siglasAtivo}}{% +\let\@olddedicatoria\dedicatoria +\let\@oldenddedicatoria\enddedicatoria +\def\dedicatoria{% +\@olddedicatoria% +\vspace*{\fill}% +\hspace{.5\textwidth}% +\begin{minipage}[b]{.45\textwidth}% +\SingleSpacing% +} +\def\enddedicatoria{% +\end{minipage}% +\@oldenddedicatoria% +} + +\let\@oldtitulo\titulo +\renewcommand{\titulo}[1]{% +\@oldtitulo{#1} +\hypersetup{% +pdftitle={#1} +} +} +\let\@oldautor\autor +\renewcommand{\autor}[1]{% +\@oldautor{#1} +\hypersetup{% +pdfauthor={#1} +} +} +\let\@oldpreambulo\preambulo +\renewcommand{\preambulo}[1]{% +\@oldpreambulo{#1} +\hypersetup{% +pdfsubject={#1} +} +} + +\let\@oldlistoffigures\listoffigures +\def\listoffigures{% +\pdfbookmark[0]{\listfigurename}{lof} +\@oldlistoffigures +} + +\let\@oldlistoftables\listoftables +\def\listoftables{% +\pdfbookmark[0]{\listtablename}{lot} +\@oldlistoftables +} + +\let\@oldtableofcontents\tableofcontents +\def\tableofcontents{% +\pdfbookmark[0]{\contentsname}{toc} +\@oldtableofcontents +} + +\ifthenelse{\boolean{@siglasAtivo}}{% \renewcommand{\glsxtruserparen}[2]{% \glsxtrfullsep{#2}% \glsxtrparen @@ -233,7 +301,7 @@ } }{} -\let\@contentslineaux\contentsline +\let\@oldcontentsline\contentsline \def\contentsline#1#2{% \expandafter\ifx\csname l@#1\endcsname\l@section \expandafter\@firstoftwo @@ -241,14 +309,22 @@ \expandafter\@secondoftwo \fi {% -\@contentslineaux{#1}{\MakeTextUppercase{#2}}% +\@oldcontentsline{#1}{\MakeTextUppercase{#2}}% }{% -\@contentslineaux{#1}{#2}% +\@oldcontentsline{#1}{#2}% }% } -\let\@foreignlanguageaux\foreignlanguage -\renewcommand{\foreignlanguage}[2]{\@foreignlanguageaux{#1}{\emph{#2}}} +\let\@oldforeignlanguage\foreignlanguage +\renewcommand{\foreignlanguage}[2]{\@oldforeignlanguage{#1}{\emph{#2}}} + +\newcommand{\@palavraschave}{} +\newcommand{\palavraschave}[1]{% +\renewcommand{\@palavraschave}{#1} +\hypersetup{% +pdfkeywords={#1} +} +} \newcommand{\imprimirfolhadeaprovacao}[5][Universidade de Caxias do Sul - UCS]{% \begin{folhadeaprovacao}% \begin{center}% @@ -313,7 +389,7 @@ Universidade de Caxias do Sul - UCS \par \end{minipage} } -\ifthenelse{\boolean{siglasAtivo}}{% +\ifthenelse{\boolean{@siglasAtivo}}{% \newcommand{\incluirsiglas}[1]{% \GlsXtrLoadResources[% src = {#1}, @@ -328,12 +404,13 @@ category={same as original entry}% requires bib2gls v1.4+ ] }% \WithSuffix\newcommand\listofsiglas*{% +\pdfbookmark[0]{\listadesiglasname}{loa} \printunsrtglossary[type=acronym,title=\listadesiglasname]% \addtocounter{table}{-1}% }% }{} -\ifthenelse{\boolean{simbolosAtivo}}{% +\ifthenelse{\boolean{@simbolosAtivo}}{% \newcommand{\incluirsimbolos}[1]{% \GlsXtrLoadResources[% src = {#1}, @@ -342,6 +419,7 @@ type = {symbols} ]% }% \WithSuffix\newcommand\listofsimbolos*{% +\pdfbookmark[0]{\listadesimbolosname}{los} \printunsrtglossary[type=symbols,title=\listadesimbolosname]% \addtocounter{table}{-1}% }% |