jgm / jgm/texmath

Handle < and > in array column specifiers

Open
#166 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
406
Forks
86
Avg merge
1h 25m
Merged PRs (30d)
1

Description

I just discovered the next issue when array's is used instead of case.

The test case:
```
\documentclass{scrartcl}

\usepackage{amsmath}
\usepackage{array}

\begin{document}

\setlength{\arraycolsep}{1pt}
\begin{equation}
x =
\left\{ \begin{array}{>{\arraybackslash$} p{3cm} <{$} l}
y - 1, & \mbox{if } 1 \\
y, & \mbox{if } 2 \\
\end{array} \right.
\end{equation}

\end{document}
```

Error:
```
[WARNING] Could not convert TeX math 'x =
\left\{ \begin{array}{>{\arraybackslash$} p{3cm} <{$} l}
y - 1, & \mbox{if } 1 \\
y, & \mbox{if } 2 \\
\end{array} \right.', rendering as TeX:
ft\{ \begin{array}{>{\arraybackslash$} p
^
unexpected ">"
expecting white space, letter, "|" or "}"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.