
私の文書では、このような公理を列挙したいと思います。
A1 this is the first axiom
A2 this is the second axiom
Now some text
A3 this is the third axiom
LaTeX ではどうすればよいですか?
答え1
公理や類似の要素は通常、定理環境として処理され、自動的に番号が付けられます。このアプローチを使用すると、プリアンブルに次のディレクティブを含めることができます。
\newtheorem{axiom}{A}
これにより、公理に「A 1」、「A 2」などのラベルが付けられます。
(「Axiom」と表記する方が一般的です。これは上記のコードの「A」を置き換えます。)
本当に「A1」のようにラベル付けし、「A」と数字の間にスペースを入れたくない場合は、状況が複雑になります。適切なコードを提供できるように、この要件を確認し、使用しているドキュメント クラスとパッケージを指定してください。
答え2
A と公理数の間にスペースを入れないことはそれほど難しくありません。
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsthm}
\usepackage{cleveref}
\crefname{axiom}{axiom}{axioms}
\Crefname{axiom}{Axiom}{Axioms}
\newtheorem{axiom}{}
\renewcommand\theaxiom{A\arabic{axiom}}
\begin{document}
\begin{axiom}\label{ax1}
This is the first axiom.
\end{axiom}
\begin{axiom}\label{ax2}
This is the second axiom.
\end{axiom}
\Cref{ax2} cannot be deduced from \cref{ax2}.
\end{document}