Skip to content

fail to generate pdf file when there are equations in a table #1754

@P4SSER8Y

Description

@P4SSER8Y

for example,

# test
test | test | test
:-- | :-- | :--
$x^2+y^2=z$ | $$x^2+y^2=z^2$$ | test

it did well in generating html file.

but if i need to generate pdf file, using default template file of pdf.

...
(d:/Engineering/TeX/texmf-dist/tex/latex/microtype/mt-msb.cfg)
! Missing $ inserted.
<inserted text> 
                $
l.60 \(x^2+y^2=z\) & \[x^
                         2+y^2=z^2\] & test\tabularnewline
? 
...

part of the tex file is (indented by myself)

\section{test}\label{test}
\begin{longtable}[c]{@{}lll@{}}
    \toprule
        test & test & test\tabularnewline
    \midrule
    \endhead
        \(x^2+y^2=z\) & 
        \[x^2+y^2=z^2\] &
        test
        \tabularnewline
    \bottomrule
\end{longtable}

thanks for your contribution!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions