更改执行摘要中的图表名称

更改执行摘要中的图表名称

我为我的论文写了一个执行摘要,但我在这个执行摘要中包含的图表编号如下: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

相关内容