Latex - 获取特定问题编号

发布于 2024-08-05 01:24:11 字数 207 浏览 4 评论 0原文

我想做以下...问题3.

在乳胶中我使用以下

          \newtheorem{prob}{Problem}
          \begin{prob} 
          ...
          \end{prob}

它开始如下问题1.,是否可以解决问题3.相反,...你能告诉我怎么做吗?多谢!

i wanted to do the following... Problem 3.

in latex i use the following

          \newtheorem{prob}{Problem}
          \begin{prob} 
          ...
          \end{prob}

it starts as follows Problem 1., is it possible to to Problem 3. instead,... can you show me how? thanks a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热血少△年 2024-08-12 01:24:11

使用 \setcounter 宏:

\setcounter{计数器}{}

请注意 value 是从零开始的,因此问题 1 对应的计数器值为 0。

例如,从问题 3 开始:

\newtheorem{prob}{Problem}
\setcounter{prob}{2}
\begin{prob}
  ... 
\end{prob}

Use the \setcounter macro:

\setcounter{counter}{value}

Be careful that the value is zero-based, so Problem 1 corresponds to a counter value of 0.

For example, to start with Problem 3:

\newtheorem{prob}{Problem}
\setcounter{prob}{2}
\begin{prob}
  ... 
\end{prob}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文