Commit e3945384 authored by Jorge Suárez de Lis's avatar Jorge Suárez de Lis 💭

First commit

parents
%%% CLS-CiTIUS v1.0
%
% Copyright 2014 by Diego R. Martinez
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\documentclass{citius}
% Por aquí as cabeceiras do documento (paquetes, definicións, etc.)
% CiTIUS required information
\title{}
\author{% Uncomment/replicate as required:
% \ceCITIUSAuthorMail{}{}%
% \ceCITIUSAuthor{}%
% \ceAuthorInstituteMail{}{}{}%
% \ceAuthorInstitute{}{}%
}
\date{}
% CiTIUS optional commands
\ceThanks{}
\ceCodename{}
\ceHeadInfo{}
% \ceRunningTitle{}
\begin{document}
% Corpo do documento
\end{document}
# Plantilla para a realización da technical reports
Baseada na plantilla realizada por Diego Rodríguez Martínez
Modificada por Jorge Suárez de Lis cambiando os textos onde pon
cousas do Departamento por CITIUS. A idea é usar este repositorio
para seguir mantendo a plantilla e mellorala co tempo.
Se atopas algún problema ou desexas mellorar algo, podes facer
un fork do repositorio e enviar pull requests.
## Modo de emprego
O documento principal é `CLS-CiTIUS_template.tex`, pero neste caso
a plantilla atópase nun arquivo `cls` e resulta moi sinxelo utilizala.
Basta con usar o `documenttype` co nome `citius`.
O arquivo `README.pdf` ten instrucións máis detalladas. Tamén se
inclúe un arquivo `exemplo.pdf` para que se vexa mellor o que se
pode acadar coa plantilla.
File added
%%% CiTIUS Estilo de LaTeX (documentclass) v1.0[Essential]
%
% Copyright 2014 by Diego R. Martinez
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
\NeedsTeXFormat{LaTeX2e}%
\ProvidesClass{citius}[2014/04/29 Standard LaTeX CITIUS class]%
% Options
\newif\if@nothanksoption%
\@nothanksoptiontrue%
\DeclareOption{nothanks}{\@nothanksoptionfalse}%
\ProcessOptions%
\ExecuteOptions{nothanks}%
%
\LoadClass[a4paper,oneside,12pt]{article}%
% Geometry
\RequirePackage[%
a4paper%
,foot=2cm%
,headsep=1.15cm%
,headheight=.75cm%
,footskip=1.5cm%
,inner=2.75cm%
,outer=2.75cm%
,bmargin=3.25cm%
,tmargin=2.75cm%
]{geometry}%
% CiTIUS Estilo commands
\newif\if@nongrazas\@nongrazastrue%
\newif\if@cecodename\@cecodenamefalse%
\newif\if@cecabeceira\@cecabeceirafalse%
\RequirePackage{xspace}%
\def\@CiTIUSeThanks{}%
\def\@CiTIUSeRightHeadings{\@title}%
%
\RequirePackage{hyperref}%
\hypersetup{colorlinks=false,pdfborder={0 0 0},}%
\DeclareRobustCommand{\ceHref}[2]{{\ttfamily\href{#1}{#2}}}%
% CLS commands
\DeclareRobustCommand{\citius}{CiTIUS\xspace}%
\DeclareRobustCommand{\CITIUS}{Centro Singular de Investigaci\'on en Tecnolox\'{\i}as da Informaci\'on\xspace}%
\DeclareRobustCommand{\ceThanks}[1]{\def\@CiTIUSeThanks{#1}\@nongrazasfalse}%
%
\DeclareRobustCommand{\ceCITIUSAuthor}[1]{{
\LARGE#1\par%
\vskip-.25\baselineskip%%
\hspace*{0.05\textwidth}\begin{minipage}[t]{.95\textwidth}%
{\large\CITIUS\par}%
{\large\hspace*{.25ex}\ttfamily\ceHref{http://citius.usc.es}{http://citius.usc.es}\par}%
\end{minipage}\par%
\vskip.5\baselineskip%
}}%
\DeclareRobustCommand{\ceCITIUSAuthorMail}[2]{{%
\LARGE#1\par%
\vskip-.25\baselineskip%%
\hspace*{0.05\textwidth}\begin{minipage}[t]{.95\textwidth}%
{\large\CITIUS\par}%
{\large\hspace*{.25ex}\ttfamily\ceHref{mailto:#2}{#2}\par}%
{\large\hspace*{.25ex}\ttfamily\ceHref{http://citius.usc.es}{http://citius.usc.es}\par}%
\end{minipage}\par%
\vskip.5\baselineskip%
}}%
\DeclareRobustCommand{\ceAuthorInstitute}[2]{{
\LARGE#1\par%
\vskip-.25\baselineskip%%
\hspace*{0.05\textwidth}\begin{minipage}[t]{.95\textwidth}%
{\large#2\par}%
\end{minipage}\par%
\vskip.5\baselineskip%
}}%
\DeclareRobustCommand{\ceAuthorInstituteMail}[3]{{%
\LARGE#1\par%
\vskip-.25\baselineskip%%
\hspace*{0.05\textwidth}\begin{minipage}[t]{.95\textwidth}%
{\large#2\par}%
{\large\hspace*{.25ex}\ttfamily\ceHref{mailto:#3}{#3}\par}%
\end{minipage}\par%
\vskip.25\baselineskip%
}}%
\DeclareRobustCommand{\ceCodename}[1]{\def\@CiTIUSeCodename{#1}\@cecodenametrue}%
\DeclareRobustCommand{\ceHeadInfo}[1]{\def\@CiTIUSeLeftHeadings{#1}\@cecabeceiratrue}%
\DeclareRobustCommand{\ceRunningTitle}[1]{\def\@CiTIUSeRightHeadings{#1}}%
% AUX CLS commands
\DeclareRobustCommand{\ceUseThanks}{%
\ifthenelse{\value{page}=0}{\footnotesize\@CiTIUSeThanks}{}%
}%
\DeclareRobustCommand{\ceUseLeftHeadings}{\if@cecabeceira{\slshape\@CiTIUSeLeftHeadings}\fi}%
\DeclareRobustCommand{\ceUseRightHeadings}{{\slshape\@CiTIUSeRightHeadings}}%
\DeclareRobustCommand{\ceUseGrazasMaketitle}{%
\if@nothanksoption%
\if@nongrazas%
\ClassError{citius}{Non se atopa \protect\ceThanks\space (hai unha opción 'nothanks')%
}{The citius.cls class requires one ceThanks command.\MessageBreak}%
\fi%
\begin{center}\begin{minipage}{.75\textwidth}\raggedright%
{\normalfont\ceUseThanks}\par%
\end{minipage}\end{center}\vskip-.05\paperheight%
\fi%
}%
%
\RequirePackage{ifthen}%
\RequirePackage{fancyhdr}%
\pagestyle{fancy}%
\fancypagestyle{citiusFancy}{%
\fancyhead{}\fancyfoot{} % clear all fields
\fancyhead[RO]{{\footnotesize\ceUseRightHeadings}}%
\fancyhead[LO]{{\footnotesize\ceUseLeftHeadings}}%
\fancyfoot[LO]{\if@nothanksoption{\footnotesize\ttfamily\ceUseThanks}\fi}%
\fancyfoot[RO]{\thepage}%
%
\renewcommand{\headrulewidth}{0.0pt}%
\renewcommand{\footrulewidth}{0.0pt}%
}%
\fancypagestyle{citiusFirstPage}{%
\fancyhead{} % clear all fields
\fancyfoot{} % clear all fields
\fancyfoot[RO]{%
\raisebox{-.0275\paperheight}{%
\includegraphics[height=.04\paperheight]{imaxes_CiTIUS/Logo_CampusVida.pdf}%
}%
\hspace*{.025\paperwidth}%
\raisebox{-.0275\paperheight}{%
\includegraphics[height=.04\paperheight]{imaxes_CiTIUS/Logo_USC.pdf}%
}%
}%
\renewcommand{\headrulewidth}{0.0pt}%
\renewcommand{\footrulewidth}{0.0pt}%
}%
%
\RequirePackage{graphicx}%
\DeclareRobustCommand{\ceMaketitle}{{%
\thispagestyle{citiusFirstPage}%
\suppressfloats%
\sffamily\raggedright%
{% IMAXES
\hfill%
\includegraphics[height=.075\paperheight]{imaxes_CiTIUS/logo_CiTIUS.pdf}%
}\par%
\vspace{\stretch{1}}%
\noindent\rule{\textwidth}{.5pt}\par%
\vskip.015\paperheight%
{\noindent\Huge\bfseries\@title\par}%
\vskip.035\paperheight%
{\noindent\LARGE\@author\par}%
\vskip.015\paperheight%
\noindent\rule{\textwidth}{.5pt}\par%
\vskip.015\paperheight%
{% DATA - CODENAME
\large%
\if@cecodename\begin{minipage}{.5\textwidth}%
\noindent\@CiTIUSeCodename%
\end{minipage}\fi%
\hfill\@date\par%
}%
\vspace{\stretch{1.5}}%
\ceUseGrazasMaketitle%
\vspace{\stretch{0.3}}%
\clearpage%
}}%
% FOOTNOTES
\skip\footins 30pt plus 4pt minus 2pt%
\footnotesep 10pt%
% Viudas/huérfanas
\clubpenalty=10000
\widowpenalty=10000
%
\renewcommand{\familydefault}{\sfdefault}%
\DeclareRobustCommand{\maketitle}{}%
\RequirePackage{etoolbox}%
\AfterEndPreamble{%
\renewcommand{\itshape}{\slshape}%
\setcounter{page}{0}%
\ceMaketitle%
\def\labelitemii{--}%
\pagestyle{citiusFancy}%
}%
% % % End of 'citius.cls'
\ No newline at end of file
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment