我正在写一本需要指定格式的书。需要有带有表头的目录,如下所示:
我想在“目录”旁边添加这个“页面”标题,此外,我还需要对图表列表和表格列表应用相同的操作:
简而言之,我希望这些东西被输入为真正的无边框表格
这是我的示例:
\documentclass[14pt,fleqn]{extbook} % Default font size and left-justified equations
\usepackage{graphicx}
\begin{document}
\tableofcontents % Print the table of contents itself
\listoffigures
\chapter{title1}
\section{subtitle1}
\section{subtitle2}
\section{subtitle3}
\chapter{title2}
\begin{figure}
\centering
\includegraphics[scale=0.4]{photo.jpg}
\caption{what a beautiful flower}
\end{figure}
\chapter{title3}
\begin{figure}
\centering
\includegraphics[scale=0.4]{photo.jpg}
\caption{the same flower}
\end{figure}
\chapter{title4}
\begin{figure}
\centering
\includegraphics[scale=0.4]{photo.jpg}
\caption{the same flower again}
\end{figure}
\end{document}
答案1
这解决了大部分问题。您可以\l@chapter
直接使用 tocloft 或修改等来调整缩进。
不幸的是,将标题居中/重新格式化的简单方法\tableofcontents
也会\listoffigures
弄乱页眉。
\documentclass[14pt,fleqn]{extbook} % Default font size and left-justified equations
\usepackage{graphicx}
\renewcommand{\contentsname}{\large\hfill Table of Contents\hfill\llap{Page}}
\renewcommand{\listfigurename}{\normalsize\underline{Figure No.}\hfill
\underline{Caption}\hfill
\underline{Page}}
\begin{document}
\frontmatter
\pagestyle{plain}%
\addcontentsline{toc}{part}{Table of Contents}%
\tableofcontents % Print the table of contents itself
\cleardoublepage% move to first page ot LOF
\addcontentsline{toc}{part}{List of Figures}%
\listoffigures
\mainmatter
\pagestyle{headings}%
\chapter{title1}
\section{subtitle1}
\section{subtitle2}
\section{subtitle3}
\chapter{title2}
\begin{figure}
\centering
%\includegraphics[scale=0.4]{photo.jpg}
\caption{what a beautiful flower}
\end{figure}
\chapter{title3}
\begin{figure}
\centering
%\includegraphics[scale=0.4]{photo.jpg}
\caption{the same flower}
\end{figure}
\chapter{title4}
\begin{figure}
\centering
%\includegraphics[scale=0.4]{photo.jpg}
\caption{the same flower again}
\end{figure}
\end{document}