diff --git a/demo-cap-1.tex b/demo-cap-1.tex index 3ea85da..34cf95a 100644 --- a/demo-cap-1.tex +++ b/demo-cap-1.tex @@ -1,5 +1,5 @@ %!TEX root = main.tex -\chapter{Introdução} +\chapter[\tiny{Intro}]{Introdução} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae est vitae risus varius malesuada et eget velit. Morbi tincidunt venenatis tellus, in volutpat ante varius et. Fusce congue maximus velit ac dignissim. Integer hendrerit pharetra libero, at vehicula odio vestibulum eget. Etiam eget fringilla leo, sit amet posuere nisl. Aenean at tincidunt felis. Cras rhoncus mauris libero, a vestibulum risus faucibus quis. Aenean malesuada vitae nibh ut dapibus. Pellentesque vel blandit odio. diff --git a/main.lof b/main.lof index b04f34f..c406500 100644 --- a/main.lof +++ b/main.lof @@ -1,4 +1,5 @@ -\select@language {portuguese} +\select@language {portuges} +\select@language {english} \addvspace {10\p@ } \contentsline {figure}{\numberline {1.1}{\ignorespaces Exemplo de uma figura.}}{2} \addvspace {10\p@ } diff --git a/main.lot b/main.lot index 4e43de4..5a18be7 100644 --- a/main.lot +++ b/main.lot @@ -1,4 +1,5 @@ -\select@language {portuguese} +\select@language {portuges} +\select@language {english} \addvspace {10\p@ } \contentsline {table}{\numberline {1.1}{\ignorespaces Exemplo de uma tabela.}}{3} \addvspace {10\p@ } diff --git a/main.pdf b/main.pdf index ac60b8b..76827e3 100644 Binary files a/main.pdf and b/main.pdf differ diff --git a/main.tex b/main.tex index c0ccb09..ef02694 100644 --- a/main.tex +++ b/main.tex @@ -154,6 +154,7 @@ % do texto do documento. % \tuePREAMBULOLATEX{ + \setmainlanguage{english} } % % ---------------------------------------------------------------- diff --git a/teseue.cls b/teseue.cls index ee7819f..ec5c954 100644 --- a/teseue.cls +++ b/teseue.cls @@ -116,6 +116,13 @@ % % ================================================================ % +%% Linguagem +%} +\newcommand{\@LINGUAGEM}{PT} +\DeclareRobustCommand{\tueLINGUAGEM}[1]{% + \renewcommand{\@LINGUAGEM}{#1} +} +% %% Titulo % \newcommand{\@TITULO}{T\'{i}tulo da tese} @@ -291,7 +298,11 @@ %% DISSERTACAO % \DeclareRobustCommand{\tueDOCUMENTO}{ - \usepackage[portuguese]{babel} + % + %\usepackage[portuguese]{babel} + % + \usepackage{polyglossia} + \setmainlanguage{portuges} \@PREAMBULOLATEX \begin{document} \frontmatter @@ -364,8 +375,16 @@ % %% Abstract % +\newcommand{\@LSTACRONEN}{Acronyms} +\newcommand{\@LSTACRONPT}{Lista de Acr\'{o}nimos} +\newcommand{\@LSTACRON}{\@LSTACRONPT} +\ifdefstring{\@LINGUAGEM}{PT}{ + \renewcommand{\@LSTACRON}{\@LSTACRONPT} +}{ % EN + \renewcommand{\@LSTACRON}{\@LSTACRONEN} +} \newenvironment{tueACRONIMOS}{ - \chapter*{Lista de Acr\'{o}nimos}\addcontentsline{toc}{chapter}{Lista de Acr\'{o}nimos} + \chapter*{\@LSTACRON}\addcontentsline{toc}{chapter}{\@LSTACRON} }{ } % -- libgit2 0.21.2