summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/mandi/mandi.sty60
1 files changed, 33 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/latex/mandi/mandi.sty b/Master/texmf-dist/tex/latex/mandi/mandi.sty
index 0338670e13c..5ab94ed8695 100644
--- a/Master/texmf-dist/tex/latex/mandi/mandi.sty
+++ b/Master/texmf-dist/tex/latex/mandi/mandi.sty
@@ -28,7 +28,7 @@
%% vdemo.py.
%% ---------------------------------------------------------------------------
%%
-%%\ProvidesPackage{mandi}[2018/03/20 2.7.2 Macros for physics and astronomy]
+%%\ProvidesPackage{mandi}[2018/12/30 2.7.3 Macros for physics and astronomy]
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\RequirePackage{amsmath}
@@ -124,9 +124,9 @@
\DeclareOption{useradians}{\setboolean{@optuseradians}{true}}
\ProcessOptions\relax
\newcommand*{\mandiversion}{\ifmmode%
- 2.7.2\mbox{ dated }2018/03/20%
+ 2.7.3\mbox{ dated }2018/12/30%
\else%
- 2.7.2 dated 2018/03/20%
+ 2.7.3 dated 2018/12/30%
\fi
}%
\typeout{ }
@@ -196,6 +196,7 @@
\newcommand*{\reciprocalsquared}{\ensuremath{^{-2}}} % postfix -2
\newcommand*{\reciprocalcubed}{\ensuremath{^{-3}}} % postfix -3
\newcommand*{\reciprocalquarted}{\ensuremath{^{-4}}} % postfix -4
+\newcommand*{\emptyunit}{\ensuremath{\Box}}
\newcommand*\mi@exchangeargs[2]{#2#1}%
\newcommand*\mi@name{}%
\long\def\mi@name#1#{\romannumeral0\mi@innername{#1}}%
@@ -1178,6 +1179,7 @@
\rowvector[,]{\msup{#2}{0},\msup{#2}{1},\msup{#2}{2},\msup{#2}{3}}%
}%
}%
+\newcommand*{\anglebetween}[2]{\ensuremath{\theta_{\vect{#1},\vect{#2}}}}
\newcommand*{\bra}[1]{\ensuremath{\left\langle{#1}\right\lvert}}
\newcommand*{\ket}[1]{\ensuremath{\left\lvert{#1}\right\rangle}}
\newcommand*{\bracket}[2]{\ensuremath{\left\langle{#1}\!\!\right.%
@@ -1580,25 +1582,26 @@
\frac{\partial{#1}}{\partial{#2}}}}
\newcommand*{\ppbyp}[2]{\ensuremath{%
\frac{\partial^{2}{#1}}{\partial{#2}^{2}}}}
-\newcommand*{\seriesfofx}{\ensuremath{%
- f(x) \approx f(a) + \frac{f^\prime (a)}{1!}(x-a) + \frac{f^{\prime\prime}(a)}{2!}
- (x-a)^2 + \frac{f^{\prime\prime\prime}(a)}{3!}(x-a)^3 + \ldots}\xspace}
-\newcommand*{\seriesexpx}{\ensuremath{%
- e^x \approx 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \ldots}\xspace}
-\newcommand*{\seriessinx}{\ensuremath{%
- \sin x \approx x - \frac{x^3}{3!} + \frac{x^5}{5!} - \ldots}\xspace}
-\newcommand*{\seriescosx}{\ensuremath{%
- \cos x \approx 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \ldots}\xspace}
-\newcommand*{\seriestanx}{\ensuremath{%
- \tan x \approx x + \frac{x^3}{3} + \frac{2x^5}{15} + \ldots}\xspace}
-\newcommand*{\seriesatox}{\ensuremath{%
- a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + %
- \ldots}\xspace}
-\newcommand*{\serieslnoneplusx}{\ensuremath{%
- \ln(1 \pm x) \approx \pm\; x - \frac{x^2}{2} \pm \frac{x^3}{3} - %
- \frac{x^4}{4} \pm \ldots}\xspace}
-\newcommand*{\binomialseries}{\ensuremath{%
- (1 + x)^n \approx 1 + nx + \frac{n(n-1)}{2!}x^2 + \ldots}\xspace}
+\newcommandx{\seriesfofx}[1][1=x,usedefault]{\ensuremath{%
+ f({#1}) \approx f(a) + \frac{f^\prime (a)}{1!}({#1}-a) +
+ \frac{f^{\prime\prime}(a)}{2!}({#1}-a)^2 +
+ \frac{f^{\prime\prime\prime}(a)}{3!}({#1}-a)^3 + \ldots}\xspace}
+\newcommandx{\seriesexpx}[1][1=x,usedefault]{\ensuremath{%
+ e^{#1} \approx 1 + {#1} + \frac{{#1}^2}{2!} + \frac{{#1}^3}{3!} + \ldots}\xspace}
+\newcommandx{\seriessinx}[1][1=x,usedefault]{\ensuremath{%
+ \sin {#1} \approx {#1} - \frac{{#1}^3}{3!} + \frac{{#1}^5}{5!} - \ldots}\xspace}
+\newcommandx{\seriescosx}[1][1=x,usedefault]{\ensuremath{%
+ \cos {#1} \approx 1 - \frac{{#1}^2}{2!} + \frac{{#1}^4}{4!} - \ldots}\xspace}
+\newcommandx{\seriestanx}[1][1=x,usedefault]{\ensuremath{%
+ \tan {#1} \approx {#1} + \frac{{#1}^3}{3} + \frac{2{#1}^5}{15} + \ldots}\xspace}
+\newcommandx{\seriesatox}[1][1=x,usedefault]{\ensuremath{%
+ a^{#1} \approx 1 + {#1} \ln{a} + \frac{({#1} \ln a)^2}{2!} +
+ \frac{({#1} \ln a)^3}{3!} + \ldots}\xspace}
+\newcommandx{\serieslnoneplusx}[1][1=x,usedefault]{\ensuremath{%
+ \ln(1 \pm {#1}) \approx \pm\; {#1} - \frac{{#1}^2}{2} \pm \frac{{#1}^3}{3} - %
+ \frac{{#1}^4}{4} \pm \ldots}\xspace}
+\newcommandx{\binomialseries}[1][1=x,usedefault]{\ensuremath{%
+ (1 + {#1})^n \approx 1 + n{#1} + \frac{n(n-1)}{2!}{#1}^2 + \ldots}\xspace}
\newcommand*{\gradient}{\ensuremath{\boldsymbol{\nabla}}}
\newcommand*{\divergence}{\ensuremath{\boldsymbol{\nabla}\bullet}}
\newcommand*{\curl}{\ensuremath{\boldsymbol{\nabla\times}}}
@@ -1998,11 +2001,14 @@
\DbyD{\mathcal{L}}{#1}-\DbyDt\inparens{\DbyD{\mathcal{L}}{\dot{#1}}} = 0}}
\newcommand*{\vpythonline}{\lstinline[style=vpython]}
\newcommand*{\glowscriptline}{\lstinline[style=vpython]}
-\lstnewenvironment{vpythonblock}[1][]{\lstset{style=vpython,caption={#1}}}{}
-\lstnewenvironment{glowscriptblock}[1][]{\lstset{style=vpython,caption={#1}}}{}
-\newcommand*{\vpythonfile}[1][]{\newpage\lstinputlisting[style=vpython,caption={#1}]}
-\newcommand*{\glowscriptfile}[1][]{%
- \newpage\lstinputlisting[style=vpython,caption={#1}]}
+\lstnewenvironment{vpythonblock}[2]{%
+ \lstset{style=vpython,caption={#1},label={#2}}}{}
+\lstnewenvironment{glowscriptblock}[2]{%
+ \lstset{style=vpython,caption={#1},label={#2}}}{}
+\newcommand*{\vpythonfile}[3]{%
+ \newpage\lstinputlisting[style=vpython,caption={#1},label={#2}]{#3}}
+\newcommand*{\glowscriptfile}[3]{%
+ \newpage\lstinputlisting[style=vpython,caption={#1},label={#2}]{#3}}
\newcommandx{\emptyanswer}[2][1=0.80,2=0.1,usedefault]
{\begin{minipage}{#1\textwidth}\hfill\vspace{#2\textheight}\end{minipage}}
\newenvironmentx{activityanswer}[5][1=white,2=black,3=black,4=0.90,%