LaTeX中页码仅首页显示后续消失问题求助(无\pagestyle{empty})
解决abntex2文档后续页面页码消失的问题
你遇到的情况是因为abntex2文档类在执行\maketitle后,会自动将后续页面的页码样式设置为empty(即使你没手动写这个命令)。要解决这个问题,只需要在\maketitle之后手动指定需要的页码样式即可。
修正后的代码
\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 \pagestyle{plain} % 添加这一行,启用基础页码样式 \pagebreak Text \bibliography{bibliografia} \end{document}
补充说明
\pagestyle{plain}会让每页底部显示阿拉伯数字页码(第一页标题页之后的页面生效),这是最常用的页码样式。- 如果你需要更复杂的页码格式,比如页眉也显示内容,可以用
\pagestyle{headings}或者自定义页码样式。
内容的提问来源于stack exchange,提问作者Pedro Cardoso
相关产品推荐
相关产品推荐

