brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
917 stars 96 forks source link

Perl died - unknown error #562

Closed bernhard-kleine closed 9 years ago

bernhard-kleine commented 9 years ago

This file throws an perl error without latexml error:

Fatal:perl:die Perl died
    at /media/Datenlaufwerk_BK/EigeneDateien/BuchprojektSpringer/XMLtestordner/testside.tex; line 30 col 20
    Can't call method "getSize" on an undefined value at /home/bk/perl5/lib/perl5/LaTeXML/Core/Alignment.pm line 202, <$IN> line 30.
    In Alignment[] at /media/Datenlaufwerk_BK/EigeneDateien/BuchprojektSpringer/XMLtestordner/testside.tex; line 29 col 16
     <= \tabularcell@hbox{\par␍{HSD}\\␍\tabul... <= \begin{tabular*}{433.62pt}[]{m{0.5cm}... <= \@@toccaption{{\@tag[][ ]{0.1}human 1... <= ...
1 fatal error at /home/bk/perl5/lib/perl5/LaTeXML/Common/Error.pm line 67, <$IN> line 30.
\documentclass[12pt,a4paper]{book}
\usepackage[ngerman,english]{babel}
\usepackage{tabularx}
\usepackage{rotating}% für gedrehte Tabelle etc.
\DeclareRobustCommand{\PBS}[1]{\let\temp=\\#1\let\\=\temp}% Preservebackslash in table heads
\begin{document}
\begingroup
\begin{sidewaystable*}\footnotesize
\caption[human 17beta-hydroxy-steroid dehydrogenases]{Human 17$\beta$"~hydroxysteroid dehydrogenases. source: {MA06,PLS99,LKB+07}, PubMed/OMIM, http://www.ensembl.org/Homo sapiens}\label{tab:seventeenbetaHSD}
  \begin{tabular*}{1.0\textwidth}%
    {%
      m{0.5cm}%HSD type
      m{1.2cm}%gene name
      >{\raggedright\PBS}m{2.7cm}%other names
      >{\raggedright\PBS}m{3.2cm}%comments
    } %

    {HSD \newline type} & Gene name & Other names & comments %
    \tabularnewline\hline\\[1mm]
    1 & HSD17B1 &E17KSR, EDH17B1, EDHB17, EDH17B2&17beta"~HSD%& 0108786 
    \tabularnewline
    2 &HSD17B2 &E2DH, HSD17 &17beta"~HSD, 20alpha"~HSD 
  \end{tabular*}
\end{sidewaystable*}%
\endgroup
\end{document}

I have no idea how to change that.

brucemiller commented 9 years ago

Simple bug: parsing a Dimension as an arg to a macro, but then passing it on as Tokens to the next primitive! Fixed; thanks!