summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/correctmathalign/correctmathalign.tex
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-04-04 07:25:36 +0000
committerNorbert Preining <preining@logic.at>2017-04-04 07:25:36 +0000
commitae97ee7df8f95817a090a4a58faa2776a286c3d7 (patch)
tree3aacaa5f4772171cf5fa54761db29d768145f86c /Master/texmf-dist/doc/latex/correctmathalign/correctmathalign.tex
parent5f75f308456b141211e9bbd313ac641ab977bb0f (diff)
correctmathalign (new 4Apr)
git-svn-id: svn://tug.org/texlive/trunk@43690 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/correctmathalign/correctmathalign.tex')
-rw-r--r--Master/texmf-dist/doc/latex/correctmathalign/correctmathalign.tex125
1 files changed, 125 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/correctmathalign/correctmathalign.tex b/Master/texmf-dist/doc/latex/correctmathalign/correctmathalign.tex
new file mode 100644
index 00000000000..eaa7dcf562a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/correctmathalign/correctmathalign.tex
@@ -0,0 +1,125 @@
+\documentclass{article}
+
+\usepackage{graphicx}
+\usepackage{lmodern}
+\usepackage[T1]{fontenc}
+\usepackage{amsmath}
+\usepackage{correctmathalign}
+
+\title{Correction Spacings: eqnarray(*), aligned, alignedat, and gathered}
+\author{Yuwsuke Kieda}
+\date{2017/04/04 v1.1}
+
+\renewcommand\labelitemi{\textendash}
+
+\begin{document}
+\maketitle
+
+\section{Descriptions}
+
+We will realignment some expression environments spacing.
+It is a correction in the horizontal spacing of the alignment.
+
+\section{Usage}
+
+\subsection{Preamble}
+
+\begin{verbatim}
+\usepackage{amsmath}
+\usepackage{correctmathalign}
+\end{verbatim}
+
+Remark: amsmath package is optional: if you use aligned, alignedat, or gathered environments.
+
+Remark: The problem with the amsmath package (2016/11/05 2.16a) was solved by the original. See the options \texttt{alignedleftspaceyes}, \texttt{alignedleftspaceno}, and \texttt{alignedleftspaceyesifneg}.
+We dealt with versions prior to 2016/03/10 v2.15b.
+
+\subsection{Options}
+
+\begin{itemize}
+ \item \verb!latexorg!: original behavior of LaTeX/amsmath package
+ \item \verb!fleqn!: corresponds to class file and/or amsmath package's fleqn option
+\end{itemize}
+
+\section{File with Original Definitions}
+
+\begin{itemize}
+ \item \verb!eqnarray!: latex.ltx
+ \item \verb!\start@aligned! and \verb!\gathered!: amsmath.sty (before 2016/03/10 v2.15b)
+\end{itemize}
+
+\section{License}
+
+BSD 2-Clause License
+
+\section{Samples}
+
+Cf.\ defaults of \LaTeX{}\ and \texttt{amsmath.sty} before 2016/03/10 v2.15b (Figures~\ref{fig1} and~\ref{fig2}).
+
+\setbox9\hbox{Figure 1: \texttt{eqnarray*} environment}%
+\setbox8\hbox{Figure 2: \texttt{aligned} environment}%
+\begin{figure}
+ \centering
+ \begin{minipage}[t]{\wd9}
+ \centering
+ \includegraphics{eqnarray-org.pdf}
+ \caption{\texttt{eqnarray*} environment by \LaTeX{}\ default.}
+ \label{fig1}
+ \end{minipage}\qquad
+ \begin{minipage}[t]{\wd8}
+ \centering
+ \includegraphics{aligned-org.pdf}
+ \caption{\texttt{aligned} environment by \texttt{amsmath.sty} default (before 2016/03/10 v2.15b).}
+ \label{fig2}
+ \end{minipage}
+\end{figure}
+
+\noindent
+\begin{center}
+ \makeatletter\@wholewidth0pt\makeatother
+ \frame{%
+ \begin{minipage}{\wd9}
+ \[
+ \mathrm{I} = \mathrm{H}(x + 1)
+ \]
+ \begin{eqnarray*}
+ \mathrm{I} &=& \mathrm{H}(x)\\
+ &=& \mathrm{H}(x + 1)
+ \end{eqnarray*}
+ \end{minipage}}\qquad
+ \frame{%
+ \begin{minipage}{\wd8}
+ \begin{align*}
+ \mathrm{I} & \begin{aligned}[t]
+ &= \mathrm{H}(x)\\
+ &= \mathrm{H}(x + 1)
+ \end{aligned}\\
+ \mathrm{I} &= \mathrm{H}(x)\\
+ &= \mathrm{H}(x + 1)
+ \end{align*}
+ \end{minipage}}
+\end{center}
+
+
+\subsection{Use \LaTeX{}\ code}
+
+\begin{verbatim}
+\[
+ \mathrm{I} = \mathrm{H}(x + 1)
+\]
+\begin{eqnarray*}
+ \mathrm{I} &=& \mathrm{H}(x)\\
+ &=& \mathrm{H}(x + 1)
+\end{eqnarray*}
+
+\begin{align*}
+ \mathrm{I} & \begin{aligned}[t]
+ &= \mathrm{H}(x)\\
+ &= \mathrm{H}(x + 1)
+ \end{aligned}\\
+ \mathrm{I} &= \mathrm{H}(x)\\
+ &= \mathrm{H}(x + 1)
+\end{align*}
+\end{verbatim}
+
+\end{document} \ No newline at end of file