我的 LoF 和 LoT 格式有问题,列表中的图和表的编号是错的,我不想要这个结果,但我的 LaTeX 水平不太好。
序言就在这里。我没有全部代码,因为在这里解释起来太长了。
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{amssymb,amsmath}
\allowdisplaybreaks
\usepackage{xpatch}
\makeatletter
% get a copy of \protected@write
\let\protected@iwrite\protected@write
% patch the copy to add \immediate
\xpatchcmd{\protected@iwrite}{\write}{\immediate\write}{}{}
% patch \addsymline to use \protected@iwrite instead of \immediate\write
\xpatchcmd{\addsymline}
{\immediate\write#5}
{\protected@iwrite{#5}{}}
{}{}
\makeatother
\usepackage{wasysym}
\usepackage{graphicx}
\usepackage{structuralanalysis}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{notoccite}
\DeclareSymbolFont{letters}{OML}{ztmcm}{m}{it}
\DeclareSymbolFontAlphabet{\mathnormal}{letters}
\usepackage{appendix}
\renewcommand{\appendixname}{Anexos}
\renewcommand{\appendixtocname}{Anexos}
\renewcommand{\appendixpagename}{Anexos}
\usepackage[square,numbers]{natbib}
\bibliographystyle{IEEETRAN-SPA}
\usepackage[format=hang,font=small,labelfont=bf]{caption}
\usepackage{subcaption}
\usepackage{float}
\usepackage[top=2.5cm,left=3.5cm,right=2.5cm,bottom=3cm,includefoot]{geometry}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{array}
\usepackage{booktabs}
\usepackage{adjustbox}
\usepackage[thinlines]{easytable}
\usepackage{pgfplotstable}
\usepackage{titlesec}
\titleformat
{\chapter} % command
[display] % shape
{\vspace{-2cm} \centering \bfseries\huge} % format
{} % label
{0cm} % sep
{\centering} % before-code
[\centering] % after-code
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% redefinition of the plain style:
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\usepackage[final]{listofsymbols} % cambiar por final en el definitivo
{\renewcommand{\symheading}{\chapter*{Lista de Símbolos}}
\parindent=0mm
\usepackage[acronym,nonumberlist]{glossaries}
\makenoidxglossaries
\input{acronimo.tex}
\input{glosario.tex}
\usepackage{hyperref}
\hypersetup{colorlinks=false, %set true if you want colored links
linktoc=all, %set to all if you want both sections and subsections linked
linkcolor=black, %choose some color if you want links to stand out
}
添加我对此图片的问题。感谢您的帮助!