\begin{axiom} (blah)
\end{axiom}
给出“Axiom 1”。我该如何做才能得到“Axiom 1 (blah)。”?标签可能不正确。我今天才开始使用 Latex。
答案1
\documentclass{article}
\usepackage{amsthm}
\newcounter{x}\setcounter{x}{1}
\newtheorem{inneraxiom}{Axiom}
\newenvironment{axiom}[1]
{\renewcommand\theinneraxiom{\arabic{x} (#1)}\inneraxiom\stepcounter{x}}
{\endinneraxiom}
\begin{document}
\begin{axiom}{blah}
....
\end{axiom}
\end{document}