数字编号问题

数字编号问题

我需要将图表和表格的编号重置为 1、2、3,并删除编号 1.1、1.2、1.3……我尝试了很多命令,但都没有用。你能帮帮我吗?

.cls文件是这里

文档:

\documentclass[thesis=B,czech]{FITthesis}[2012/06/26]

\usepackage[utf8]{inputenc}

\usepackage{graphicx}

\department{text}
\title{text}
\authorGN{text}
\authorFN{text}
\authorWithDegrees{text}
\supervisor{text}
\acknowledgements{text}
\abstractCS{text}
\abstractEN{text}
\placeForDeclarationOfAuthenticity{text}
\declarationOfAuthenticityOption{1}
\keywordsCS{text}
\keywordsEN{text}

\begin{document}

\begin{introduction}
    %
\end{introduction}

\chapter {First}

text

\begin{figure}[h]
  \caption{Function.}
  \label{fig:function}
\end{figure}

\begin{conclusion}
    %
\end{conclusion}

\appendix

\end{document}

答案1

你可以做

\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\renewcommand\thefigure{\arabic{figure}}
\renewcommand\thetable{\arabic{table}}

(前两行需要chngcntr包),但您需要执行以下操作\AtBeginDocument

\documentclass[thesis=B,czech]{FITthesis}[2012/06/26]

\usepackage[utf8]{inputenc}

\usepackage{graphicx}

\department{text}
\title{text}
\authorGN{text}
\authorFN{text}
\authorWithDegrees{text}
\supervisor{text}
\acknowledgements{text}
\abstractCS{text}
\abstractEN{text}
\placeForDeclarationOfAuthenticity{text}
\declarationOfAuthenticityOption{1}
\keywordsCS{text}
\keywordsEN{text}

\usepackage{chngcntr}
\AtBeginDocument{
  \counterwithout{figure}{chapter}
  \counterwithout{table}{chapter}
  \renewcommand\thefigure{\arabic{figure}}
  \renewcommand\thetable{\arabic{table}}
}
\begin{document}

\begin{introduction}
    %
\end{introduction}

\chapter {First}

text

\begin{figure}[h]
  \caption{Function.}
  \label{fig:function}
\end{figure}

\chapter {First}

text

\begin{figure}[h]
  \caption{Function.}
  \label{fig:function}
\end{figure}

\begin{conclusion}
    %
\end{conclusion}

\appendix

\end{document}

相关内容