TOC 中的长章节名称第二行缩进
Long chapter name second line indent in the TOC
我是 LaTeX 新手,正在尝试制作具有一些要求的文档。
在这里和整个互联网上搜索类似的问题都没有给我任何结果。
重点是删除目录中的长章节名称第二(第三,第四...)行缩进。
What I do have now
What I want to have
Detailed explanation
MWE:
\RequirePackage[l2tabu]{nag}
\documentclass[a4paper,14pt,twoside,openany]{memoir}
\setcounter{tocdepth}{2}
\begin{document}
\renewcommand{\contentsname}{Table of Contents}
\newcommand{\acronymsname}{This is a long, really long name for acronyms list to show how it looks within the Table of Contents}
\newcommand{\introductionname}{Introduction}
\tableofcontents
\chapter*{\acronymsname}
\addcontentsline{toc}{chapter}{\acronymsname}
\begin{itemize}
\item[\(E\)] --- E-letter
\item[\(j\)] --- j-letter
\item[\(k\)] --- k-letter
\end{itemize}
\chapter*{\introductionname}
\addcontentsline{toc}{chapter}{\introductionname}
Introduction text.
\chapter{First Chapter}
First Chapter text.
\section{Section One in the 1st Chapter}
...Some text...
\subsection{Subsection N1 within 1.1}
...New text...
\subsection{Subsection N2 within 1.1}
...Other text...
\section{Section Two in the 1st Chapter}
...More text...
\chapter{Second Chapter --- This Chapter Name is Really Long Too as Well as Acronyms List so it May Take at Least Two Strings}
Second Chapter text.
\section{Section One in the 2nd Chapter}
...Some text...
\section{Section Two in the 2nd Chapter}
...More text...
\end{document}
我想“tocloft”包可能对我有帮助。或不....?
感谢您的帮助!
快速而肮脏的破解:
\RequirePackage[l2tabu]{nag}
\documentclass[a4paper,14pt,twoside,openany]{memoir}
\setcounter{tocdepth}{2}
\begin{document}
\renewcommand{\contentsname}{Table of Contents}
\newcommand{\acronymsname}{This is a long, really long name for acronyms list to show how it looks within the Table of Contents}
\newcommand{\introductionname}{Introduction}
\tableofcontents
\chapter*{\acronymsname}
\addcontentsline{toc}{chapter}{\parbox[b]{\dimexpr\textwidth-21.855pt}{\acronymsname}}
\begin{itemize}
\item[\(E\)] --- E-letter
\item[\(j\)] --- j-letter
\item[\(k\)] --- k-letter
\end{itemize}
\chapter*{\introductionname}
\addcontentsline{toc}{chapter}{\introductionname}
Introduction text.
\chapter{First Chapter}
First Chapter text.
\section{Section One in the 1st Chapter}
...Some text...
\subsection{Subsection N1 within 1.1}
...New text...
\subsection{Subsection N2 within 1.1}
...Other text...
\section{Section Two in the 1st Chapter}
...More text...
\chapter{Second Chapter --- This Chapter Name is Really Long Too as Well as Acronyms List so it May Take at Least Two Strings}
Second Chapter text.
\section{Section One in the 2nd Chapter}
...Some text...
\section{Section Two in the 2nd Chapter}
...More text...
\end{document}
发布了两种不同的解决方案
Here - First
和
Here - Second
.
他们都在工作和定性。
我是 LaTeX 新手,正在尝试制作具有一些要求的文档。 在这里和整个互联网上搜索类似的问题都没有给我任何结果。 重点是删除目录中的长章节名称第二(第三,第四...)行缩进。
What I do have now
What I want to have
Detailed explanation
MWE:
\RequirePackage[l2tabu]{nag}
\documentclass[a4paper,14pt,twoside,openany]{memoir}
\setcounter{tocdepth}{2}
\begin{document}
\renewcommand{\contentsname}{Table of Contents}
\newcommand{\acronymsname}{This is a long, really long name for acronyms list to show how it looks within the Table of Contents}
\newcommand{\introductionname}{Introduction}
\tableofcontents
\chapter*{\acronymsname}
\addcontentsline{toc}{chapter}{\acronymsname}
\begin{itemize}
\item[\(E\)] --- E-letter
\item[\(j\)] --- j-letter
\item[\(k\)] --- k-letter
\end{itemize}
\chapter*{\introductionname}
\addcontentsline{toc}{chapter}{\introductionname}
Introduction text.
\chapter{First Chapter}
First Chapter text.
\section{Section One in the 1st Chapter}
...Some text...
\subsection{Subsection N1 within 1.1}
...New text...
\subsection{Subsection N2 within 1.1}
...Other text...
\section{Section Two in the 1st Chapter}
...More text...
\chapter{Second Chapter --- This Chapter Name is Really Long Too as Well as Acronyms List so it May Take at Least Two Strings}
Second Chapter text.
\section{Section One in the 2nd Chapter}
...Some text...
\section{Section Two in the 2nd Chapter}
...More text...
\end{document}
我想“tocloft”包可能对我有帮助。或不....? 感谢您的帮助!
快速而肮脏的破解:
\RequirePackage[l2tabu]{nag}
\documentclass[a4paper,14pt,twoside,openany]{memoir}
\setcounter{tocdepth}{2}
\begin{document}
\renewcommand{\contentsname}{Table of Contents}
\newcommand{\acronymsname}{This is a long, really long name for acronyms list to show how it looks within the Table of Contents}
\newcommand{\introductionname}{Introduction}
\tableofcontents
\chapter*{\acronymsname}
\addcontentsline{toc}{chapter}{\parbox[b]{\dimexpr\textwidth-21.855pt}{\acronymsname}}
\begin{itemize}
\item[\(E\)] --- E-letter
\item[\(j\)] --- j-letter
\item[\(k\)] --- k-letter
\end{itemize}
\chapter*{\introductionname}
\addcontentsline{toc}{chapter}{\introductionname}
Introduction text.
\chapter{First Chapter}
First Chapter text.
\section{Section One in the 1st Chapter}
...Some text...
\subsection{Subsection N1 within 1.1}
...New text...
\subsection{Subsection N2 within 1.1}
...Other text...
\section{Section Two in the 1st Chapter}
...More text...
\chapter{Second Chapter --- This Chapter Name is Really Long Too as Well as Acronyms List so it May Take at Least Two Strings}
Second Chapter text.
\section{Section One in the 2nd Chapter}
...Some text...
\section{Section Two in the 2nd Chapter}
...More text...
\end{document}
发布了两种不同的解决方案 Here - First 和 Here - Second . 他们都在工作和定性。