Erro para compilar documento utilizando anTeX2

824 views
Skip to first unread message

André Luiz Tietböhl Ramos

unread,
Jun 18, 2014, 10:36:19 PM6/18/14
to late...@googlegroups.com
Olá todos(as),

O preâmbulo de um documento meu, abaixo, resulta no seguinte erro utilizando abntex2 porém funciona utilizando abnt. Agradeço qualquer ajuda, muito obrigado!

Erro:

andreltr@sigmatech:~/Documents/phd/phd$ latexmk -pdf phd
Latexmk: This is Latexmk, John Collins, 11 Nov. 2012, version: 4.35.
**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': Rules & subrules not known to be previously run:
   pdflatex
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -recorder -halt-on-error -interaction=nonstopmode -shell-escape  -recorder  "phd.tex"'
------------
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
\write18 enabled.
entering extended mode
(./phd.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/abntex2/abntex2.cls
Document Class: abntex2 2014/01/26 v1.9.2 abnTeX2
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/share/texlive/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2013/05/30 v3.7b configurable book, report, article docu
ment class
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/latex/ifetex/ifetex.sty
(/usr/share/texlive/texmf-dist/tex/plain/ifetex/ifetex.tex))
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/memoir/mem12.clo)
(/usr/share/texlive/texmf-dist/tex/latex/memoir/mempatch.sty))
(/usr/share/texlive/texmf-dist/tex/latex/textcase/textcase.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))
(/usr/share/texlive/texmf-dist/tex/latex/memoir/memhfixc.sty)

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/bookmark.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def))
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel-portuges/portuges.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty)

******************************************************
Stock height and width: 845.04684pt by 597.50787pt
Top and edge trims: 0pt and 0pt
Page height and width: 845.04684pt by 597.50787pt
Text height and width: 708pt by 455pt
Spine and edge margins: 85.35826pt and 56.9055pt
Upper and lower margins: 85.35826pt and 51.68858pt
Headheight and headsep: 14.5pt and 19.8738pt
Footskip: 30pt
Columnsep and columnseprule: 10pt and 0pt
Marginparsep and marginparwidth: 7pt and 42.9055pt
Sidecapsep and sidecapwidth: 7pt and 42pt
Sidebarhsep and sidebarwidth: 7pt and 42pt
Sidebarvsep and sidebartopsep: 14.5pt and 0pt
Sidebarheight: 590.14995pt
Sidefoothsep and sidefootwidth: 7pt and 42pt
Sidefootvsep and sidefootheight: 14.5pt and 590.14995pt
******************************************************

) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/latin1.def))
(/usr/share/texlive/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: fontenc already loaded - some fonts may be unprocessed.

) (/usr/share/texlive/texmf-dist/tex/latex/lastpage/lastpage.sty)
(/usr/share/texlive/texmf-dist/tex/latex/nomencl/nomencl.sty)
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/indentfirst.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/epsfig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/base/latexsym.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty)
(/usr/share/texlive/texmf-dist/tex/latex/subfloat/subfloat.sty
Package `subfloat', Version 2.14 of 2003/08/21.

Package subfloat Warning: Numbers of floats not counted:
(subfloat)                If you use one of the counters subfloatfiguremax or
(subfloat)                subfloattablemax you will get strange error messages
(subfloat)                containing \c@subfloatfiguremax or
(subfloat)                \c@subfloattablemax:
(subfloat)                Please switch on countmax or remove the code using
(subfloat)                the counter then..

) (/usr/share/texlive/texmf-dist/tex/latex/rotating/rotating.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty)
(/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.sty

! LaTeX Error: Command \c@lofdepth already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...                                             
                                                 
l.124 \newcounter{lofdepth}
                          
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on phd.log.
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs of latex/pdflatex.
andreltr@sigmatech:~/Documents/phd/phd$

Preâmbulo:

% abntex2
\documentclass[12pt,oneside,a4paper]{abntex2}  % apenas frente
% \usepackage[alf]{abntex2cite}
% \documentclass[a4paper,12pt,normaltoc,twoside,openright]{abnt}
\usepackage[T1]{fontenc}      % package for the correct set of characters test
\usepackage[latin1]{inputenc} % package for accents
% \usepackage[none]{hyphenat}
% \usepackage[brazil=nohyphenation,portuges=nohyphenation,english=nohyphenation]{hyphsubst}
% \usepackage[brazil,portuges,english]{babel}
\usepackage{cmap}    % Mapear caracteres especiais no PDF
\usepackage{lastpage}
\usepackage{nomencl}
% \usepackage{tabela-simbolos}
\usepackage{lipsum}
\usepackage{indentfirst} % Identa o primeiro parágrafo de cada seção.
% \usepackage[brazilian,hyperpageref]{backref}
% \usepackage{color}    % Controle das cores
\usepackage{makeidx} % Cria o indice
% The following is needed in order to make the code compatible
% with both latex/dvips and pdflatex.
\ifx\pdftexversion\undefined
\usepackage[dvips]{graphicx}
\else
\usepackage[pdftex]{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{}
\fi
%\usepackage[pdftex]{graphicx}
\usepackage{epsfig}
\usepackage{wrapfig}
\usepackage{amsmath}            % packages for mathematics and symbols
\usepackage{amssymb}
% equation list
% \usepackage{tocloft}
% \newcommand{\listequacoesname}{Lista de Equações}
% \newlistof{equacoes}{equ}{\listequacoesname}
% \newcommand{\myequations}[1]{%
% \addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
% \listofmyequations
% \begin{equation}\label{eq:Eq1}
%    a=b
% \end{equation}
% \myequations{Equation number \ref{eq:Eq1}}
% \newpage
% \begin{equation}\label{eq:Eq2}
%    b=c
% \end{equation}
% \myequations{Equation number \ref{eq:Eq2}}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{verbatim}
% \usepackage{fancyhdr}         % Fancy Header and Footer
\usepackage{float}              % placement of tables
\usepackage{subfloat}
\usepackage{rotating}
\usepackage{longtable}
% \usepackage{url}
% \urlstyle{sf}
% \usepackage{uml}
% \usepackage{pdflscape}
\usepackage{rotating}
\usepackage{appendix}
%\usepackage{microtype}
\usepackage[centerlast]{subfigure}
\usepackage{xcolor}
\usepackage{soul}
\setul{1ex}{0.8ex}
\definecolor{orange}{rgb}{1,0.5,0}
\setulcolor{orange}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{light-gray}{rgb}{0.97,0.97,0.97}
\usepackage{listings}
% \usepackage{titlesec}
% \titlespacing*{\paragraph}{0pt}{*0}{*1}
% my paragraph no number
\newcommand{\myparagraph}[1]{\paragraph*{#1}\mbox{}\\}
%\usepackage{setspace}
%\pagestyle{headings}   % print section number and page number at the
                        % top of the page.
\usepackage[format=hang,font={footnotesize,singlespacing},labelfont=bf,labelsep=endash]{caption}
% force footnote to be at the bottom of the page
\usepackage[bottom]{footmisc}
% try to avoid spliting footnote across different pages
\interfootnotelinepenalty=10000
% multiple references to a single footnote
% Text with first footnote\footnote{\label{note1}This is the labeled footnote}
% and more text with a second footnote\footnote{here}.
% In this a paragraph we have a reference to the first footnote\footnoteref{note1}.
\makeatletter
\newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark}
\makeatother
% subsubsubsection
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

\usepackage{hyperref}
\hypersetup{hyperindex=false, % para bug lista de simbolos e siglas utilizando makeindex
  pdftitle={Organização de conhecimento e informações para integração de
    componentes de Projeto Orientado para a Manufatura (DFM)},
  pdfauthor={André Luiz Tietböhl Ramos},
  pdfproducer={LaTeX with abnTeX}, % producer of the document
  pdfsubject={Tese de doutorado PROMEC/UFRGS},
  pdfkeywords={Projeto Orientado para a Manufatura (DFM)} {Organização
    (arquitetura) da informação} {Ontologias}
  colorlinks=true,       % false: boxed links; true: colored links
  linkcolor=blue,          % color of internal links
  citecolor=blue,               % color of links to bibliography
  filecolor=magenta,      % color of file links
  urlcolor=blue,
  bookmarksdepth=4
  %,backref,hyperfootnotes=false
}

% ABNT bibliography manager
\usepackage[alf]{abntex2cite}
% \usepackage[alf,abnt-etal-cite=2,abnt-year-extra-label=yes,abnt-etal-text=it,abnt-last-names=abnt,abnt-and-type=e,bibjustif]{abntcite}
% abnt-etal-list=3,
% \usepackage[num,abnt-etal-list=0,abnt-etal-text=it,abnt-emphasize=it,recuo=0.0cm,bibjustif,abnt-last-names=abnt]{abntcite}
% % ---
% % PACOTES ADICIONAIS, APENAS PARA TESTE DE FUNCIONALIDADES
% % ---
% \usepackage{lipsum} % para geração de dummy text
% % ---
% % Pacotes de citações
% % ---
% \usepackage[brazilian,hyperpageref]{backref} % Paginas com as citações na bibl
% \usepackage[alf]{abntex2cite} % Citações padrão ABNT
% % ---
% % Configurações do pacote backref
% % Usado sem a opção hyperpageref de backref
% \renewcommand{\backrefpagesname}{Citado na(s) página(s):~}
% % Texto padrão antes do número das páginas
% \renewcommand{\backref}{}
% % Define os textos da citação
% \renewcommand*{\backrefalt}[4]{
% \ifcase #1 %
% Nenhuma citação no texto.%
% \or
% Citado na página #2.%
% \else
% Citado #1 vezes nas páginas #2.%
% \fi}%
% % ---
% % ---
% Configurações de aparência do PDF final
% alterando o aspecto da cor azul
\definecolor{blue}{RGB}{41,5,195}
% informações do PDF
% \hypersetup{
%      %backref=true,
%      %pagebackref=true,
% %bookmarks=true,         % show bookmarks bar?
% pdftitle={\imprimirtitulo},
% pdfauthor={\imprimirautor},
%                 pdfsubject={\imprimirpreambulo},
% pdfkeywords={PALAVRAS}{CHAVES}{EM}{PORTUGUES},
%                 pdfproducer={LaTeX with abnTeX2}, % producer of the document
%                 pdfcreator={\imprimirautor},
%     colorlinks=true,       % false: boxed links; true: colored links
%     linkcolor=blue,          % color of internal links
%     citecolor=blue,        % color of links to bibliography
%     filecolor=magenta,      % color of file links
% urlcolor=blue,
% bookmarksdepth=4
% }

% ---
% compila o indice
% ---
\makeindex
% ---
% ---
% Compila a lista de abreviaturas e siglas
% ---
\makeglossary
\makenomenclature
% ---

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This file is an OWL Manchester Syntax Code Listing Definition file.
%%
%% Created by Akos Szoke (asz...@mit.bme.hu)
%% Date: 28 May 2010
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\lstdefinelanguage{owlms}
    {morekeywords={xsd,owl,xml,dc,rdf,skos,description,PlainLiteral,int,float,
        some,only,value,min,exactly,max,and,or,not,
        Prefix,Ontology,Import,Individual,Facts,Types,Class,
        DataProperty,ObjectProperty,AnnotationProperty,Annotations,
        DifferentIndividuals,SubClassOf,EquivalentTo,DisjointWith,DisjointUnionOf,SubPropertyOf,DisjointClasses,DisjointProperties,
        Symmetric,Asymmetric,Reflexive,Irreflexive,Transitive,Functional,InverseFunctional,
        Characteristics,Range,Domain,Datatype},
     basicstyle=\scriptsize\ttfamily,
     backgroundcolor=\color{light-gray},
     keywordstyle=\color{blue},
     commentstyle=\color{gray},
     stringstyle=\color{dkgreen},
     numbers=left,
     numberstyle=\tiny\color{gray},
     stepnumber=1,
     numbersep=10pt,
     tabsize=2,
     showspaces=false,
     showstringspaces=false,
     breaklines=true,                           % wrap text
     sensitive=true,                            % keywords are case sensitive
     morecomment=[l][commentstyle]{\#},         % comment format
     morestring=[b]",                           % string format
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%===========================  End of file =========================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% \renewcommand*{\lstlistingname}{Listagem}
% \renewcommand*{\lstlistoflistings}{Listagem de códigos computacionais}

\renewcommand*{\lstlistingname}{Lista}
% \renewcommand*{\lstlistoflistings}{Listagens de códigos computacionais}
% \def\lstlistingautorefname{Lista}
% \renewcommand\lstlistingname{Algorithm}
% \renewcommand\lstlistlistingname{Algorithms}

% Alguns comandos de vocábulos e expressões clássicas
\newcommand{\dg}{~$^\circ$ }
\newcommand{\etal}{\textit{et al. }}
\newcommand{\sese}{se e somente se }
\newcommand{\perse}{per se }
\newcommand{\material}{\textsf{Mat}}
\newcommand{\peca}{\textsf{Pe}}
\newcommand{\feature}{\textsf{Fe}}
\newcommand{\dimensao}{\textsf{Dim}}
\newcommand{\tolerancia}{\textsf{Tol}}
\newcommand{\maquina}{\textsf{Maq}}
\newcommand{\ferramenta}{\textsf{Ferr}}
\newcommand{\operacao}{\textsf{Oper}}
\newcommand{\usinagem}{\textsf{Usin}}
\newcommand{\disponibilidade}{\textsf{Disp}}
\newcommand{\custo}{\textsf{C}}
\newcommand{\acessibilidade}{\textsf{Acess}}
\newcommand{\agente}{\textsf{Ag}}
\newcommand{\dfm}{\textsf{DFM}}

\newenvironment{dedicatoria}{
  \chapter*{Dedicatória}
  \thispagestyle{plain}}{\newpage}

\newenvironment{agradecimentos}{
  \chapter*{Agradecimentos}
  \thispagestyle{plain}}{\newpage}

\newenvironment{acknowledgment}{
  \chapter*{Acknowledgements}
  \thispagestyle{plain}}{\newpage}

\newenvironment{vita}{
  \chapter*{Vita}
  \thispagestyle{plain}}{\newpage}

\hyphenation{des-cre-ver re-qui-si-tos e-le-men-to e-le-men-tos e-xem-plo ló-gi-ca
  re-fle-xi-va ca-rac-te-rís-ti-cas re-gis-trar es-pe-ra-da a-pli-ca-çõ-es
  o-pe-ra-cio-nal qua-li-da-de ne-ces-sá-rio de-sig-na-ção re-pre-sen-ta
  cri-vel-men-te ma-nu-fa-tu-ra me-lhor to-le-rân-ci-as co-nhe-ci-dos
  li-te-ra-tu-ra li-ga-dos qua-li-ta-ti-vos fo-ca-li-za-dos mo-de-los
  co-nhe-ci-men-to pa-ra-dig-ma re-usa-bi-li-da-de pro-ba-bi-lís-ti-cos
  o-pe-ra-çõ-es pa-râ-me-tros ló-gi-ca operações exemplo multivariável
  adequados/disponíveis limitados/determinísticos CAD/CAM DFM}

\titulo{Organização de conhecimento e informações para integração de
componentes de Projeto Orientado para a Manufatura (DFM)}
\autor{André Luiz Tietböhl Ramos}
\orientador{Flávio José Lorini}
% \coorientador{Michael P.  Deisenroth}
\instituicao{Universidade Federal do Rio Grande do Sul\par Programa de
  Pós--Graduação em Engenharia Mecânica}
\local{Porto Alegre -- RS}
\data{}
\def\UFRGS{\textrm{Universidade Federal do Rio Grande do Sul}}
\def\ufrgs{\textrm{UFRGS}}
\def\keywords#1{\gdef\@keywords{\vfill \textbf{Palavras--chave:} #1}}
\def\permission{
\noindent{\centering O autor permite que a \ufrgs\ reproduza e \\*
    distribua cópias deste \@copyrightword na sua totalidade ou em parte.}\par
}

%\date{\today}
\onehalfspacing

% Detalhes relacionados com o padrão abntex2

% alterando o aspecto da cor azul
\definecolor{blue}{RGB}{41,5,195}

--
André Luiz Tietböhl Ramos <andrel...@gmail.com>

Youssef Cherem

unread,
Jun 18, 2014, 10:53:38 PM6/18/14
to late...@googlegroups.com
tire os pacotes subfloat, subfigure (com somente sufloat funciona); o comando \dedicatoria já está definido (já existe no abntex2).

! Undefined control sequence.

l.289 \onehalfspacing







--
Você recebeu essa mensagem porque está inscrito no grupo quot;Latex-br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para latex-br+u...@googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages