improve shortcut for printing R set in math mode
This commit is contained in:
parent
f9593f3f66
commit
7ab237ce4d
@ -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} \)
|
||||
|
Loading…
Reference in New Issue
Block a user