我以前没有用过这个论坛。但我尝试将方程式、图表和表格编号为 1.1、2.1 和 3.1。如您所见,我的文档类别是回忆录。我尝试了以下操作:
\usepackage{chngcntr}
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
\counterwithin{equation}{chapter}
和
\usepackage{amsmath}
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\numberwithin{equation}{chapter}
和
\letcountercounter{figure}{table}
\letcountercounter{equation}{table}
但它们都不起作用。我想知道其中一些软件包是否会破坏其他软件包。我希望你们中的一些人能帮助我。
以下是我的序言包。
\documentclass[fleqn,a4paper,11pt,article,twoside]{memoir}
%%%%%%%%%%%%%%%%
%%% PACKAGES %%%
%%%%%%%%%%%%%%%%
\usepackage{maplestd2e}
\usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}
\usepackage{multirow}
\usepackage{float}
\usepackage[danish]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{mdframed}
\usepackage{array}
\usepackage{amsmath}
\usepackage{chngcntr}
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
\counterwithin{equation}{chapter}
%\numberwithin{figure}{chapter}
%\numberwithin{table}{chapter}
%\numberwithin{equation}{chapter}
%\letcountercounter{figure}{table}
%\letcountercounter{equation}{table}
\usepackage{listings}
\begin{lstlisting}
\usepackage{ulem}
\usepackage{lscape}
(\begin{landscape})
\usepackage{siunitx}
\usepackage{lmodern}
\usepackage{wrapfig}
\usepackage{subfig}
\usepackage[square,sort]{natbib}
\bibpunct{[}{]}{;}{n}{,}{,}
\usepackage[pdftex]{hyperref}
\usepackage{graphicx}
\usepackage{mathrsfs}
\usepackage[danish=quotes]{csquotes}
%\usepackage[table]{xcolor}
\usepackage{titlesec}
\usepackage{rotating}
\captionsetup{margin=25pt,font={footnotesize,sf},format=hang}
\usepackage{pdfpages}
\usepackage{appendix}
\usepackage{gensymb}
\usepackage{color}
\usepackage{tcolorbox}
%\usepackage[grey,utopia]{quotchap}
\usepackage{cite}
\usepackage{lipsum}
\usepackage{steinmetz}