打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
公式编号,序号___LaTeX Counters

Hypertext Help with LaTeX

Counters

Everything LaTeX numbers for you has a counter associatedwith it. The name of the counter is the same as the name ofthe environment or command that produces the number, exceptwith no \. Below is a list of some of the countersused in LaTeX's standard document styles to controlnumbering.

 part            paragraph       figure          enumichapter         subparagraph    table           enumiisection         page            footnote        enumiiisubsection      equation        mpfootnote      enumivsubsubsection

Manipulating the way counters are printed

Counters are printed in LaTeX by using a command generated as"\the" suffixed with the name of the counter. Thus,equation numbers are printed by the \theequationcommand, and section numbers by the \thesectioncommand. If you want to change the way such numbers areprinted, for example, change from arabic to Roman numerals, youneed to redefine the appropriate command, using the\renewcommand command.

As an example, to number equations in an appendix as A-1,A-2, ... , use

  \renewcommand{\theequation}{A-\arabic{equation}}

The second argument implies that the text produced by the renewed\theequation command will be "A-" followed by the output fromthe \arabic{equation} command, which is the value of theequation counter, printed as an arabic number.

In List Environments the format for theitem labels is given by commands like \labelitemi and\labelitemii (for the first two levels of theItemize Environment), and like\labelenumi (for the EnumerateEnvironment), and these may also be redefined.

There is an example ofmanipulating such counters in the discussion of the ListEnvironment. See also the discussions in theItemize Environment and in theEnumerate Environment.

You can force a change in the number produced by any of thecounters. For example, if you wanted to produce a single pagenumbered 13, you could use

  \setcounter{page}{13}

A variety of commands for manipulating counters this way aregiven below.

Related topics


See also Sectioning
Return to LaTeX Table of Contents

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
How to write LaTeX in IPython Notebook?
英语数学词汇大全
LATEX双栏、跨栏、通栏长公式
Latex公式中输入中文
LaTeX 排版问题
LaTeX的操作心得
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服