
Я написал резюме своей диссертации, но рисунки и таблицы, которые я включаю в это резюме, пронумерованы следующим образом: 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