目次の章タイトルとは別に章名を記載する

目次の章タイトルとは別に章名を記載する

下の図のように、章のタイトル名を別の行に点線で表示したいです。ここに画像の説明を入力してください章名はアラビア語で点線で区切られ、その後に章名が続くことに注意してください。私は次のことを試しました

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{titletoc}
\titlecontents{chapter}
   [0pt]% <left>
   {\bfseries}% <above-code>
   {\chaptername\ \thecontentslabel:\quad}% <numbered-entry-format>
   {}% <numberless-entry-format>
   {\titlerule*[0.8pc]{.}\contentspage}
\usepackage{lipsum}
\author{Your Name}
\title{The Tittle of the document  Goes Here}
\begin{document}
\maketitle
\tableofcontents
\chapter{Introduction}
 \section{First Section}
 \lipsum[1-1]
 \section{Second Section}
 \lipsum[1-1]
 \section{Third Section}
 \lipsum[1-1]
 \chapter{Introduction}
 \section{First Section}
 \lipsum[1-1]
 \section{Second Section}
 \lipsum[1-1]
 \section{Third Section}
 \lipsum[1-1]
 \end{document}

このコードは以下を出力します

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

見出しは、最初の画像に示されているようにアラビア語ではなく、数字 (つまり、第 1 章) が含まれていることに注意してください。また、章の名前は、章のタイトルと同じ行に印刷されますが、これは望ましくありません。どうすれば希望どおりになるのかわかりません。ご助力いただければ幸いです。

答え1

このような?

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fmtcount}
\renewcommand\thechapter{\Numberstring{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
\usepackage{titletoc}
\titlecontents{chapter}
   [0pt]% <left>
   {\medskip\bfseries}% <above-code>
   {\chaptername\ \thecontentslabel\hspace{0.3em}\titlerule*[0.8pc]{.}\contentspage\endgraf}% <numbered-entry-format>
   {}% <numberless-entry-format>
   {\titlerule*[0.8pc]{.}\contentspage}
\usepackage{lipsum}
\author{Your Name}
\title{The Title of the document Goes Here}

\begin{document}

\maketitle
\tableofcontents
\chapter{Introduction}
 \section{First Section}
 \lipsum[1-1]
 \section{Second Section}
 \lipsum[1-1]
 \section{Third Section}
 \lipsum[1-1]
 \chapter{Introduction}
 \section{First Section}
 \lipsum[1-1]
 \section{Second Section}
 \lipsum[1-1]
 \section{Third Section}
 \lipsum[1-1]

 \end{document} 

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

関連情報