
答案1
您已經設定了tocloft
標籤,所以我假設您使用的文件類別與托克洛夫特包裹。
在下面的範例中,巨集\cftXpagefont
和\cftXafterpnum
-- 其中X
可能是sec
、subsec
、fig
或tab
-- 被重新定義以滿足節級和子節級目錄條目以及圖表列表和表格列表中的條目的格式設定目標。
\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}