
答え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}