たとえば、グループの基数の通常の表記を入力する場合など、LaTeX で 2 本の垂直線の間にスペースを入れるにはどうすればよいですか?
答え1
\cdot
引数の区切り文字の間にを入れないと、意味があいまいになります。次の例を考えてみましょう。
\documentclass{article}
\pagestyle{empty}% for cropping
\begin{document}
\ldots where $|\cdot|$ denotes the cardinality of a set\ldots
\[ \aleph = |A| \]
\ldots where $|\ |$ denotes the cardinality of a set\ldots
\[ \aleph = |\ |A \mbox{ or } \aleph = A|\ | \mbox{ or } \aleph = |A| \mbox{?} \]
\ldots where $||$ denotes the cardinality of a set\ldots
\ldots where $\|$ is the delimiter for the 2-norm\ldots
\[ \| v \| \equiv \sqrt{\langle v, v\rangle} \]
\end{document}
答え2
すべてを完了するために
\documentclass[a4paper]{memoir}
\usepackage{mathtools,etoolbox}
\DeclarePairedDelimiterX\Card[1]\lvert\rvert{
\ifblank{#1}{{-}}{#1}
}
\begin{document}
where $\Card{}$ denotes the cardinality of a set:
\[ \aleph = \Card{A} \]
\end{document}
答え3
別のバリエーションアンリの答えを使用します\dots
。
\documentclass[a5paper]{article}
\usepackage{amsmath}
\begin{document}
where $\lvert\dots\rvert$ denotes the cardinality of a set:
\[ \aleph = \lvert A\rvert \]
\end{document}