
目次の名前を変更する必要があるのですが、この序文では申請できません。
\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
。これにより、TOC 内の他のリストを引用できる コマンドが提供されます。
\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}
出力: