不同類型的縮排

不同類型的縮排

我試圖在文檔中進行更長的縮排。目前我有:

\documentclass{article}
\usepackage[utf8]{inputenc}
\documentclass[11pt]{article}
\usepackage[a4paper, total={6in, 9in}]{geometry}
\usepackage{tocloft}
\usepackage{textcomp}
\usepackage{tipa}\setlength{\parindent}{1em}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.5}

\begin{document}
\begin {center}
\Large \bfseries{Table of Contents}
\end{center} \\ 
\vspace{1cm}
\noindent
\textbf {1 Introduction} \dotfill 4 \\
\indent \emph {1.1 Text} \dotfill 3 \\
\indent \emph {1.1.1 more text}  \dotfill 3\\
\end{document}

我想做的是將「1.1.1 更多文字」從先前的「1.1 文字」進一步向右移動。我嘗試過 \hspace{1cm},\parident 和其他類似的編碼。我的文檔沒有對其中任何一個做出反應,並且似乎保持不變。我希望用一個沒有節和小節的簡單程式碼來完成它。我使用了錯誤的軟體包嗎?

提前謝謝您,如果這是一個顯而易見的問題,我很抱歉。

答案1

正如我所提到的,您的文件應該看起來更像這樣:

\documentclass[a4paper, 11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[total={6in, 9in}]{geometry}
\usepackage{tocloft}
\usepackage[onehalfspacing]{setspace}
\renewcommand*\contentsname{Table of Contents}
\renewcommand\cftsubsecfont{\itshape}
\renewcommand\cftsubsubsecfont{\itshape}
\renewcommand\cftdotsep{2}
\begin{document}
\tableofcontents
\section{Introduction}
Some text here.
\newpage Some text here.
\newpage Some text here.
\subsection{Text}
Some text here.
\newpage
\subsubsection{More text}
\end{document}

語意標記結果

結果可能還不是你想要的——可能需要進一步調整,但基本結構應該是這樣的。 (儘管您不需要人為添加\newpage只是為了在示例的後面頁面上獲取內容。)

也就是說,主要文件正文說明了文件的每個部分是什麼樣的內容:這是章節標題,這是目錄,這是參考書目。

如果你想改變結果看起來您可以在序言中使用套件等進行配置。

你要 LaTeX 找出第 9.8.5 小節從哪個頁碼開始,這樣如果它發生變化,你就不必考慮它。頁面樣式、頁首、頁尾等也類似。

它與文字處理不同,需要適應,因為如果您已經使用文字處理軟體很長時間了,當然照你習慣的方式做似乎更簡單。但是,從長遠來看,它要複雜得多,會產生不一致和不靈活的結果,並迫使你思考電腦擅長而人類不擅長的所有事情。而且,這樣使用LaTeX確實不容易。你可以做到這一點,但你會希望你一直使用文字處理程序,因為你會得到 LaTeX 的所有缺點,而沒有任何優點。

相關內容