图表列表和表格列表编号错误,已部分解决

图表列表和表格列表编号错误,已部分解决

\listoffigures我设法更改了和的编号\listoftables,但包括 \cleardoublepage,但现在的问题是,有一个空白页,虽然它是完全空的,但它计入索引。我的意思是它打印为:图片列表.....X 表格列表.....XII

但实际上我想要

图表目录..... X 表格目录..... XI

我写了一个 MWE,但您无法编译它,因为它被分为不同的章节:

\documentclass[a4paper,openright,10pt]{book}
\usepackage{vmargin}
\usepackage{fancyhdr}
\usepackage{emptypage}
\usepackage{xpatch}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}}
\pagestyle{fancy} 
\usepackage{afterpage}

\usepackage{blindtext}

\fancypagestyle{chapterfirstpage}{%
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0.5pt}%
\fancyhf{}%
\rfoot{\thepage}%
}

\xpatchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{chapterfirstpage}}{\typeout{Success}}{\typeout{Failed}}
   \usepackage{epigraph}
 \newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\usepackage[utf8]{inputenc}
 \setcounter{secnumdepth}{3} % para que ponga 1.1.1.1..
 \setcounter{tocdepth}{3} % para que añadir las secciones en el índice...
 \usepackage[spanish, es-tabla]{babel}
  \usepackage{graphicx}
 \graphicspath{{./figuras/}}
 \usepackage{setspace}
 \usepackage[backend=bibtex,style=chem-angew,citestyle=numeric-comp,sorting=none,]{biblatex}
  \addbibresource{biblio} 
  \usepackage{csquotes}
  \usepackage{titlesec}
 \usepackage{tocloft}
\usepackage{tabu}
\titleformat{\chapter}{\normalfont\huge\sffamily}{\thechapter.}{0.1em}{\Huge}
 \renewcommand\cftchapaftersnum{.}
\usepackage{graphicx} % figuras

\makeindex
 \usepackage[toc]{glossaries}%[acronym, toc, nonumberlist, shortcuts, xindy=language=spanish-traditional, sanitize=none]{glossaries}

\setacronymstyle{long-short}
\newacronym{DRX}{DRX}{Difracción de Rayos X}

 \begin{document}

   \doublespacing
\renewcommand{\listtablename}{Lista de Tablas}
\renewcommand{\listfigurename}{Lista de Figuras}
\renewcommand{\contentsname}{Índice}
\renewcommand{\glossaryname}{Lista de Acrónimos}

 \include{./capitulos/titulo}
 \include{./capitulos/ded}
 \include{./capitulos/resumenes}
 \include{./capitulos/abst}

 \cleardoublepage
\thispagestyle{empty} % para que no se numere esta pagina
\include{./capitulos/tabla}
\cleardoublepage
 \thispagestyle{empty} % para que no se numere esta pagina
\addcontentsline{toc}{chapter}{Lista de figuras} 
\listoffigures
\cleardoublepage
\thispagestyle{empty} % para que no se numere esta pagina
\addcontentsline{toc}{chapter}{Lista de tablas} % para que aparezca en el  
 \listoftables
\cleardoublepage
 \thispagestyle{empty} % para que no se numere esta pagina
  \addcontentsline{toc}{chapter}{Lista de Acrónimos}

 \thispagestyle{empty} % para que no se numere esta pagina
 \include{acronyms}
 \thispagestyle{empty} % para que no se numere esta pagina
 \include{./capitulos/introduccion}
 \include{./capitulos/Materialesm}
 \include{./capitulos/sintesis}
\include{./capitulos/SBR}
\include{./capitulos/pvdf}
\include{./capitulos/gracias}
\include{./capitulos/bibliog}
\end{document}

答案1

我不确定你想要的输出应该是什么,所以我会尝试两种情况:

删除空白页

要使 LoF 和 LoT 位于连续的两页上,请用 替换\cleardoublepage\clearpage但如果没有空白页,如果双面打印,LoT 将打印在 LoF 的背面。

\documentclass[a4paper,openright,10pt]{book}
\usepackage{vmargin}
\usepackage{fancyhdr}
\usepackage{emptypage}
\usepackage{xpatch}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}}
\pagestyle{fancy} 
\usepackage{afterpage}

\usepackage{blindtext}

\fancypagestyle{chapterfirstpage}{%
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0.5pt}%
\fancyhf{}%
\rfoot{\thepage}%
}

\xpatchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{chapterfirstpage}}{\typeout{Success}}{\typeout{Failed}}
   \usepackage{epigraph}
 \newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\usepackage[utf8]{inputenc}
 \setcounter{secnumdepth}{3} % para que ponga 1.1.1.1..
 \setcounter{tocdepth}{3} % para que añadir las secciones en el índice...
 \usepackage[spanish, es-tabla]{babel}
  \usepackage{graphicx}
 \graphicspath{{./figuras/}}
 \usepackage{setspace}
 \usepackage[backend=bibtex,style=chem-angew,citestyle=numeric-comp,sorting=none,]{biblatex}
  \addbibresource{biblio} 
  \usepackage{csquotes}
  \usepackage{titlesec}
 \usepackage{tocloft}
\usepackage{tabu}
\titleformat{\chapter}{\normalfont\huge\sffamily}{\thechapter.}{0.1em}{\Huge}
 \renewcommand\cftchapaftersnum{.}
\usepackage{graphicx} % figuras

\makeindex
 \usepackage[toc]{glossaries}%[acronym, toc, nonumberlist, shortcuts, xindy=language=spanish-traditional, sanitize=none]{glossaries}

\setacronymstyle{long-short}
\newacronym{DRX}{DRX}{Difracción de Rayos X}

 \begin{document}

   \doublespacing
\renewcommand{\listtablename}{Lista de Tablas}
\renewcommand{\listfigurename}{Lista de Figuras}
\renewcommand{\contentsname}{Índice}
\renewcommand{\glossaryname}{Lista de Acrónimos}


\tableofcontents

\cleardoublepage
 \thispagestyle{empty} % para que no se numere esta pagina
\addcontentsline{toc}{chapter}{Lista de figuras} 
\listoffigures
\clearpage
\thispagestyle{empty} % para que no se numere esta pagina
\addcontentsline{toc}{chapter}{Lista de tablas} % para que aparezca en el  
 \listoftables


\end{document}

enter image description here

处理页码

如果您只是希望 LoT 的页码少一页,则可以使用\addtocounter{page}{-1}。LoT 页面和目录中给出的页码为 4(在下面的示例中),但实际上它将是第 5 页。

请不要使用此功能,除非您只打印一面并扔掉空白纸张。因为即使一页是空白的,它也是一页,应该被计算在内。

\documentclass[a4paper,openright,10pt]{book}
\usepackage{vmargin}
\usepackage{fancyhdr}
\usepackage{emptypage}
\usepackage{xpatch}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}}
\pagestyle{fancy} 
\usepackage{afterpage}

\usepackage{blindtext}

\fancypagestyle{chapterfirstpage}{%
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0.5pt}%
\fancyhf{}%
\rfoot{\thepage}%
}

\xpatchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{chapterfirstpage}}{\typeout{Success}}{\typeout{Failed}}
   \usepackage{epigraph}
 \newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\usepackage[utf8]{inputenc}
 \setcounter{secnumdepth}{3} % para que ponga 1.1.1.1..
 \setcounter{tocdepth}{3} % para que añadir las secciones en el índice...
 \usepackage[spanish, es-tabla]{babel}
  \usepackage{graphicx}
 \graphicspath{{./figuras/}}
 \usepackage{setspace}
 \usepackage[backend=bibtex,style=chem-angew,citestyle=numeric-comp,sorting=none,]{biblatex}
  \addbibresource{biblio} 
  \usepackage{csquotes}
  \usepackage{titlesec}
 \usepackage{tocloft}
\usepackage{tabu}
\titleformat{\chapter}{\normalfont\huge\sffamily}{\thechapter.}{0.1em}{\Huge}
 \renewcommand\cftchapaftersnum{.}
\usepackage{graphicx} % figuras

\makeindex
 \usepackage[toc]{glossaries}%[acronym, toc, nonumberlist, shortcuts, xindy=language=spanish-traditional, sanitize=none]{glossaries}

\setacronymstyle{long-short}
\newacronym{DRX}{DRX}{Difracción de Rayos X}

 \begin{document}

   \doublespacing
\renewcommand{\listtablename}{Lista de Tablas}
\renewcommand{\listfigurename}{Lista de Figuras}
\renewcommand{\contentsname}{Índice}
\renewcommand{\glossaryname}{Lista de Acrónimos}


\tableofcontents

\cleardoublepage
 \thispagestyle{empty} % para que no se numere esta pagina
\addcontentsline{toc}{chapter}{Lista de figuras} 
\listoffigures
\cleardoublepage
\addtocounter{page}{-1}
\thispagestyle{empty} % para que no se numere esta pagina
\addcontentsline{toc}{chapter}{Lista de tablas} % para que aparezca en el  
 \listoftables


\end{document}

enter image description here

相关内容