You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 02:37:15