Add vertical spaces commands and column shortcut
This commit is contained in:
parent
67cef960a6
commit
a752a525c9
@ -42,6 +42,11 @@
|
|||||||
\newcommand{\bd}{\begin{description}}
|
\newcommand{\bd}{\begin{description}}
|
||||||
\newcommand{\ed}{\end{description}}
|
\newcommand{\ed}{\end{description}}
|
||||||
|
|
||||||
|
%% columns
|
||||||
|
%%
|
||||||
|
\newcommand{\bc}{\begin{columns}}
|
||||||
|
\newcommand{\ec}{\end{columns}}
|
||||||
|
|
||||||
%% questions
|
%% questions
|
||||||
%%
|
%%
|
||||||
\newcommand{\bq}{\begin{questions}}
|
\newcommand{\bq}{\begin{questions}}
|
||||||
@ -57,6 +62,18 @@
|
|||||||
%
|
%
|
||||||
%
|
%
|
||||||
|
|
||||||
|
%% positive skip.
|
||||||
|
%%
|
||||||
|
\NewDocumentCommand \pskip { G{.2} } {%
|
||||||
|
\vspace{+#1cm}
|
||||||
|
}
|
||||||
|
|
||||||
|
%% negative skip.
|
||||||
|
%%
|
||||||
|
\NewDocumentCommand \nskip { G{.8} } {%
|
||||||
|
\vspace{-#1cm}
|
||||||
|
}
|
||||||
|
|
||||||
%% another shortcut to whiting text.
|
%% another shortcut to whiting text.
|
||||||
%%
|
%%
|
||||||
\NewDocumentCommand \ghost { } {%
|
\NewDocumentCommand \ghost { } {%
|
||||||
@ -150,14 +167,30 @@
|
|||||||
\NewDocumentCommand \R { s g } {
|
\NewDocumentCommand \R { s g } {
|
||||||
\IfBooleanTF {#1} {
|
\IfBooleanTF {#1} {
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
|
% \mathchoice{\! \mathbb{R} \setminus \{0\} \!}
|
||||||
|
% {\ensuremath{ \mathbb{R} \setminus \{0\} }}
|
||||||
|
% {\! \mathbb{R} \setminus \{0\} \!}
|
||||||
|
% {\! \mathbb{R} \setminus \{0\} \!}
|
||||||
\!\!\!\!\ensuremath{\mathbb{R} \setminus \{0\}}\!\!\!
|
\!\!\!\!\ensuremath{\mathbb{R} \setminus \{0\}}\!\!\!
|
||||||
}{
|
}{
|
||||||
|
% \mathchoice{\! \mathbb{R} \setminus \{0, #2\} \!}
|
||||||
|
% {\ensuremath{ \mathbb{R} \setminus \{0, #2\} }}
|
||||||
|
% {\! \mathbb{R} \setminus \{0, #2\} \!}
|
||||||
|
% {\! \mathbb{R} \setminus \{0, #2\} \!}
|
||||||
\!\!\!\!\ensuremath{\mathbb{R} \setminus \{0, #2\}}\!\!\!
|
\!\!\!\!\ensuremath{\mathbb{R} \setminus \{0, #2\}}\!\!\!
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
\!\!\!\!\ensuremath{\mathbb{R}}\!\!\!
|
% \mathchoice{\mathbb{R}}
|
||||||
|
% {\ensuremath{ \mathbb{R} }}
|
||||||
|
% {\mathbb{R}}
|
||||||
|
% {\mathbb{R}}
|
||||||
|
\!\!\!\!\ensuremath{ \mathbb{R} }\!\!\!
|
||||||
}{
|
}{
|
||||||
|
% \mathchoice{\mathbb{R} \setminus \{#2\}}
|
||||||
|
% {\ensuremath{ \mathbb{R} \setminus \{#2\} }}
|
||||||
|
% {\mathbb{R} \setminus \{#2\}}
|
||||||
|
% {\mathbb{R} \setminus \{#2\}}
|
||||||
\!\!\!\!\ensuremath{\mathbb{R} \setminus \{#2\}}\!\!\!
|
\!\!\!\!\ensuremath{\mathbb{R} \setminus \{#2\}}\!\!\!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -239,6 +272,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% math letter used as curve name
|
||||||
|
%
|
||||||
|
\NewDocumentCommand \mscr{ g } {
|
||||||
|
$ \mathscr{#1} $
|
||||||
|
}
|
||||||
|
|
||||||
|
% point
|
||||||
|
%
|
||||||
|
\NewDocumentCommand \point{ G{A} G{0} G{0} } {
|
||||||
|
$ #1\big(#2\ ;\ #3\big) $
|
||||||
|
}
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user