虽然我将附录用作单独的章节,但附录中的表格编号与结论部分的编号相同。下图显示了问题:
因此,数字以 5 开头的图都在附录部分,但前面仍以数字 5 开头,这是结论部分。因此,它们正常情况下应该有 6.1、6.2 等。我该如何更改它们?
我在正文和附录中使用了以下代码。
\documentclass[a4paper,12pt]{report}
\usepackage[USenglish]{babel} % language, change USenglish to german if writing in German
\usepackage{amsmath,amsfonts,amssymb,mathrsfs} % math symbols
\usepackage{graphicx} % package for graphics
\usepackage{tabularx} % package for tables
\usepackage{xltabular}
\usepackage{microtype}
%\usepackage{bookmark} % allows you to click on bookmarks in the pdf, it is commented off because it might disturb you at the beginning. Comment on to see what it can do.
\usepackage{array, booktabs, xltabular}
\usepackage{multirow}
\usepackage{ltxtable}
\usepackage{threeparttable}
\usepackage{textcomp}
\usepackage{bm} % for bold math
\usepackage{listings} % for inserting code
\usepackage{verbatim} % useful for program listings
\usepackage{pdflscape} % turning wide pages by 90°
\usepackage{color} % package for colors
\usepackage[utf8]{inputenc}
\usepackage{geometry} % interface of your document dimensions
\usepackage[hang]{footmisc} % option hang produces hanging footnotes, see options of package
\usepackage[capposition=top]{floatrow} % defines the position of a caption in a floating environment
\expandafter\def\expandafter\quote\expandafter{\quote\small}
\usepackage{longtable} % for long tables
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage[dvipsnames]{xcolor}
\usepackage{fancyvrb}
\usepackage{makecell} % use for bold line \hlineB{2}
\usepackage{boldline} % use for bold line \hlineB{2}
\usepackage{amsmath}
\usepackage{rotating} % to retrun tables vertically
\usepackage{tablefootnote}
\usepackage{footnote}
\usepackage[natbibapa]{apacite}
\usepackage{url} %for online cite
\usepackage{hyperref}
\usepackage{ltcaption}
%% Customized options
\newlength{\tempdima}
\usepackage[onehalfspacing]{setspace} % Either double-spaced, onehalf-spaced, or single-spaced
\clubpenalty=1000 % prevents single lines at the end of page
\widowpenalty=1000 % prevents single lines at the top of page
\displaywidowpenalty=1000 % for math mode
\interfootnotelinepenalty=10000 % prevents footnotes from breaking across pages
\newcommand{\N}{{\mathbb N}} % shortcut for natural numbers
\newcommand{\R}{{\mathbb R}} % shortcut for real numbers
\usepackage{booktabs}
\usepackage{pdfpages}
%% Other stuff
\DeclareGraphicsExtensions{.pdf,.png,.jpg} % include pictures only with these endings
\setlength{\footnotemargin}{10pt} % defines the space of hanging footnotes
\geometry{left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm} %sets margins on paper itself, check again before submitting/writing if you got the right numbers here
\definecolor{darkblue}{RGB}{51, 51, 178} % defines colour of written text
\allowdisplaybreaks % allows page breaks in align envirnonment
\graphicspath{{C:/Users/Arbnor/Desktop/thesisn/write/fig/}}
\begin{document}
\pagenumbering{Roman}
\providecommand{\keywords}[1]
{
\small
\textbf{\textit{Keywords---}} #1
}
\begin{titlepage}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\center
\includegraphics{logo.pdf}
\textsc{\LARGE }\\[1.5cm]
\textsc{\Large }\\[0.5cm]
\HRule\\[0.4cm]
{\huge\bfseries }\\[0.4cm]
\HRule\\[1.5cm]
\begin{minipage}{0.4\textwidth}
\begin{flushleft}
\large
\textit{Author}\\
\textsc{ } % Your name
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright}
\large
\textit{Supervisor}\\
\textsc{ } % Supervisor's name
\end{flushright}
\end{minipage}
\vfill\vfill\vfill
{\large\today}
\vfill
\end{titlepage}
\newpage
\clearpage\null\newpage
\newpage
\include{chapters/abstract}
\newpage
\tableofcontents
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}
\newpage
\pagenumbering{arabic}
\include{chapters/introduction}
\include{chapters/Literature}
\include{chapters/data}
\include{chapters/Analysis}
\include{chapters/conclusion}
%----------------------------------------------------------------------------------------
\bibliographystyle{apacite}
\addcontentsline{toc}{chapter}{References}
\bibliography{references/references}
\newpage
\include{chapters/appendix}
\include{originality/originality}
\end{document}
and the appendix is:
\chapter*{Appendix}
\addcontentsline{toc}{chapter}{Appendix}
\begin{table}
\resizebox{1\textwidth}{!}{
\tempdima=\dimexpr \textwidth/7 - 2\tabcolsep\relax
\small
\begin{tabular}{lccccccc} \hline\hline
\multicolumn{1}{p{\tempdima}}{Sample window} &
\multicolumn{1}{p{\tempdima}}{Actual crises} &
\multicolumn{1}{p{\tempdima}}{Correctly predicted} &
\multicolumn{1}{p{\tempdima}}{Missed crises} &
\multicolumn{1}{p{\tempdima}}{Actual non-crises} &
\multicolumn{1}{p{\tempdima}}{Correctly predicted} &
\multicolumn{1}{p{\tempdima}}{Wrongly called} \\
\midrule
& & & & & & \\
& & & & & & \\
\midrule
Total & & & & & & \\
\midrule
Percentage & \% & \% & \% & \% & \% & \% \\ \hline
\end{tabular}}
\caption{1-year ahead overall out-of-sample performance}
\label{table:1yaovoutsaperformance}
\end{table}
答案1
如果你真的想要 6,那么就放
\refstepcounter{chapter}
在附录的开始处,但由于没有第 6 章,它看起来有点奇怪。