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

\newpage command inside LaTeX table throws pandoc off #3494

Closed
sixtyfive opened this issue Mar 6, 2017 · 3 comments
Closed

\newpage command inside LaTeX table throws pandoc off #3494

sixtyfive opened this issue Mar 6, 2017 · 3 comments

Comments

@sixtyfive
Copy link

sixtyfive commented Mar 6, 2017

When there' s a \newpage command inside of a LaTeX table, pandoc stops interpreting it as a table. The expected behaviour, from my viewpoint as an unsuspecting user who didn't think of pandoc back when I wrote a LaTeX table that was only supposed to be interpreted by LaTeX at that time, would be for pandoc to simply discard the \newpage command and keep going, already having figured out it's dealing with a table because of the initial \begin{tabular} command. I.e. the only thing that should stop pandoc from considering a LaTeX table a table should be an \end{tabular} command.

@sixtyfive sixtyfive changed the title \newpage command inside LaTeX table throws pandoc of \newpage command inside LaTeX table throws pandoc off Mar 6, 2017
@jgm
Copy link
Owner

jgm commented Mar 6, 2017

It would be helpful if you could give us a small test case.

@sixtyfive
Copy link
Author

This is the one that I'm working on atm (pandoc 1.17.2 from Debian Stretch):

\documentclass{article}

\begin{document}

\begin{table}[h!]
\begin{tabular}{r|l|l}

  {\large \textbf{ﺍ}} && \\
  \textbf{ﺄﺤﺴﻨﺘـ(ﻭﺍ) IV} & \em{ʾaḥsant(ū)} & thank you \\
  \newpage
  \emph{blah} & \emph{blah} & \emph{blah} \\
  blah & blah & blah \\

\end{tabular}
\end{table}

\end{document}

@jgm jgm closed this as completed in 9e87114 Mar 6, 2017
@sixtyfive
Copy link
Author

o_O

thank you! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants