簡體   English   中英

如何降低圖表+表格的背頁中的標題級別?

[英]How to decrease header level in Overleaf for table of figures + tables?

我試圖弄清楚如何更改我的圖形和表格列表,以便它引用部分級別的圖形和表格。 我的文件類型是背頁的文章。 我當前的代碼如下所示:

\documentclass{article}
\begin{document}

\maketitle
\section{Abstract}
\newpage
\tableofcontents
\newpage
\addcontentsline{toc}{section}{\listfigurename}
\listoffigures
\newpage
\addcontentsline{toc}{section}{\listtablename}
\listoftables
\newpage
\section{Introduction}
\section{3}
\section{4}

\begin{table}[H]
\renewcommand{\arraystretch}{2}
\centering
\begin{tabular}{ p{6cm}p{6cm}}
\toprule
\textbf{Variables}                              & \textbf{Description}                                      \\ \midrule
\textit{F\_27608, R\_27730}                     & The amount of cheese and yogurt ordered weekly.           \\
\textit{Year}                                   & Year of the observation.                                  \\
\textit{Winter, Spring, Summer, Autumn} & Season of the observation.                                \\
\textit{Week}                                   & Week of the observation.                                  \\
 \textit{Lag1, Lag2, Lag3, Lag4, Lag5}           &  Lagged order amounts for prior periods.                   \\
\textit{Price}                                  & Mean price of the product for the specific observation.   \\
\textit{Fut1, Fut2, Fut3, Fut4, Fut5}           & Future price of the product.                              \\
\textit{PromoScale}                             & Level of expected increase in orders caused by promotion. \\
\textit{PromoScale(L1, L2, L3)}                 & Lagged PromoScale values for prior periods                \\
\textit{PromoScale(F1, F2, F3)}                 & Future PromosSale values.                                 \\ \bottomrule
\end{tabular}
\caption{Feature space cheese and yogurt}
\end{table}

見圖:表格列表

我如何使這些表在表列表中顯示 4.1 和 4.2? (代碼只顯示一張表供參考)

您可以使用\counterwithin{figure}{section}為一個部分內的計數器編號:

\documentclass{article}

\counterwithin{figure}{section}
\counterwithin{table}{section}

\begin{document}

\section{Abstract}
\newpage
\tableofcontents
\newpage
\addcontentsline{toc}{section}{\listfigurename}
\listoffigures
\newpage
\addcontentsline{toc}{section}{\listtablename}
\listoftables
\newpage

\section{Introduction}
\section{3}
\section{4}

\begin{table}[htbp]
\caption{Feature space cheese and yogurt}
\end{table}

\end{document}

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM