
답변1
태그를 설정했으므로 tocloft
다음과 호환되는 문서 클래스를 사용하고 있다고 가정하겠습니다.토클로프트패키지.
다음 예에서는 매크로 \cftXpagefont
및 \cftXafterpnum
-- , , 또는 -- X
이 섹션 및 하위 섹션 수준 ToC 항목은 물론 그림 목록 및 테이블 목록의 항목에 대한 형식 지정 목표를 충족하도록 재정의되었습니다. .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}