点出现在章节名称之前

点出现在章节名称之前

我正在使用 ICML 样式编译我的文档 - 标题如下。我的章节名称前面显示“。”,例如“.Introduction”。这是怎么回事?


% Recommended, but optional, packages for figures and better typesetting:
\usepackage{microtype}
\usepackage{graphicx}
%\usepackage{subfigure}
\usepackage{booktabs} % for professional tables

% hyperref makes hyperlinks in the resulting PDF.
% If your build breaks (sometimes temporarily if a hyperlink spans a page)
% please comment out the following usepackage line and replace
% \usepackage{icml2021} with \usepackage[nohyperref]{icml2021} above.
\usepackage{hyperref}

% Attempt to make hyperref and algorithmic work together better:
\newcommand{\theHalgorithm}{\arabic{algorithm}}

% Use the following line for the initial blind version submitted for review:
\usepackage{icml2021}

% If accepted, instead use the following line for the camera-ready submission:
%\usepackage[accepted]{icml2021}


% DO NOT CHANGE THIS

% THIS IS OUR "EXTRA" SECTION 
\usepackage{xr}
\externaldocument[sup-]{supplementary-icml}

\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc}    % use 8-bit T1 fonts

\usepackage{booktabs}       % professional-quality tables
\usepackage{amsfonts}       % blackboard math symbols - THIS MAY CAUSE PROBLEMS
\usepackage{nicefrac}       % compact symbols for 1/2, etc.
\usepackage{microtype}      % microtypography
\usepackage{multirow}               % for multi-row labels
\usepackage{subfig}                 % for laying out multi-panel figures and tables 
\usepackage{cancel}                 % for crossing out characters
\usepackage{amsmath}                % for splitting multi-line equations
\usepackage{placeins}               % for table and figure positioning
\usepackage{mathtools}          % for \vdotswithin{}
\usepackage{resizegather}   % for gathering multi-lines to one line
%package for graph layout
\usepackage[pdf]{graphviz}  

\usepackage{amsthm}

\setcounter{secnumdepth}{0} %May be changed to 1 or 2 if section numbers are desired.```

答案1

您将secnumdepth计数器设置为0。这意味着所有 0 级或更高级别的部门单元(向下计数:-1、-2)都将被编号,而较低级别的单元(1、2、3 级,...)将保持未编号状态。在大多数情况下(包括这种情况),\section设置为 1 级,\subsection设置为 2 级,等等。因此,\setcounter{secnumdepth}{0}会从文章中的任何部门单元中删除编号。如果您不想让部门单元未编号,请使用其带星号的替代方案;即,\section*\subsection*,...

无论如何,因为这是一份期刊/文章的投稿,坚持使用模板,而不改变太多的内部结构。

相关内容