diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex | 135 |
1 files changed, 3 insertions, 132 deletions
diff --git a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex index 258b6571d62..fb5316d2de4 100644 --- a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex +++ b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex @@ -296,139 +296,7 @@ stared version does not. \chapter{Various features regarding alignment} \label{cha:vari-feat-regard} -\section{Arrow between lines} -\label{sec:arrow-between-lines} -Sometimes lines in an alignment are related in the sense of \emph{from -which it follows}, usually indicated by $\Rightarrow$. We would like -to place this between the lines in a nice way. The following macro is -due to Morten Høgholm. -\begin{syntax} - \markup{ArrowBetweenLines}\oarg{arrow} - \markup{ArrowBetweenLines*}\oarg{arrow} -\end{syntax} -Simply hold back one column of alignment for the arrow: -\begin{sourcedisplay} -\begin{alignat}{2} - && f(x) & = \dbx[2cm] \\ - \ArrowBetweenLines - && g(x) & = - \dbx[2cm] \\ - \ArrowBetweenLines[\Downarrow] - && h(x) & = 0 -\end{alignat} -\end{sourcedisplay} -Note the height of the arrow line and that the line automatically does -not contain equation numbers. The stared version can be used to place -the arrows on the right. Though several alignment columns on each line -might become a problem. -\begin{sourcedisplay} -\begin{alignat}{2} - f(x) & = \dbx[2cm] \\ - \ArrowBetweenLines* - g(x) & = - \dbx[2cm] \\ - \ArrowBetweenLines*[\Downarrow] - h(x) & = 0 -\end{alignat} -\end{sourcedisplay} -\noindent\note{This macro have been added to the mathtools package, and will be - available with the next mathtools release, afterwhich it will be - removed from this package.} - - - -\section{Switch dead space} -\label{sec:switch-dead-space} - -The standard \markup[nomk,env]{equation} environment has the feature -that if the text before it is short and the formula likewise, then the -drop between the preceding text and the formula will be -\markup[length,nomk]{abovedisplayshortskip} instead of the usual -\markup[length,nomk]{abovedisplayskip}. The macros from the -\markup[nomk,sty]{amsmath} package does not have this feature (except -\markup[nomk,env]{equation*}). -\begin{sourcedisplay} -text -\[ a=b \] -text -\begin{align*} - a=b -\end{align*} -\end{sourcedisplay} -The macro \markup{SwapDeadSpace} can simulate this feature -\begin{sourcedisplay} -text -\[ a=b \] -text -\begin{align*} - \SwapDeadSpace - a=b -\end{align*} -\end{sourcedisplay} - -\section{Left alignment} -\label{sec:left-alignment} - -In \cite{swanson}, Ellen Swanson presents some recommendations -regarding how to arrange displayed formulas. One thing she recommends -is alignment to the left and with all subsequent lines indented by -2\,em. -\begin{align*} -\malign[-2pt]{2} - &\dbx[5cm]=\dbx[4cm]\\ - &\qquad{}=\dbx[6cm]\\ - &\qquad{}=\dbx[5cm]\,. -\end{align*} -or -\begin{align*} -\malign[-2pt]{2} - &\dbx[8cm]\\ - &\qquad{}=\dbx[4cm]\\ - &\qquad{}=\dbx[6cm]\,. -\end{align*} -or -\begin{align*} -\malign[-2pt]{2} - &\dbx[5cm]=\dbx[4cm]\\ - &\qquad{}+\dbx[6cm]\\ - &\qquad{}\times\dbx[5cm]\,. -\end{align*} -and -\begin{align*} -\malign[-2pt]{2} - &\dbx[8cm]\\ - &\qquad{}-\dbx[4cm]\\ - &\qquad{}\otimes\dbx[6cm]\,. -\end{align*} -But having to do all those indentations by hand quickly becomes quite -tedious. Instead, align everything to the left, and pull back the first -line. This is what the following macro does. - -\note{Please note that this macro have been added to the -mathtools package and will be available with the next release of -mathtools, afterwhich it will be removed from this package.} -\begin{syntax} - \markup{MoveEqLeft}\oarg{number} -\end{syntax} -The optional argument is a number (without unit, em will be used) -indicating the amount of indentation. 2\,em is the default. Now simply -use \markup[nomk]{MoveEqLeft} instead of the >>\texttt{\&}<< on the -first line. -\begin{sourcedisplay} -\begin{align*} - \MoveEqLeft f(x) + g(x) + \dbx[4cm] \\ - & = \dbx[5cm] \\ - & = \dbx[5cm] -\end{align*} -\end{sourcedisplay} -The optional argument is usually used whenever the alignment is moved -to the right of the equal signs. -\begin{sourcedisplay} -\begin{align*} - \MoveEqLeft[3] f(x) + g(x) + \dbx[4cm] \\ - ={} & \dbx[5cm] \\ - & + \dbx[5cm] -\end{align*} -\end{sourcedisplay} \section{Alignment with material encased in delimiters on different lines} \label{sec:alignm-with-mater} @@ -500,6 +368,9 @@ constructions may not be used. \chapter{Declaring sets} \label{cha:declaring-sets} +\emph{This still needs some work} + + It is a good idea to avoid the one (or two) letter shortcuts for sets etc., e.g.\ \verb+\R+ for \verb+\mathbb{R}+, it can cause problems when co-writing articles with people with other naming habits. |