0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Latex]目次でsectionのページ番号を出す・ラベルとページ番号の間にドットを入れる方法[titletoc]

Posted at

目次を表示したいときは、プリアンブルに以下を記載する。

\usepackage{titletoc}
\titlecontents{section}[0zw]{}{\thecontentslabel\quad}{}
    {\titlerule*{.}{\thecontentspage}}
\titlecontents{subsection}[1zw]{}{\thecontentslabel\quad}{}
{\titlerule*{.}{\thecontentspage}}

挿入したい位置で、\tableofcontentsとすると、目次が挿入される。以下は実行後のpdf
image.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?