Document ClassesAbntex2 - odd page numbering

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
bschiavo
Posts: 2
Joined: Mon Nov 30, 2015 7:53 pm

Abntex2 - odd page numbering

Post by bschiavo »

I'm having some hard time with the abntex2 package, which formats the text according to academic requirements in Brazil.
According to Brazilian norms, all pages starting from the second should be numbered in their corners. However, in my document, some weird stuff happens: the second page is numbered in its center and all pages starting from the third bear no numbering at all.

I'm using Sharelatex.


My code is as follows:

Code: Select all


\documentclass[12pt,openright,twoside,a4paper,english,french,
spanish,brazil]{abntex2}

\usepackage[abntex2]{abntex2cite}


\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}

\setlength{\parindent}{1.3pt}
\setlength{\parskip}{0.2cm}
\usepackage{indentfirst}

\usepackage[T1]{fontenc}
\usepackage{titlesec, blindtext, color}
\usepackage[utf8x]{inputenc}
\usepackage[brazil]{babel}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{dsfont}
\usepackage{hyperref}
\usepackage{mathabx}
\usepackage[left = 3.0cm, right = 2.0cm,up= 3.0cm ,down=2.0cm]{geometry}


\theoremstyle{plain}
\newtheorem{teo}{Teorema}
\newtheorem{lem}{Lema}
\newtheorem{cor}{Corolário}
\newtheorem{defi}{Definição}
\newtheorem{exa}{Exemplo}
\newtheorem{exe}{Exercício}
\newtheorem{nota}{Notação}

Please tell me how can I fix this and if there are any other issues with my document.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Abntex2 - odd page numbering

Post by rais »

Hi,
besides that geometry does neither know an option `up' nor `down'---AFAIR they're called `top' and `bottom', the abntex2 class already defines a macro called \nota, so your \newtheorem{nota}{Notação} is bound to fail.
Other than that, I cannot really tell you what might be wrong with your code, that part is missing.
If I had to guess, I'd say you have neither \mainmatter nor \textual in your document, so everything will be considered as \frontmatter or \pretextual, where pretty much everything is put out with pagestyle `empty'.

KR
Rainer
bschiavo
Posts: 2
Joined: Mon Nov 30, 2015 7:53 pm

Re: Abntex2 - odd page numbering

Post by bschiavo »

Which data is missing for you to tell me what is wrong?
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Abntex2 - odd page numbering

Post by rais »

bschiavo wrote:Which data is missing for you to tell me what is wrong?
the stuff that's between \begin{document} and \end{doument}.
Of course, I'm not asking for your actual text---there might be some sensitive data involved---rather something complete, that demonstartes your problem. You can probably replace your text passages by \blindtext or possibly by \Blinddocument (you're already loading the necessary blindtext package), but please ensure (by testing the code yourself) that the described problem persists.
In other words, I'd need the complete code from you that results in at least three pages of output, with the first page probably unnumbered, the second page numbered in its center, and the third/all following pages unnumbered.

KR
Rainer
Post Reply