내 .tex의 특정 목차를 어떻게 변경할 수 있나요?

내 .tex의 특정 목차를 어떻게 변경할 수 있나요?

목차 이름을 변경해야 하는데 이 서문으로는 신청할 수 없습니다.

\documentclass[12pt,oneside,tikz,border=10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish,]{babel}
\usepackage{titlesec}
...

나는 다음 명령을 사용하고 있습니다.

\cleardoublepage
\addcontentsline{toc}{article}{Lista de figuras}
\listoffigures

\cleardoublepage
\addcontentsline{toc}{article}{Lista de tablas} 
\listoftables

분명히, \addcontentsline{toc}{article}{Lista de tablas} 명령은 "Lista de figuras"와 같은 이름을 변경할 수 없습니다.

또한, 주요 목차의 마지막 내용을 해당 번호와 함께 추가하고 싶습니다.

답변1

보다ToC 제목을 어떻게 바꾸나요?.

\addto\captions<language>babel을 사용하면 TOC의 제목이나 다른 목록을 대체하는 데 사용하는 것이 좋습니다 . 이는 언어 호환성을 유지합니다. 목차의 다른 목록을 인용할 수 있는 명령을 hyperref제공하기 위해 초안 옵션이 추가되었습니다(아직 사용하지 않는 경우 도입된 변경 사항을 최소화하기 위해) .\phantomsection

\documentclass[12pt,oneside,tikz,border=10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{titlesec}
\usepackage[draft]{hyperref} % Used to allow \phantomsection

\addto\captionsspanish{% Replace "spanish" with the language you use
        \renewcommand{\contentsname}%
        {\'Indice Completa}%
}

\begin{document}

\tableofcontents
\phantomsection\addcontentsline{toc}{section}{\listfigurename}
\listoffigures
\phantomsection\addcontentsline{toc}{section}{\listtablename}
\listoftables

\section{Section One}
\begin{figure}\caption{A Figure}\label{one}\end{figure}
\begin{table}\caption{A Table}\label{two}\end{table}

\end{document}

산출:

샘플 코드 출력

관련 정보