Todo pretextual romano

144 views
Skip to first unread message

Andre Luiz Tietbohl Ramos

unread,
Feb 22, 2015, 6:22:22 PM2/22/15
to late...@googlegroups.com
Prezado Youssef,

Segundo sua sugestão, abaixo, não funcionou.

On Qua, 2014-11-26 at 10:37 +0000, late...@googlegroups.com wrote:
\renewcommand{\thepage}{\roman{page}}

Quiçá seja pelos \tableofcontents*, \listoffigures* e \listoftables*?  Senão vejamos,

\documentclass[
% -- opções da classe memoir --
12pt, % tamanho da fonte
openright, % capítulos começam em pág ímpar (insere página vazia caso preciso)
twoside, % para impressão em verso e anverso. Oposto a oneside
a4paper, % tamanho do papel.
% -- opções da classe abntex2 --
%chapter=TITLE, % títulos de capítulos convertidos em letras maiúsculas
%section=TITLE, % títulos de seções convertidos em letras maiúsculas
%subsection=TITLE, % títulos de subseções convertidos em letras maiúsculas
%subsubsection=TITLE,   % títulos de subsubseções convertidos em letras maiúsculas
        pnumromarab,            % elementos pré-textuais em romanos
% -- opções do pacote babel --
english, % idioma adicional para hifenização
french, % idioma adicional para hifenização
spanish, % idioma adicional para hifenização
brazil, % o último idioma é o principal do documento
]{abntex2}

% ---
% PACOTES
% ---

% ---
% Pacotes fundamentais
% ---
% \usepackage{lmodern} % Usa a fonte Latin Modern
\usepackage[T1]{fontenc} % Selecao de codigos de fonte.
\usepackage[latin1]{inputenc}   % Codificacao do documento (conversão automática dos acentos)
                                % ATENÇÃO: usuários(as) do s.o. Windows
                                % precisam trocar [utf8] para [latin1]
\usepackage{indentfirst}        % Indenta o primeiro parágrafo de cada seção.
\usepackage{color} % Controle das cores
% The following is needed in order to make the code compatible
% with both latex/dvips and pdflatex.
\ifx\pdftexversion\undefined
\usepackage[dvips]{graphicx}
\newsubfloat{figure} % allow subfloats in figure environment
\else
\usepackage[pdftex]{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{}
\fi
% \usepackage{graphicx} % Inclusão de gráficos
\usepackage{microtype} % para melhorias de justificação
% ---

% ---
% Pacotes necessarios
% ---
\usepackage{epsfig}
\usepackage{wrapfig}
\usepackage{amsmath}            % packages for mathematics and symbols
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{textcomp}
\usepackage{verbatim}
\usepackage{subfig}
\usepackage{rotating}
\usepackage{float}              % placement of tables
\usepackage{subfloat}
% \usepackage{endfloat}
% \DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
% \DeclareDelayedFloatFlavor{sidewaystable}{table}
\usepackage{longtable}
\usepackage{appendix}
\usepackage{moresize}
\usepackage{pxfonts}
% \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[format=hang,font={footnotesize,singlespacing},labelfont=bf,labelsep=endash]{caption}
% try to avoid spliting footnote across different pages
\interfootnotelinepenalty=20000
% force footnote to be at the bottom of the page
\usepackage[bottom]{footmisc}
% \raggedbottom
\addtolength{\topskip}{0pt plus 10pt}
% 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}

% ---
% Pacotes de citações
% ---
% % Pacote backref removido para tirar texto adicional no fim de cada referência na
% % seção Referências
% % \usepackage[brazilian,hyperpageref]{backref} % Paginas com as citações na bibl
% Citações padrão ABNT
% \usepackage[alf,abnt-etal-cite=2,abnt-etal-list=0]{abntex2cite}
\usepackage[alf,abnt-etal-cite=3,abnt-emphasize=bf,abnt-etal-list=0,abnt-year-extra-label=yes,abnt-etal-text=it,abnt-last-names=abnt,abnt-and-type=e,bibjustif]{abntex2cite}
% \usepackage[alf,abnt-full-initials=no,abnt-emphasize=bf,abnt-and-type=e,abnt-url-package=url,abnt-repeated-author-omit=yes,abnt-etal-cite=3,abnt-etal-list=3]{abntex2cite}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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}
% Language Definitions for SPARQL
\lstdefinelanguage{SPARQL}{
  morecomment=[l][\color{olivegreen}]{\#},
  morestring=[b][\color{blue}]\", morekeywords={SELECT,CONSTRUCT,DESCRIBE,ASK,WHERE,FROM,NAMED,PREFIX,BASE,OPTIONAL,FILTER,GRAPH,LIMIT,OFFSET,SERVICE,UNION,EXISTS,NOT,BINDINGS,MINUS,a},
  sensitive=true
}

% 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}}

% \chapter*{Dedicatória}
% \chapter*{Agradecimentos}
% \chapter*{Acknowledgements}

\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}

% ---
% CONFIGURAÇÕES DE PACOTES
% ---

% ---
% Informações de dados para CAPA e FOLHA DE ROSTO \abnTeX
% ---
\titulo{ORG... }
\autor{ANDRÉ LUIZ TIETBÖHL RAMOS}
\orientador{...}
\local{Porto Alegre, Brasil}
\data{a definir}
\instituicao{%
  MINISTÉRIO DA EDUCAÇÃO
  \par
  UNIVERSIDADE FEDERAL DO RIO GRANDE DO SUL
  \par
  PROGRAMA DE PÓS-GRADUAÇÃO EM ENGENHARIA MECÂNICA}
\tipotrabalho{Doutorado}
\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
}

% ---
% Configurações de aparência do PDF final

% alterando o aspecto das cores
\definecolor{blue}{RGB}{41,5,195}
\definecolor{darkred}{rgb}{0.5,0,0}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{darkblue}{rgb}{0,0,0.5}

% informações do PDF
\makeatletter
\hypersetup{
  % pagebackref=true,
  pdftitle={\@title},
  pdfauthor={\@author},
  pdfsubject={\imprimirpreambulo},
  pdfcreator={LaTeX with abnTeX2 customizado para UFRGS},
  pdfkeywords={abnt}{latex}{abntex}{abntex2}{tese de doutorado},
  pdfnewwindow=true,
  colorlinks=true,       % false: boxed links; true: colored links
  linkcolor=darkred,                  % color of internal links
  citecolor=darkblue,        % color of links to bibliography
  filecolor=magenta,      % color of file links
  urlcolor=darkgreen,
  bookmarks=true,
  bookmarksdepth=4
}
\makeatother
% ---

% ---
% Espaçamentos entre linhas e parágrafos
% ---

% O tamanho do parágrafo é dado por:
\setlength{\parindent}{1.3cm}

% Controle do espaçamento entre um parágrafo e outro:
\setlength{\parskip}{0.2cm}  % tente também \onelineskip

% ---
% compila o indice
% ---
\makeindex
% ---

% ----
% Início do documento
% ----
\begin{document}

% Retira espaço extra obsoleto entre as frases.
\frenchspacing
% não ultrapassar limite margens
\sloppy
\lstloadlanguages{C,C++,HTML,XML,SQL,SPARQL,PHP,Python,Matlab,Lisp}
\lstset{language=Lisp,basicstyle=\footnotesize,stringstyle=\ttfamily,frame=single}
\lstset{language=SQL,morekeywords={PREFIX,java,rdf,rdfs,url}}

% ----------------------------------------------------------
% ELEMENTOS PRÉ-TEXTUAIS
% ----------------------------------------------------------
\pretextual
% ---
% Capa
% ---
% \imprimircapa
\thispagestyle{empty}
\include{cover}
% ---

% ---
% Folha de rosto
% ---
\include{1stpage}
% \imprimirfolhaderosto
% ---

\renewcommand{\thepage}{\roman{page}}
% ---
% Resumo
% ---
\include{abstract}
% ---

% ---
% inserir o sumario
% ---
\pdfbookmark[0]{\contentsname}{toc}
\tableofcontents*
\cleardoublepage
% ---

% ---
% inserir lista de ilustrações
% ---
\pdfbookmark[0]{\listfigurename}{lof}
\listoffigures*
\cleardoublepage
% ---

% ---
% inserir lista de tabelas
% ---
\pdfbookmark[0]{\listtablename}{lot}
\listoftables*
\cleardoublepage
% ---

% ---
% inserir lista de abreviaturas e siglas
% ---
\include{acronym}
% ---

% ----------------------------------------------------------
% ELEMENTOS TEXTUAIS
% ----------------------------------------------------------
\renewcommand{\thepage}{\roman{arabic}}
\textual

% ----------------------------------------------------------
% Capitulos textuais
% ----------------------------------------------------------
% ----------------------------------------------------------
% Capitulo com exemplos de comandos inseridos de arquivo externo
% ----------------------------------------------------------
\include{intro}
\include{rev_lit_design}
\include{rev_lit_information}
\include{research}
\include{implementation}
\include{conclusion}

% ---
% Finaliza a parte no bookmark do PDF
% para que se inicie o bookmark na raiz
% e adiciona espaço de parte no Sumário
% ---
\phantompart

% ----------------------------------------------------------
% ELEMENTOS PÓS-TEXTUAIS
% ----------------------------------------------------------
\postextual

% ----------------------------------------------------------
% Referências bibliográficas
% ----------------------------------------------------------
\bibliography{references}

% ----------------------------------------------------------
% Glossário
% ----------------------------------------------------------
%
% Consulte o manual da classe abntex2 para orientações sobre o glossário.
%
%\glossary

% ----------------------------------------------------------
% Apêndices
% ----------------------------------------------------------

% ---
% Inicia os apêndices
% ---
\begin{apendicesenv}

% Imprime uma página indicando o início dos apêndices
\partapendices
\include{owlonto}
\include{description}

\end{apendicesenv}
% ---

% ----------------------------------------------------------
% Anexos
% ----------------------------------------------------------

% ---
% Inicia os anexos
% ---
\begin{anexosenv}

% Imprime uma página indicando o início dos anexos
\partanexos
\include{design_taxo}
\end{anexosenv}

%---------------------------------------------------------------------
% INDICE REMISSIVO
%---------------------------------------------------------------------

\phantompart

\printindex

\end{document}

Obrigado!


--
Andre Luiz Tietbohl Ramos <andrel...@gmail.com>

Andre Luiz Tietbohl Ramos

unread,
Feb 22, 2015, 6:39:12 PM2/22/15
to late...@googlegroups.com
Pequena correção por erro de digitação: a linha \renewcommand{\thepage}{\roman{arabic}} é, na verdade, \renewcommand{\thepage}{\arabic{page}}. O resultado final, entretanto, não se alterou.
--
André Luiz Tietböhl Ramos
http://www.feng.pucrs.br/~andreltr

“Não se mede o valor de um homem pelas suas roupas ou pelos bens que possui.  O verdadeiro valor de um homem é seu caráter, suas idéias e a nobreza de seus ideais.”
Charles Chaplin

"The best way to cheer yourself up is to try to cheer someone else up."
Mark Twain

I want a feeling worth paying for before I say goodbye...
Matt Johnson


Youssef Cherem

unread,
Feb 22, 2015, 6:45:14 PM2/22/15
to late...@googlegroups.com
Coloque como \textual a parte em romanos. Se necessário, recomece a numeração a partir da parte textual.

\documentclass{abntex2}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}

\title{teste-abnt}
\author{Youssef Cherem}
\date{February 2015}

\begin{document}




\maketitle


\chapter*{Introduction}

\textual


\renewcommand{\thepage}{\roman{page}}

Uma página qualquer para testar os números romanos e tal.


\end{document}

--
You received this message because you are subscribed to the Google Groups "Latex-br" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latex-br+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/latex-br/1424647329.3897.9.camel%40sigmatech.
For more options, visit https://groups.google.com/d/optout.

Andre Luiz Tietbohl Ramos

unread,
Feb 23, 2015, 8:57:23 AM2/23/15
to late...@googlegroups.com
Prezado Youssef,

Obrigado pela pronta resposta. Entretanto,

1. A paginação precisa ser em numerais romanos maiúsculos.
2. Ela precisa ter esta numeração apenas na parte pretextual, excluindo a capa.

Será que \pagenumbering{Roman} na parte pretextual com posterior \pagenumbering{arabic} funcionaria?

Obrigado,

André Luiz


On Seg, 2015-02-23 at 10:38 +0000, late...@googlegroups.com wrote:


Youssef Cherem <ych...@gmail.com>: Feb 22 08:45PM -0300

Coloque como \textual a parte em romanos. Se necessário, recomece a
numeração a partir da parte textual.
 
\documentclass{abntex2}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
 
\title{teste-abnt}
\author{Youssef Cherem}
\date{February 2015}
 
\begin{document}
 
 
 
 
\maketitle
 
 
\chapter*{Introduction}
 
\textual
 
 
\renewcommand{\thepage}{\roman{page}}
 
Uma página qualquer para testar os números romanos e tal.
 
 
\end{document}
 
2015-02-22 20:22 GMT-03:00 Andre Luiz Tietbohl Ramos <andrel...@gmail.com

Back to top
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to latex-br+u...@googlegroups.com.

Youssef Cherem

unread,
Feb 23, 2015, 11:45:01 AM2/23/15
to late...@googlegroups.com
André,

>>​Será que \pagenumbering{Roman} na parte pretextual com posterior \pagenumbering{arabic} funcionaria?
Não, é preciso mudar o estilo da página porque o abntex2 define páginas pré-textuais como não numeradas (segundo a ABNT).
Por alguma razão, é necessário por \clearpage depois da última página em romanos.

Veja o exemplo abaixo.



​\documentclass{abntex2}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\title{teste-abnt}
\author{José das Cabras}
\date{February 2015}
\begin{document}

\imprimircapa
\imprimirfolhaderosto

\textual
\tableofcontents*
\pagestyle{simple}
\renewcommand*{\thepage}{\Roman{page}}
\chapter*{Introduction}

Uma página qualquer para testar os números romanos e tal.
\newpage
Uma outra página para romanos.
\clearpage
\chapter*{De novo}

Uma página qualquer para testar os números romanos e tal.
\newpage
Uma outra página para romanos.
\clearpage
\renewcommand{\thepage}{\arabic{page}}
\chapter{Um capítulo normal}
Para ver a numeração.
\end{document}

--
You received this message because you are subscribed to the Google Groups "Latex-br" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latex-br+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages