
내 장 제목 이름을 아래 그림과 같이 점선으로 구분된 줄에 표시하고 싶습니다.장 이름이 아랍어로 한 줄에 점선으로 표시되어 있고 장의 이름이 뒤에 오는 것을 확인하세요. 나는 다음을 시도했다
\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}