improve shortcut for printing R set in math mode

This commit is contained in:
Jeff Lance 2016-08-15 00:26:16 +02:00
parent f9593f3f66
commit 7ab237ce4d

View File

@ -52,8 +52,20 @@
}
% ensembles
\NewDocumentCommand \R { } {
\NewDocumentCommand \R { s g } {
\IfBooleanTF {#1} {
\IfNoValueTF {#2} {
\( \mathbb{R} \setminus \{0\} \)
}{
\( \mathbb{R} \setminus \{0, #2\} \)
}
}{
\IfNoValueTF {#2} {
\( \mathbb{R} \)
}{
\( \mathbb{R} \setminus \{#2\} \)
}
}
}
\NewDocumentCommand \RQ { } {
\( \mathbb{R} \setminus \mathbb{Q} \)