如何复制图像的格式?
我的尝试:
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\renewcommand*\contentsname{\centering ÍNDICE}
\usepackage[tocfullflat]{tocstyle}
\usetocstyle{standard}
\begin{document}
\newpage
\tableofcontents
\newpage
\section{ONE}
\subsection{ONE ONE}
BLA BLA BLA.
\subsection{ONE TWO}
BLA BLA BLA.
\subsection{ONE THREE}
BLA BLA BLA.
\section{TWO}
\subsection{TWO ONE}
BLA BLA BLA.
\subsection{TWO TWO}
BLA BLA BLA.
\subsection{TWO THREE}
BLA BLA BLA.
\section{THREE}
\subsection{THREE ONE}
BLA BLA BLA.
\subsection{THREE TWO}
BLA BLA BLA.
\subsection{THREE THREE}
BLA BLA BLA.
\section{FOUR}
\subsection{FOUR ONE}
BLA BLA BLA.
\subsection{FOUR TWO}
BLA BLA BLA.
\subsection{FOUR THREE}
BLA BLA BLA.
\end{document}
提前致谢!
答案1
那是你要的吗?
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\renewcommand*\contentsname{\centering ÍNDICE}
\usepackage{titletoc}
\titlecontents{section}[0em]{\medskip\bfseries}%
{\thecontentslabel.\enspace}%numbered
{}%numberless
{\titlerule*[1.2pc]{.}\contentspage}%
%
\titlecontents{subsection}[0em]{\smallskip}%
{\thecontentslabel\enspace}%numbered
{}%numberless
{\normalfont\titlerule*[1.2pc]{.}\contentspage}%
%
\titlecontents{subsubsection}[0em]{\smallskip\bfseries}%
{\thecontentslabel\enspace}%numbered
{}%numberless
{\normalfont\titlerule*[1.2pc]{.}\contentspage}%
\begin{document}
\newpage
\tableofcontents
\newpage
\section{ONE}
\subsection{ONE ONE}
\subsubsection{One one one}
\subsubsection{One one two}
\subsubsection*{One one three}
\addcontentsline{toc}{subsubsection}{One one three}
BLA BLA BLA.
\subsection{ONE TWO}
BLA BLA BLA.
\subsection{ONE THREE}
BLA BLA BLA.
\section{TWO}
\subsection{TWO ONE}
BLA BLA BLA.
\subsection{TWO TWO}
BLA BLA BLA.
\subsection{TWO THREE}
BLA BLA BLA.
\section{THREE}
\subsection{THREE ONE}
BLA BLA BLA.
\subsection{THREE TWO}
BLA BLA BLA.
\subsection{THREE THREE}
BLA BLA BLA.
\section{FOUR}
\subsection{FOUR ONE}
BLA BLA BLA.
\subsection{FOUR TWO}
BLA BLA BLA.
\subsection{FOUR THREE}
BLA BLA BLA.
\end{document}