英文:
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}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论