예를 들어 그룹의 카디널리티에 대한 일반적인 표기법을 입력하기 위해 Latex에서 두 수직선 사이에 공백을 넣는 방법은 무엇입니까?
답변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}