【LaTeX】How To Add Page Numbers

Thereis a situation that the SIGGRAPH template disables numbering on thefirst page.
But when I was writing my report, I'd liketo add page number 1 on the first page.

Here is the code to handleit.

HOW TO ADD PAGE NUMBER IN PAGE 1
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}

\makeatletter
\let\ps@oldempty\ps@empty % save default definition of\ps@empty
\renewcommand\ps@empty\ps@fancy
\makeatother


Also, there are other problems in adding numbers, and we can use the code.
HOW TO ADD PAGE NUMBERS
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0pt} % When we set 0pt, it isused to delete the line in header.
\renewcommand{\footrulewidth}{0pt} % When we set 0pt, it is used to delete the linein footer.


There are two main questions I found when I wrote the report, anytime I learn something new, I would update my article.

Thanks for reading ^_^
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值