
我為我的論文寫了一份執行摘要,但我在執行摘要中包含的數字和表格的編號如下:0.1、0.2 等。
我想知道這是否被正式接受,如果沒有,是否有辦法更改編號。我喜歡其餘章節中的編號顯示章節號,但執行摘要中的零看起來有點奇怪。感謝您的幫忙!我在這裡留下我的程式碼:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[super]{natbib}
\usepackage{comment}
\usepackage{graphicx}
\usepackage{float}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{caption}
\usepackage{adjustbox}
\usepackage{lipsum}
\usepackage{lscape}
\usepackage{multicol}
\usepackage{longtable}
\usepackage{chngcntr}
\counterwithin{figure}{section}
\counterwithin{table}{section}
\captionsetup[figure]{font=small,labelfont=bf}
\captionsetup[table]{font=small,labelfont=bf}
\usepackage[justification=centering]{caption}
\usepackage{eurosym}
\usepackage{mhchem}
\usepackage{multirow}
\usepackage{eurosym}
\usepackage{relsize}
\usepackage[table, dvipsnames]{xcolor}
\renewcommand*\descriptionlabel[1]{\hspace\leftmargin$#1$}
\usepackage{enumitem}
\usepackage{lscape}
\newcolumntype{C}{>{\Centering\hspace{0pt}}p{0.1\textwidth}}
\usepackage[output-decimal-marker={,}]{siunitx}
\usepackage{booktabs, makecell, tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{M}{p{\dimexpr 0.25\textwidth-2\tabcolsep}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage{longtable,array,ragged2e}
\newlength\mylen
\setlength\mylen{\dimexpr0.25\textwidth-1.5\tabcolsep-0.25\arrayrulewidth\relax}
\newcolumntype{Z}{>{\RaggedRight}p{\mylen}}
\usepackage{booktabs,tabularx}
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={(},close={)}}
\begin{document}
\section*{Management Summary}
The supplier selection problem is one of the crucial activities of the procuring department in an organization when no single supplier can satisfy all....
\begin{figure}[htbp]
\centerline{\includegraphics[scale=.43]{Model blackbox.png}}
\begin{changemargin}{0.5cm}{0.5cm}
\vspace*{-2mm}
\caption{Can Order Allocation Model (COAM) framework.}
\end{changemargin}
\label{fig}
\end{figure}
To test the financial benefits, five different versions of the model were built....
\end{document}
答案1
我已新增至您的 MWE,但沒有浪費時間刪除您提供的所有與您的問題無關的不相關程式碼。
% fignumprob.tex SE 561990
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[super]{natbib}
\usepackage{comment}
\usepackage{graphicx}
\usepackage{float}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{caption}
\usepackage{adjustbox}
\usepackage{lipsum}
\usepackage{lscape}
\usepackage{multicol}
\usepackage{longtable}
\usepackage{chngcntr}
\counterwithin{figure}{section}
\counterwithin{table}{section}
\captionsetup[figure]{font=small,labelfont=bf}
\captionsetup[table]{font=small,labelfont=bf}
\usepackage[justification=centering]{caption}
\usepackage{eurosym}
\usepackage{mhchem}
\usepackage{multirow}
\usepackage{eurosym}
\usepackage{relsize}
\usepackage[table, dvipsnames]{xcolor}
\renewcommand*\descriptionlabel[1]{\hspace\leftmargin$#1$}
\usepackage{enumitem}
\usepackage{lscape}
\newcolumntype{C}{>{\Centering\hspace{0pt}}p{0.1\textwidth}}
\usepackage[output-decimal-marker={,}]{siunitx}
\usepackage{booktabs, makecell, tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{M}{p{\dimexpr 0.25\textwidth-2\tabcolsep}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage{longtable,array,ragged2e}
\newlength\mylen
\setlength\mylen{\dimexpr0.25\textwidth-1.5\tabcolsep-0.25\arrayrulewidth\relax}
\newcolumntype{Z}{>{\RaggedRight}p{\mylen}}
\usepackage{booktabs,tabularx}
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={(},close={)}}
\begin{document}
\listoffigures %% PW ADDED THIS
\section*{Management Summary}
\renewcommand{\thefigure}{\arabic{figure}} %% PW ADDED THIS
\renewcommand{\thetable}{\arabic{table}} %% PW ADDED THIS
The supplier selection problem is one of the crucial activities of the procuring department in an organization when no single supplier can satisfy all....
\begin{figure}[htbp]
\centerline{\includegraphics[scale=.43]{Model blackbox.png}}
\begin{changemargin}{0.5cm}{0.5cm}
\vspace*{-2mm}
\caption{Can Order Allocation Model (COAM) framework.}
\end{changemargin}
\label{fig}
\end{figure}
To test the financial benefits, five different versions of the model were built....
\section{Main document} %% PW ADDED THESE
\renewcommand{\thefigure}{\thesection.\arabic{figure}}
\renewcommand{\thetable}{\thesection.\arabic{table}}
\lipsum[1]
\begin{figure}
\centering
MAIN ILLUSTRATION
\caption{A figure}
\end{figure}
\end{document}
在適當的地方使用\renewcommand{figure}
(和表格)來獲得您想要的編號。我不知道您希望您的圖表列表看起來如何,但對我來說,管理摘要列表被標記為 ,1
但主文檔列表被標記為 ,這似乎很奇怪1.1
。如果您不喜歡這個問題,請提出另一個問題。
課程article
不提供您在問題中討論的章節。 --- GOM