目次、ドット、サイズのカスタマイズ

目次、ドット、サイズのカスタマイズ

目次にドットを追加し、サイズを変更したいです。スタイルにたくさんの質問があることは知っていますが、私は信じられないほど愚かです。\begin コマンドが何をするのかさえ知りません。言語も変更したいです。「contents」ではなく、フランス語の「table des matieres」と書きたいです。

これが私の2行です

\newpage
  \tableofcontents
  \addtocontents{toc}{~\hfill\textbf{Page}\par} 

何をどこに追加すればよいか教えてください。いろいろ試しましたが、LaTex を学ぶ時間がありません。

どうもありがとうございます。

答え1

@Bernardのコメントに触発され、裏面と@cmhughes'答え同様の質問に対して:

\documentclass[french]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}

\usepackage{titletoc}

% \dottedcontents{<section>}[<left>]{<above-code>}{<label width>}{<leader width>}
\dottedcontents{section}[0em]{\bfseries}{2.9em}{1pc}
%\dottedcontents{subsection}[5em]{}{3.3em}{1pc}

\begin{document}

\tableofcontents

\vspace{2cm} % Add a 2cm space

\begin{abstract}
Ceci est un bref résumé du contenu du document écrit en français.
\end{abstract}

\section{Section d'introduction}
Il s'agit de la première section, nous ajoutons des éléments supplémentaires et tout sera correctement orthographiés. En outre, si un mot est trop long et doit être tronqué, babel va essayer de tronquer correctement en fonction de la langue.

\subsection{Subsection}

\section{Section théorèmes}
Cette section est de voir ce qui se passe avec les commandes de texte qui définissent.

\end{document}

出力:

ここに画像の説明を入力してください

答え2

あなたが何を求めているのかよく分かりません。「サイズの変更」とは何を指しているのでしょうか。どこにドットを追加したいのでしょうか。

しかし、tocloft答えはパッケージです。以下は、パッケージの使用方法を示す MWE です。

% tocprob4.tex SE 533373 Customize ToC, dots and size
\documentclass{report}
\usepackage{lipsum}
\usepackage{tocloft}
\renewcommand{\contentsname}{table des matieres} % change the title
\renewcommand{\cftchapdotsep}{\cftdotsep} % add dots for chapters
\renewcommand{\cftsecdotsep}{10} % increase space between dots for sections
\renewcommand{\cftdot}{\ensuremath{\ast}} % replace dots by asterisks
%\renewcommand{\cftdot}{\Large .} % make dots Large

\begin{document}
\addtocontents{toc}{\hfill \textbf{Page}\par} % put Page above page numbers
\tableofcontents

\chapter{A chapter}
\lipsum[1]
\section{A section}
Some text in a section.
\subsection{A subsection}
Some text in a subsection.
\end{document}

texdoc tocloft詳細については、ドキュメント ( ) をお読みください。

関連情報