From d35a187b234cd906cc8be864aa2103bfed039aeb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 Nov 2008 00:46:43 +0000 Subject: mathmode update (22nov08) git-svn-id: svn://tug.org/texlive/trunk@11401 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-doc/doc/english/mathmode/Mathmode.tex | 38 +++++++++++++--------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'Master/texmf-doc/doc/english/mathmode/Mathmode.tex') diff --git a/Master/texmf-doc/doc/english/mathmode/Mathmode.tex b/Master/texmf-doc/doc/english/mathmode/Mathmode.tex index dcb104b4128..b05a363dce3 100644 --- a/Master/texmf-doc/doc/english/mathmode/Mathmode.tex +++ b/Master/texmf-doc/doc/english/mathmode/Mathmode.tex @@ -20,6 +20,7 @@ % \author{Herbert Vo\ss\footnote{\sloppy Thanks for the feedback to: Hendri Adriaens; Juan Mari Alberdi; + Luciano Battaia; Heiko Bauke; Neal Becker; Andrea Blomenhofer; Alexander Boronka; Walter Brown; Christian Faulhammer; Jos\'e{} Luis G\'omez Dans; Zongbao Fang; @@ -80,11 +81,11 @@ in directory \url{CTAN://macros/latex/base/lppl.txt}. \clearpage -\begingroup -\fancypagestyle{plain} +%\fancypagestyle{plain} \tableofcontents{} -\endgroup +\clearpage +\pagestyle{fancy} \part{Standard \protect\LaTeX{} math mode} \section{Introduction} @@ -6732,26 +6733,33 @@ For typesetting integrals\index{Integral} or differential equations\index{differ it makes sense to define the following short macros: \begin{lstlisting} +\newcommand*{\diff}{\mathop{}\!\mathrm{d}} +\end{lstlisting} + +\newcommand*{\diff}{\mathop{}\!\mathrm{d}} + + +\iffalse \newcommand*\dy{\,\mathrm{d}y} \newcommand*\dx{\,\mathrm{d}x} \newcommand*\dyx{\,\frac{\mathrm{d}y}{\mathrm{d}x}} \newcommand*\ds{\,\mathrm{d}s} \newcommand*\dt{\,\mathrm{d}t} \newcommand*\dst{\,\frac{\mathrm{d}s}{\mathrm{d}t}} -\end{lstlisting} +\fi \begin{LTXexample}[preset=\raggedright,width=0.4\linewidth] \begin{align*} F(x) &= \int\!f(x)\dx\\ v(t) &= \dst\\ -a(t) &= \frac{\mathrm{d}^2s}{\mathrm{d}t^2} +a(t) &= \frac{\diff{}^2s}{\diff t^2} \end{align*} \end{LTXexample} \begin{LTXexample}[preset=\raggedright,width=0.4\linewidth] \begin{align*} -G(t) &= \underbrace{\,\int\cdots\!\int\!\!}_D\;\dx\dy\ldots\\ -u_C(t) &= \int\!\,i_C(t)\dt +G(t) &= \underbrace{\,\int\cdots\!\int\!\!}_D\;\diff x\diff y\ldots\\ +u_C(t) &= \int\!\,i_C(t)\diff t \end{align*} \end{LTXexample} @@ -6836,7 +6844,7 @@ I(z)=\delta_{0}\left\{% \end{array}\right. \end{equation} -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} \addtolength{\arraycolsep}{-3pt} I(z)=\delta_{0}\left\{% \begin{array}{lcrcl} @@ -6870,7 +6878,7 @@ use the \verb+tabular+, the \verb+tabularx+ and the \verb+array+ environment. \end{tabular} \bigskip -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} \begin{tabular}{rc} \ldelim\{{2}{2.75cm}[some text here] & \parbox{{\linewidth-3cm-4\tabcolsep}}{ @@ -6891,7 +6899,7 @@ use the \verb+tabular+, the \verb+tabularx+ and the \verb+array+ environment. \end{tabularx} \bigskip -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} \begin{tabularx}{\linewidth}{rXc} \ldelim\{{2}{2.75cm}[some text here] & $x=2\quad\text{if }y>2$ &\refstepcounter{equation}(\theequation)\\ @@ -6911,7 +6919,7 @@ use the \verb+tabular+, the \verb+tabularx+ and the \verb+array+ environment. \bigskip -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} \[ \begin{array}{rc@{\qquad}c} \ldelim\{{2}{2.75cm}[some text here] @@ -7003,7 +7011,7 @@ S & = & \left(S_{k-1},S_{k-2},...,S_{1},S_{0}\right) \end{array} \end{equation} -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} \begin{equation} \begin{array}{rcl} \underline{RS} & = & \left(\begin{array}{cccccccc} @@ -7047,7 +7055,7 @@ $\lim\limits_{n->\infty}q^{n}=\left\{% \end{array}\right.$ \medskip -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} $\lim\limits_{n->\infty}q^{n}=\left\{% \begin{array}{lc@{\kern2pt}c@{\kern2pt}r} \textrm{divergent}\ & q & \le & -1\\ @@ -7087,7 +7095,7 @@ a_{21} & a_{22} \\ \right) \] -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} \[ \left( \begin{array}{c@{}c@{}c} @@ -7127,7 +7135,7 @@ Y^1= \end{array} \] -\begin{lstlisting}[xrightmargin=-\marginparwidth] +\begin{lstlisting} \[ Y^1= \begin{array}{c} -- cgit v1.2.3