
Я хочу, чтобы названия моих глав были на отдельной пунктирной строке, как показано на рисунке ниже.обратите внимание, что название главы написано на арабском языке с точкой на отдельной строке, а название главы следует за ним. Я пробовал следующее
\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}