Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TeX math @\qquad} can't be converted to OMML #241

Closed
d-morrison opened this issue Sep 27, 2024 · 1 comment
Closed

TeX math @\qquad} can't be converted to OMML #241

d-morrison opened this issue Sep 27, 2024 · 1 comment

Comments

@d-morrison
Copy link

Discussed in jgm/pandoc#10221

The following code produces a warning (and fails to convert the LaTeX array):

---
format: docx
---

$$
\begin{array}{l@{\qquad}l}
\text{Infection/colonization episode} & \text{Waning immunity episode}\\
b^{\prime}(t) = \mu_{0}b(t) - cy(t) & b(t) = 0 \\
y^{\prime}(t) = \mu y(t) & y^{\prime}(t) = -\alpha y(t)^r
\end{array}
$$

[WARNING] Could not convert TeX math 
  \begin{array}{l@{\qquad}l}
  \text{Infection/colonization episode} & \text{Waning immunity episode}\\
  b^{\prime}(t) = \mu_{0}b(t) - cy(t) & b(t) = 0 \\
  y^{\prime}(t) = \mu y(t) & y^{\prime}(t) = -\alpha y(t)^r
  \end{array}
  , rendering as TeX:

Without @{\qquad} the array works:

---
format: docx
---

$$
\begin{array}{ll}
\text{Infection/colonization episode} & \text{Waning immunity episode}\\
b^{\prime}(t) = \mu_{0}b(t) - cy(t) & b(t) = 0 \\
y^{\prime}(t) = \mu y(t) & y^{\prime}(t) = -\alpha y(t)^r
\end{array}
$$
@d-morrison d-morrison changed the title TeX math @\qquad} can't be converted TeX math @\qquad} can't be converted to OMML Sep 27, 2024
@jgm
Copy link
Owner

jgm commented Sep 27, 2024

Here's an explanation of what @{...} and !{} do in this context.
https://tex.stackexchange.com/a/207463
We should probably skip both.

@jgm jgm transferred this issue from jgm/pandoc Sep 28, 2024
@jgm jgm closed this as completed in d47229b Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants