Problema com o \tituloformat e na criação de Capa

257 views
Skip to first unread message

Andriel Carlos Souza Biagioni

unread,
Sep 29, 2013, 10:38:59 PM9/29/13
to late...@googlegroups.com
Olá pessoal da lista,
Boa noite para todos,
 
Recorro à vocês da lista pois estou com um problema na criação de Capa utilizando o abntex2 (versão 1.8).

Realizei o download da versão atual do MacTex (2.2Gb) e com ela veio a versão 1.7, realizei o upload para a versão 1.8.

Estou realizando o meu TCC (trabalho de conclusão de curso) e necessito seguir algumas normas, dentre elas, segue a que estou com problema:

\renewcommand{\tituloformat}{\large\bfseries}  
Essa versão de tituloformat é presente na versão abntex (padrão para a norma da minha universidade), porém, na atual versão não se encontra disponível o tituloformat, o que ocorre o seguinte erro:

! LaTeX Error: \tituloformat undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.42 \renewcommand{\tituloformat}
{\large\bfseries}
?
Se realizo o comentário da linha do título format, ocorre outro erro do arquivo, o Capa.tex, onde está as definições de autor, orientador, etc, como o código abaixo:

\autor{test}
\orientador{test}
\titulo{test}
\tipotrabalho{test}
\instituicao{test} 
\local{test}

\data{\today}

\capa
\folhaderosto  

O erro que ocorre é o seguinte:

! LaTeX Error: \begin{mem@titlingpage} on input line 18 ended by \end{document}
.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.82 \end{document}
?
Se eu realizo o comentário na página de Capa e na linha do \tituloformat, as coisas funcionam.

O arquivo que contém todas as informações de configuração bem como o log se encontram a seguir:

Principal.tex

%% Graph partition algorithm in Neo4J
%%
\documentclass{abntex2}
% Incluir Pacotes ------------------------------------------------
\usepackage [brazil] {babel}
\usepackage [utf8] {inputenc}
\usepackage{ae}                         %% Font Encoding T1 (PDF)
\usepackage{lscape}                     %% Utilizar pagina em landscape
\usepackage{url}                        %% Trata URLs, e-mails e paths
\usepackage{abntex2cite}
\usepackage[pdftex]{graphicx}
\usepackage[pdftex]{geometry}

%Trying to fix the subfigure issue
\makeatletter 
\let\c@lofdepth\relax   
\let\c@lotdepth\relax 
\makeatother 
%End of configuration

\usepackage{subfigure} 

%Trying to fix the floatrow issue
\let\newfloat\undefined
%End of configuration

\usepackage{floatrow}  

% INSTALL (for algorithm package)
% sudo apt-get install texlive-science

\usepackage{algorithm}% http://ctan.org/pkg/algorithms
\usepackage{algorithmicx}% http://ctan.org/pkg/algorithmicx

\usepackage{color}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{courier}
\lstset{language=Java,captionpos=t,tabsize=2,frame=lines,keywordstyle=\color{blue},commentstyle=\color{green},stringstyle=\color{red},numbers=left,numberstyle=\tiny\color{gray},numbersep=15pt,breaklines=true,showstringspaces=false,basicstyle=\footnotesize\ttfamily,emph={label}}

\usepackage{appendix}

\usepackage{amssymb}    

\renewcommand{\ABNTEXchapterfont}{\fontfamily{cmr}\fontseries{b}\selectfont}
\renewcommand{\ABNTEXsectionfont}{\fontfamily{cmr}\fontseries{b}}
\renewcommand{\titleformat}{\large\bfseries}  %%PROBLEM%%
\renewcommand{\lstlistingname}{Listagem}

\begin{document}


% ----------------------------------------------------------------
% Paginas iniciais
% ----------------------------------------------------------------
\include{Capa}                    %% Book   %%%%PROBLEM%%%%
\tableofcontents                  %% Sumary
\listoffigures                    %% List of Figures
\listoftables                     %% List of tables
%\include{ListaAbrev}              %% Lista de abreviaturas
%\include{Agrade}                  %% Agradecimentos
\include{Resumo}                  %% Resume
\include{Abstract}                %% Abstract


%-----------------------------------------------------------------
% Corpo da Monografia
% ----------------------------------------------------------------

\include{Introducao}            % Introduction
\include{Cap01}                 % Graph Theory
\include{Cap02}                 % RDBM
\include{Cap03}                 % Database Neo4J
\include{Cap04}                 % Partition algorithms
\include{Cap05}                 % Applications and results
\include{Conclusao}                             % Conclusion

% ----------------------------------------------------------------
\bibliographystyle{abnt-alf}
\bibliography{biblio}             %% REFERENCIAS (arquivo .bibtex)
% ----------------------------------------------------------------


\include{Apendices}             % Codes


\end{document}
% ----------------------------------------------------------------

Log das versões das bibliotecas.

 *File List***************************************
 abntex2.cls    2013/09/01 v1.8 abnTeX2
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
  memoir.cls    2013/05/22 v3.7 configurable book, report, article document cla
ss
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifetex.sty    2011/12/15 v1.2 ifetex
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
   mem10.clo    2008/01/30 v0.3 memoir class 10pt size option
mempatch.sty    2009/07/24 v6.0f Patches for memoir class v1.6180339
textcase.sty    2004/10/07 v0.07 Text only upper/lower case changing (DPC)
hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX
hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
  hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)
 intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)
  bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)
uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)
letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
 hopatch.sty    2012/05/28 v1.2 Wrapper for package hooks (HO)
xcolor-patch.sty    2011/01/30 xcolor patch
atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)
atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)
refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)
 hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
 auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
  pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
memhfixc.sty    2013/05/16 v1.16 nameref/hyperref package fixes for memoir clas
s
 hpdftex.def    2012/11/06 v6.83m Hyperref driver for pdfTeX
rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
bookmark.sty    2011/12/02 v1.24 PDF bookmarks (HO)
bkm-pdftex.def    2011/12/02 v1.24 bookmark driver for pdfTeX (HO)
   babel.sty    2013/05/16 v3.9f The Babel package
portuges.ldf    2008/03/18 v1.2q Portuguese support from the babel system
enumitem.sty    2011/09/28 v3.5.2 Customized lists
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
inputenc.sty    2008/03/30 v1.1d Input encoding file
    utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc
   t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
      ae.sty    2001/02/12 1.3 Almost European Computer Modern
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
   t1aer.fd    1997/11/16 Font definitions for T1/aer.
  lscape.sty    2000/10/22 v3.01 Landscape Pages (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
abntex2cite.sty    
abntex2abrev.sty    
 relsize.sty    2013/03/29 ver 4.1
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
geometry.sty    2010/09/12 v5.6 Page Geometry
subfigure.sty    2002/03/15 v2.1.5 subfigure package
subfigure.cfg
floatrow.sty    2008/08/02 v0.3b floatrow: float package extension
caption3.sty    2013/05/02 v1.6-88 caption3 kernel (AR)
algorithm.sty    2009/08/24 v0.1 Document Style `algorithm' - floating environm
ent
algorithmicx.sty    2005/04/27 v1.2 Algorithmicx
   color.sty    1999/02/16
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
listings.sty    2007/02/22 1.4 (Carsten Heinz)
 lstmisc.sty    2007/02/22 1.4 (Carsten Heinz)
listings.cfg    2007/02/22 1.4 listings configuration
 courier.sty    2005/04/12 PSNFSS-v9.2a (WaS) 
lstlang1.sty    2004/09/05 1.3 listings language file
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
 nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section
gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)
supp-pdf.mkii
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
  Resumo.tex
Abstract.tex
Introducao.tex
   Cap01.tex
   Cap02.tex
   Cap03.tex
   Cap04.tex
   Cap05.tex
Conclusao.tex
Apendices.tex
   t1pcr.fd    2001/06/04 font definitions for T1/pcr.
 *****************************************************


Gostaria de pedir ajuda ao grupo para uma possível solução deste problema.

Muito obrigado,

Cordialmente,

Andriel Carlos de Souza Biagioni

Lauro César

unread,
Sep 30, 2013, 5:24:26 AM9/30/13
to late...@googlegroups.com
Prezado Andriel

Acredito que você esteja misturando comando das classes abnt.cls (abnTeX1) e abntex2.cls (abnTeX2). 

Minha recomendação é você usar o modelo de trabalho acadêmico que está disponível no site do abnTEX2, e abandonar o outro modelo que está usando (ou o contrário). Olhe o código do modelo e observe que não há comandos \capa (que na nova versão é \imprimircapa) nem \tituloformat. 

Depois disso, se o código do modelo já não tiver o que você precisa customizar, olhe os manuais, especialmente o manual abntex2.pdf. Você encontrará lá a maneira de customizar a capa. 

De todo modo, fique à vontade em postar aqui o que exatamente você precisa de diferente, que tentaremos lhe ajudar. 

Abraços!

Lauro Cesar 
--
Você está recebendo esta mensagem porque se inscreveu no grupo "Latex-br" dos Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para latex-br+u...@googlegroups.com.
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages