页面计数在LaTeX中的第一页之后消失。

huangapple go评论53阅读模式
英文:

Page count disappers after the first page in LaTeX

问题

我看到很多人遇到了这个问题:页码只在第一页出现,然后在接下来的页面上消失了。但我看到的解决方案似乎不适用于我的情况,因为我在我的代码中没有\pagestyle{empty}

这是我的代码:

\documentclass[article, 
12pt, 
oneside, 
a4paper, 
english, 
brazil 
]{abntex2} 
\usepackage{array} 
\usepackage[brazil]{babel} 
\usepackage{lmodern} 
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage{indentfirst} 
\usepackage{color} 
\usepackage{booktabs} 
\usepackage{graphicx} 
\usepackage[brazilian,hyperpageref]{backref} 
\usepackage[alf]{abntex2cite}
\hypersetup{ 
colorlinks=true, 
citecolor=black % cor da citação. 
} 
\titulo{Title} 
\autor{Author} 
\begin{document} 
\maketitle 
\pagebreak

Text

\bibliography{bibliografia}
\end{document}
英文:

I have seen that many people have this problem: the page count only appears on first page and then it disappears on the following ones. But the solutions I have seen don't seem to apply to my case because I don't have \pagestyle{empty} in my code.

Here's my code:

\documentclass[article, 
12pt, 
oneside, 
a4paper, 
english, 
brazil 
]{abntex2} 
\usepackage{array} 
\usepackage[brazil]{babel} 
\usepackage{lmodern} 
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage{indentfirst} 
\usepackage{color} 
\usepackage{booktabs} 
\usepackage{graphicx} 
\usepackage[brazilian,hyperpageref]{backref} 
\usepackage[alf]{abntex2cite}
\hypersetup{ 
colorlinks=true, 
citecolor=black % cor da citação. 
} 
\titulo{Title} 
\autor{Author} 
\begin{document} 
\maketitle 
\pagebreak

Text

\bibliography{bibliografia}
\end{document}  

答案1

得分: 1

这是你给出的代码的翻译:

看起来启动主要部分会重新显示页码:

\documentclass[article, 
12pt, 
oneside, 
a4paper, 
english, 
brazil 
]{abntex2} 
\usepackage{array} 
\usepackage[brazil]{babel} 
\usepackage{lmodern} 
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage{indentfirst} 
\usepackage{color} 
\usepackage{booktabs} 
\usepackage{graphicx} 
\usepackage[brazilian,hyperpageref]{backref} 
\usepackage[alf]{abntex2cite}
\hypersetup{ 
colorlinks=true, 
citecolor=black % cor da citação. 
} 
\titulo{Título} 
\autor{Autor} 
\tituloestrangeiro{ffff}
\begin{document} 
\maketitle 
\pagebreak
\mainmatter

Texto

%\bibliography{bibliografia}
\end{document}  
英文:

It seems starting the main part brings back page numbers:

\documentclass[article, 
12pt, 
oneside, 
a4paper, 
english, 
brazil 
]{abntex2} 
\usepackage{array} 
\usepackage[brazil]{babel} 
\usepackage{lmodern} 
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage{indentfirst} 
\usepackage{color} 
\usepackage{booktabs} 
\usepackage{graphicx} 
\usepackage[brazilian,hyperpageref]{backref} 
\usepackage[alf]{abntex2cite}
\hypersetup{ 
colorlinks=true, 
citecolor=black % cor da citação. 
} 
\titulo{Title} 
\autor{Author} 
\tituloestrangeiro{ffff}
\begin{document} 
\maketitle 
\pagebreak
\mainmatter

Text

%\bibliography{bibliografia}
\end{document}  

huangapple
  • 本文由 发表于 2023年4月10日 21:08:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/75977410.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定