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

pandoc cannot convert latex formula containing "*{20}{l}" #229

Closed
xlf826796931 opened this issue Oct 11, 2023 · 1 comment
Closed

pandoc cannot convert latex formula containing "*{20}{l}" #229

xlf826796931 opened this issue Oct 11, 2023 · 1 comment
Labels

Comments

@xlf826796931
Copy link

I want to convert the following latex formula to a docx document:
$\left\{ {\begin{array}{*{20}{l}} {(m + 2)x = 1}\\ {3x - (m - 3){y^{\left| m \right| - 2}} + 4 = 0} \end{array}} \right.$

However, I received the following error message. Use pandoc-try to restore the problem.

Could not convert TeX math \left\{ {\begin{array}{*{20}{l}} {(m + 2)x = 1}\\ {3x - (m - 3){y^{\left| m \right| - 2}} + 4 = 0} \end{array}} \right., rendering as TeX: t\{ {\begin{array}{*{20}{l}} {(m + 2)x = ^ unexpected "*" expecting white space, letter, "|" or "}"

I noticed that pandoc can't seem to convert latex containing *{20}{l}

how to solve this problem?

@jgm
Copy link
Owner

jgm commented Oct 11, 2023

Today I learned that

{*{20}{l}}

means:

*{num}{cols}
Equivalent to num copies of cols

We should support that -- I will move this issue to jgm/texmath where the change would have to be made.

@jgm jgm transferred this issue from jgm/pandoc Oct 11, 2023
@jgm jgm closed this as completed in 1da1e34 Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants