Como colocar espaços entre duas linhas verticais no Latex para, por exemplo, digitar a notação usual de cardinalidade de um grupo?
Responder1
Não colocar a \cdot
entre os delimitadores do argumento levará a um significado ambíguo. Considere o seguinte exemplo:
\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}
Responder2
Só para completar tudo
\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}
Responder3
Outra variante deA resposta de Henriqueusando \dots
.
\documentclass[a5paper]{article}
\usepackage{amsmath}
\begin{document}
where $\lvert\dots\rvert$ denotes the cardinality of a set:
\[ \aleph = \lvert A\rvert \]
\end{document}