summaryrefslogtreecommitdiff
path: root/macros/math.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/math.sty')
-rw-r--r--macros/math.sty14
1 files changed, 11 insertions, 3 deletions
diff --git a/macros/math.sty b/macros/math.sty
index 17cb955..9b9446a 100644
--- a/macros/math.sty
+++ b/macros/math.sty
@@ -10,7 +10,7 @@ Simple shortcuts I use when write math]
% Upright character for Euler's constant using \e .
\newcommand*{\e}{\mathop{}\!\mathrm{e}}
-% Makes variable changes for calculus easily explicit in align mode.
+% Makes variable changes for calculus easily explicit in math mode.
% cdv stands for "Changement de variable".
% Here is an example where u=sin(x) and du=-cos(x):
% \cdv{ u }{ \sin(x) }{ -\cos(x) }
@@ -18,7 +18,15 @@ Simple shortcuts I use when write math]
% that equations such as u= and du= do not get numbered.
\newcommand*{\cdv}[3]{\mathop{}\!
\mathrm{Changement\ de\ variable:}&\nonumber\\
- \ #1 &= #2\nonumber \\
- \d{#1} &= #3\nonumber
+ \ #1 = #2\nonumber \\
+ \d{#1} = #3\nonumber
}
+% Environment to explaing the meaning of the variables contained in an equation.
+% TODO: Explain this macro
+\RequirePackage{tabularx}
+\newenvironment{conditions}[1][Où:]
+ {#1 \par\vspace{\abovedisplayskip}\noindent
+ \tabularx{\columnwidth}{>{$}l<{$} @{${}={}$} >{\raggedright\arraybackslash}X}}
+ {\endtabularx\par\vspace{\belowdisplayskip}}
+