背面的目錄、圖表清單、表格清單中的括號內的頁碼如何書寫?

背面的目錄、圖表清單、表格清單中的括號內的頁碼如何書寫?

在此輸入影像描述

我想要在目錄中列出頁碼,圖表列表,用乳膠括號括起來的表格

答案1

您已經設定了tocloft標籤,所以我假設您使用的文件類別與托克洛夫特包裹。

在下面的範例中,巨集\cftXpagefont\cftXafterpnum-- 其中X可能是secsubsecfigtab-- 被重新定義以滿足節級和子節級目錄條目以及圖表列表和表格列表中的條目的格式設定目標。

在此輸入影像描述

\documentclass{article} % or some other suitable document class

\usepackage{tocloft}
\renewcommand\cftsecpagefont{(}
\renewcommand\cftsubsecpagefont{(}
\renewcommand\cftfigpagefont{(}
\renewcommand\cfttabpagefont{(}
\renewcommand\cftsecafterpnum{)}
\renewcommand\cftsubsecafterpnum{)}
\renewcommand\cftfigafterpnum{)}
\renewcommand\cfttabafterpnum{)}

\begin{document}
\tableofcontents
\listoffigures
\listoftables

\bigskip
\hrule

\section{Hello}
\begin{figure}[h!] \caption{Hello} \end{figure}

\subsection{World}
\begin{table}[ht] \caption{World} \end{table}

\end{document}

相關內容