Skip to content

Rewrite the first example of the amsmath subsection #73

@marmotghost

Description

@marmotghost

The first example in the amsmath subsection is unfortunate in a few ways. Please consider rewriting it as

\documentclass{article}
\usepackage{amsmath}

\begin{document}
Given  $n,k\geq 0$, solve the recurrence for
\begin{align*}
  Q_{n,0} &= 1   \quad Q_{0,k} = [k=0]\;;  \\
  Q_{n,k} &= Q_{n-1,k}+Q_{n-1,k-1}+\binom{n}{k} \quad\text{for $n$, $k>0$.}
\end{align*}
\end{document}

This avoids the colon before the displayed equations, which is sometimes said to be bad style, and, more importantly introduces spacing before punctuation in formulas in displayed equations. Why is that necessary? Here is why.

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{align*}
  R_{ij'} &= T_{ij},\\
  \widetilde{R}_{ij'} &= \widetilde{R}_{ij}. \tag{bad}
\end{align*}
\begin{align*}
  R_{ij'} &= T_{ij}\;,\\
  \widetilde{R}_{ij'} &= \widetilde{R}_{ij}\;. \tag{better}
\end{align*}
\end{document}

Punctuation close to some formula has repeatedly lead to confusion, e.g. $T_{ij},$ is hard to distinguish from $T_{ij'}$, and there are many more examples of this kind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions