Commits

Inês Almeida committed f144621

Abstract and list of acronyms

  • Participants
  • Parent commits 55103fc

Comments (0)

Files changed (6)

File document/frontmatter/abstract.tex

+\providecommand{\keywords}[1]{\vskip 0.8cm \center \textbf{\iflanguage{portuguese}{Palavras-Chave}{Keywords}:} #1}
+
+
+% % Abstract and Keywords in pt (mandatory)
+
+%\setlanguage{portuguese} 
+\begin{otherlanguage}{portuguese}
+\begin{abstract}
+Objectivo, conteúdo e conclusões, com um máximo de 250 palavras e 4 a 6 palavras-chave.
+\keywords LGP, LP
+\end{abstract}
+\end{otherlanguage}
+
+\cleardoublepage
+
+
+% % Abstract and Keywords in en (mandatory)
+\newcommand{\Abstract}{
+Goal, content and conclusions, with a maximum of 250 words and 4 to 6 keywords.
+}
+\def\Keywords {LGP, LP}
+
+
+%% for the pdf's metadata
+\hypersetup{ pdfsubject={\Abstract}, pdfkeywords={\Keywords} }
+
+%% actually gets printed
+\begin{abstract}
+	\Abstract
+	\keywords \Keywords
+\end{abstract}

File document/frontmatter/cover.tex

 \end{center}
 
 \makeatother
+
+\cleardoublepage

File document/lgp.pdf

Binary file modified.

File document/lgp.tex

 % % TODO 'main=' outputs error
 \usepackage[portuguese,UKenglish]{babel} % for language support, localization and hyphenation
 \usepackage{csquotes} % context sensitive quotation facilities. recommended with babel and biblatex
+\addto{\captionsportuguese}{\renewcommand*{\contentsname}{Índice}}
 
 \usepackage{graphicx} % manage external pictures
 \graphicspath{ {images/} } % path to the image folder
 %\usepackage{listings} % to insert programming code within the document
 %\usepackage{array} % for better arrays (eg matrices) in maths
 
-\usepackage{acronym} % ensures that all acronyms used are fully spelled at least once. Provides an environment to build a list of acronyms used
+\usepackage[printonlyused]{acronym} % ensures that all acronyms used are fully spelled at least once. Provides an environment to build a list of acronyms used
 \usepackage[super]{nth} % the command \nth{<number>} generates English ordinal numbers of the form 1st, 2nd, 3rd, 4th, etc. 'super' puts 'st' in superscript
 
 \usepackage{xpatch} % extends 'etoolbox' patching commands, recommended use with biblatex
 \begin{document}
 
 	\input{commands.tex}
-	\clearpage{\pagestyle{empty}\cleardoublepage}
-%	\input{sections/acronyms.tex}
 
 	%Cover
 	\input{frontmatter/cover.tex}
 	%lombada?
-
 	\restoregeometry
 
 	%acknowledgments (optional)
+	%\input{frontmatter/acknowledgments.tex}
+
 	%abstract
-	\input{sections/abstract.tex}
+	\input{frontmatter/abstract.tex}
+
+	%index and lists
 	\tableofcontents
 	\listoftables
 	\listoffigures
 	%list of algorithms or other things can be made with the 'float' package and configured with the 'tocloft' package
-	%'nomencl' for a table of symbols and notation used
-	%\printacronyms
+	%'nomencl' for a table of symbols and notation used. The 'acro' package should be better than 'acronym', when fully supported
+	\chapter*{\iflanguage{portuguese}{Lista de Abreviações}{List of Acronyms}}
+	\input{sections/acronyms.tex}
+
 
 	\chapter{Content} \label{sec:1} %(max 80 pgs)
 	This is the main document text. \todo{Add a figure} It refers web things like links\cite{weblink} and online documents\cite{spec}.
-	Then, there are textbooks\cite{txtbook} or other special kind of references separated by some reason.
+	Then, there are textbooks\cite{txtbook} or other special kind of references separated by some reason. Acronyms like \ac{UTL} are supported.
 	Finally, the normal things\cite{bailey07gpu}\cite{angelinsights}\cite{gameengine}.
 
 	\chapter{Background} \label{chap:bg}

File document/sections/abstract.tex

-% % % TODO:  support pt and en version. add everything to pdf metadata
-
-%\setlanguage{portuguese} 
-\begin{otherlanguage}{portuguese}
-\end{otherlanguage}
-
-%\addto\captionsenglish{\renewcommand{\acknowledgments}{Acknowledgments}}
-%\addto\captionsportuguese{\renewcommand{\acknowledgments}{Agradecimentos}}
-
-\newcommand{\Abstract} {}
-
-\newcommand{\Keywords} {LGP, LP}
-
-%% for the pdf's metadata
-\hypersetup{ pdfsubject={\Abstract}, pdfkeywords={\Keywords} }  %warnigs due to '\\' not supported in pdf subject && not working
-
-%% actually gets printed
-%\begin{abstract}
-	\Abstract
-%	\keywords \Keywords
-%\end{abstract}

File document/sections/acronyms.tex

-%\acrodef{}{}
+
+\begin{comment}
+% acro
 \DeclareAcronym{ist} {
 	short={IST},
 	long={Instituto Superior Técnico},
 	%list (description instead of long form)
 	class=institutional
 }
-\acrodef{UTL}{Universidade Técnica de Lisboa}
+\end{comment}
+
+% acronym
+\begin{acronym}
+\acro{UTL}{Universidade Técnica de Lisboa}
+\end{acronym}
+
+
 
 %formatting
 %\newcommand{\specialword}{\emph{Special Word} }