1.怎么显示页码?

To display page numbers in a LaTeX document, you can use the \pagestyle and \pagenumbering commands along with the \thepage command to insert the page number where you want it to appear. Here are the basic steps:

  1. Add
    \pagestyle{plain} or \pagestyle{headings} to your document’s preamble:
\pagestyle{plain}
\pagestyle{headings}

For example:

\documentclass{article}
\pagestyle{plain} % or \pagestyle{headings}
  1. Use
    \pagenumbering{arabic} to specify the page numbering style. You can use other styles like Roman numerals or alphabetic characters as well. Place this command just before the page where you want to start numbering.
    For example, to start numbering with Arabic numerals (1, 2, 3…), use \pagenumbering{arabic}.

  2. To insert the page number in your document, use the
    \thepage command where you want it to appear. This will automatically insert the current page number.
    Here’s an example of how to set up page numbering in a LaTeX document:
    latexCopy code\documentclass{article}

\pagestyle{plain} % or \pagestyle{headings}

\begin{document}

This is page \thepage.

\newpage % Start a new page

This is page \thepage.

\end{document}

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值