我希望以下 LOF、LOT 和 TOC 中的所有标题都与左边距对齐。我在这里所说的标题是指不包括编号的章节或节的标题。事实上,我希望编号缩进。我不希望对齐文本,而是希望将其与缩进的编号对齐,从而允许单词之间的间距更宽松,并避免强制使用连字符。我想要这样做是因为它会使长标题在连字符时断开或超出其指定区域并到达页码列
\documentclass[11pt]{book}
\usepackage{setspace}
\doublespacing
\usepackage{ragged2e}
\usepackage[htt]{hyphenat}
% BEGIN_FOLD
\usepackage[a4paper]{geometry}
% BEGIN_FOLD
\geometry{twoside=false, showframe=false,inner=1.05in,outer=1.05in,includemp=true,asymmetric=true,bindingoffset=0mm,marginparsep=0mm, marginparwidth=0mm}
\geometry{bottom=0.9in,vmarginratio=3:5,includehead=true, includefoot=true,headheight=8pt, headsep=14pt,footskip=10.9mm}
% END_FOLD
\usepackage{fancyhdr}
% BEGIN_FOLD
% Plain page style
\fancypagestyle{plain}{
\renewcommand{\headrulewidth}{0pt}
\fancyhead{}
%
\fancyfoot{}
\fancyfoot[C]{\thepage} % foot
}
% END_FOLD
% END_FOLD
\usepackage{tocloft}
\usepackage[nottoc]{tocbibind}
\usepackage{fontspec}
\usepackage[TS1]{fontenc}
\setmainfont{Georgia}
\usepackage{hyperref}
\hypersetup{colorlinks=true}
\usepackage[Omega]{gensymb}
\usepackage{graphicx}
\usepackage{caption}
\begin{document}
\pagestyle{plain}
\listoffigures
\clearpage
\listoftables
\clearpage
\tableofcontents
\mainmatter
\pagestyle{fancy}
\chapter{Introduction}
\section{Background}
\subsection{Review of Control or Compensation Based Techniques to Mitigate Grid Weakness Symptoms}
\section{Background About Round-Off Errors During the Inversion of Ill-Conditioned Matrices}
\begin{figure}
\caption{Impact of impedance ratios with different angles in the same quadrant on grid strength at the reference POI. Note that in all subfigures, the vector whose angle with respect to the reference is smaller will have larger impact}
\end{figure}
\begin{table}
\caption{Top Five Weakest Combinations of POIs Identified with Exhaustive Search Method and the Proposed Method for Case 1.}
\end{table}
\chapter{A Method to Identify Weak Points of Interconnection of Renewable Energy Resources}
\section{Proposed Method to Update ${Z}_{bus}$ to Account for Changes in the Series Impedance of a Branch}
\chapter{Vector-Based Approach to Analyze Transmission Network Effect on Interaction Among Renewables}
\section{A Mathematical Basis for Understanding the Relationship Between Interaction and Structural Changes in Power Grid}
\subsection{Combined Effect of $\bar{w}_{ij}$ Angle and Magnitude Near When its Angle is Near $\pm 90^{\degree}$}
\end{document}
答案1
我不太清楚你想要什么。不过这可能有帮助。
\documentclass{book}
\usepackage{tocloft}
\setlength{\cftchapindent}{-1.4em} % move chapter title left
\setlength{\cftsecindent}{-2em} % move section title more left
\begin{document}
\tableofcontents
\chapter{One}
\section{First section}
Some text
\end{document}
这些\cft...indent
更改减少了目录中标题编号前的空间;在这种情况下,标题文本(大约)垂直对齐,编号缩进到边距,我认为这是您想要的。阅读文档tocloft
(> texdoc tocloft
)了解更多信息。我让您自行进行调整以适合您的 ToC、LoF、Lot 条目。
答案2
也许你想使用
\makeatletter
\renewcommand{\@tocrmarg}{2.55em plus 1fil}
\makeatother
按照文档建议的那样tocloft
。
\documentclass[11pt]{book}
\usepackage{setspace}
\doublespacing
\usepackage{ragged2e}
\usepackage[htt]{hyphenat}
\usepackage[a4paper]{geometry}
\geometry{
twoside=false,% <- Remove either this option ...
showframe=false,inner=1.05in,outer=1.05in,includemp=true,
asymmetric=true,% <- ... or this option.They contradict each other.
bindingoffset=0mm,marginparsep=0mm, marginparwidth=0mm
}
\geometry{bottom=0.9in,vmarginratio=3:5,includehead=true, includefoot=true,headheight=8pt, headsep=14pt,footskip=10.9mm}
\usepackage{fancyhdr}
\fancypagestyle{plain}{
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancyfoot[C]{\thepage} % foot
}
\usepackage[titles]{tocloft}% <- option titles added
\makeatletter
\renewcommand{\@tocrmarg}{2.55em plus 1fil}
\makeatother
\usepackage[nottoc]{tocbibind}
\usepackage{fontspec}
\usepackage[TS1]{fontenc}
\setmainfont{Georgia}
\usepackage[Omega]{gensymb}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{hyperref}
\hypersetup{colorlinks=true}
\begin{document}
\pagestyle{plain}
\listoffigures
\listoftables
\tableofcontents
\mainmatter
\pagestyle{fancy}
\chapter{Introduction}
\section{Background}
\subsection{Review of Control or Compensation Based Techniques to Mitigate Grid Weakness Symptoms}
\section{Background About Round-Off Errors During the Inversion of Ill-Conditioned Matrices}
\begin{figure}
\caption{Impact of impedance ratios with different angles in the same quadrant on grid strength at the reference POI. Note that in all subfigures, the vector whose angle with respect to the reference is smaller will have larger impact}
\end{figure}
\begin{table}
\caption{Top Five Weakest Combinations of POIs Identified with Exhaustive Search Method and the Proposed Method for Case 1.}
\end{table}
\chapter{A Method to Identify Weak Points of Interconnection of Renewable Energy Resources}
\section{Proposed Method to Update ${Z}_{bus}$ to Account for Changes in the Series Impedance of a Branch}
\chapter{Vector-Based Approach to Analyze Transmission Network Effect on Interaction Among Renewables}
\section{A Mathematical Basis for Understanding the Relationship Between Interaction and Structural Changes in Power Grid}
\subsection{Combined Effect of $\bar{w}_{ij}$ Angle and Magnitude Near When its Angle is Near $\pm 90^{\degree}$}
\end{document}
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16,colormap/blackwhite}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={-60}{40}, hide axis=true, ticks=none, line join=round, line cap=round, clip=false]
\addplot3[surf, samples=51, domain=-2:2, y domain=-2:2, line width=0.2pt, fill=white, point meta=0] {x^2*y/(x^4+y^2)};
\end{axis}
\end{tikzpicture}
\end{document}
您还可以使用包tocbasic
:
\usepackage{tocbasic}
\DeclareTOCStyleEntries[raggedentrytext]{tocline}
{chapter,section,subsection,subsubsection,figure,table}
但请注意,您不能在同一个文档中tocloft
使用这两个包。tocbasic
\documentclass[11pt]{book}
\usepackage{setspace}
\doublespacing
\usepackage{ragged2e}
\usepackage[htt]{hyphenat}
\usepackage[a4paper]{geometry}
\geometry{
twoside=false,% <- Remove either this option ...
showframe=false,inner=1.05in,outer=1.05in,includemp=true,
asymmetric=true,% <- ... or this option.They contradict each other.
bindingoffset=0mm,marginparsep=0mm, marginparwidth=0mm
}
\geometry{bottom=0.9in,vmarginratio=3:5,includehead=true, includefoot=true,headheight=8pt, headsep=14pt,footskip=10.9mm}
\usepackage{fancyhdr}
\fancypagestyle{plain}{
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancyfoot[C]{\thepage} % foot
}
\usepackage{tocbasic}
\DeclareTOCStyleEntries[raggedentrytext]{tocline}
{chapter,section,subsection,subsubsection,figure,table}
\usepackage[nottoc]{tocbibind}
\usepackage{fontspec}
\usepackage[TS1]{fontenc}
\setmainfont{Georgia}
\usepackage[Omega]{gensymb}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{hyperref}
\hypersetup{colorlinks=true}
\begin{document}
\pagestyle{plain}
\listoffigures
\listoftables
\tableofcontents
\mainmatter
\pagestyle{fancy}
\chapter{Introduction}
\section{Background}
\subsection{Review of Control or Compensation Based Techniques to Mitigate Grid Weakness Symptoms}
\section{Background About Round-Off Errors During the Inversion of Ill-Conditioned Matrices}
\begin{figure}
\caption{Impact of impedance ratios with different angles in the same quadrant on grid strength at the reference POI. Note that in all subfigures, the vector whose angle with respect to the reference is smaller will have larger impact}
\end{figure}
\begin{table}
\caption{Top Five Weakest Combinations of POIs Identified with Exhaustive Search Method and the Proposed Method for Case 1.}
\end{table}
\chapter{A Method to Identify Weak Points of Interconnection of Renewable Energy Resources}
\section{Proposed Method to Update ${Z}_{bus}$ to Account for Changes in the Series Impedance of a Branch}
\chapter{Vector-Based Approach to Analyze Transmission Network Effect on Interaction Among Renewables}
\section{A Mathematical Basis for Understanding the Relationship Between Interaction and Structural Changes in Power Grid}
\subsection{Combined Effect of $\bar{w}_{ij}$ Angle and Magnitude Near When its Angle is Near $\pm 90^{\degree}$}
\end{document}
结果和上面一样。