change shortcut for sets R, Q, and so on... to make them run in math or text env
This commit is contained in:
parent
8172d9d4b8
commit
349bb1e7c9
@ -61,18 +61,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
% ensembles
|
% ensembles
|
||||||
|
|
||||||
\NewDocumentCommand \R { s g } {
|
\NewDocumentCommand \R { s g } {
|
||||||
\IfBooleanTF {#1} {
|
\IfBooleanTF {#1} {
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{R} \setminus \{0\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{R} \setminus \{0\} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{R} \setminus \{0, #2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{R} \setminus \{0, #2\} \!\!}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{R} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{R} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{R} \setminus \{#2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{R} \setminus \{#2\} \!\!}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,60 +83,60 @@
|
|||||||
\NewDocumentCommand \Q { s g } {
|
\NewDocumentCommand \Q { s g } {
|
||||||
\IfBooleanTF {#1} {
|
\IfBooleanTF {#1} {
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{Q} \setminus \{0\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Q} \setminus \{0\} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{Q} \setminus \{0, #2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Q} \setminus \{0, #2\} \!\!}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{Q} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Q} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{Q} \setminus \{#2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Q} \setminus \{#2\} \!\!}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand \D { s g } {
|
\NewDocumentCommand \D { s g } {
|
||||||
\IfBooleanTF {#1} {
|
\IfBooleanTF {#1} {
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{D} \setminus \{0\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{D} \setminus \{0\} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{D} \setminus \{0, #2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{D} \setminus \{0, #2\} \!\!}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{D} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{D} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{D} \setminus \{#2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{D} \setminus \{#2\} \!\!}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand \Z { s g } {
|
\NewDocumentCommand \Z { s g } {
|
||||||
\IfBooleanTF {#1} {
|
\IfBooleanTF {#1} {
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{Z} \setminus \{0\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Z} \setminus \{0\} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{Z} \setminus \{0, #2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Z} \setminus \{0, #2\} \!\!}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{Z} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Z} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{Z} \setminus \{#2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{Z} \setminus \{#2\} \!\!}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand \N { s g } {
|
\NewDocumentCommand \N { s g } {
|
||||||
\IfBooleanTF {#1} {
|
\IfBooleanTF {#1} {
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{N} \setminus \{0\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{N} \setminus \{0\} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{N} \setminus \{0, #2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{N} \setminus \{0, #2\} \!\!}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\( \!\!\!\! \mathbb{N} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{N} \!\!}
|
||||||
}{
|
}{
|
||||||
\( \!\!\!\! \mathbb{N} \setminus \{#2\} \!\!\! \)
|
\ensuremath{\!\!\! \mathbb{N} \setminus \{#2\} \!\!}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user