首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何让\counterwithout in Latex工作?

如何让\counterwithout in Latex工作?
EN

Stack Overflow用户
提问于 2019-07-02 21:44:56
回答 1查看 1.1K关注 0票数 0

我正试着把我的数字编号为1、2、3等等。尽管我使用的是\counterwithout{figure}{section},但LaTeX只使用节号(例如1.1、1.2等)来计算它们。没有错误信息。可能的问题是什么?

代码语言:javascript
复制
\usepackage{chngcntr}
\counterwithout{figure}{section}
\usepackage[pdfborder={0 0 0}]{hyperref}

\begin{document}

\input{chapter/01_introduction}
%the figure is in a subsection as part of the introduction

\end{document}

01_introduction文件如下所示:

代码语言:javascript
复制
% !TEX root = ../root.tex
\section{Introduction}
\subsectiction{Title of the subsection}

\begin{figure}[htbp]
\begin{center}
\includegraphics[width=\textwidth]{chapter/figures/fig_bsp.png}
\captionof{figure}{caption of the figure}
\label{fig:1}
\end{center}
\end{figure}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-09 23:14:34

在制作最小的工作示例时,我找出了我的错误:我使用了一个包含:'\renewcommand{\thefigure}{\thesection.\arabic{figure}}‘的模板,它阻止了我的计算为1,2,3。谢谢你的帮助!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56853929

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档