From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: very strange LaTeX error Date: Fri, 20 Dec 2019 11:56:00 +0000 Message-ID: <87immbp5ww.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38215) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiGt5-0006gv-Au for emacs-orgmode@gnu.org; Fri, 20 Dec 2019 06:56:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiGt3-0005lB-Rn for emacs-orgmode@gnu.org; Fri, 20 Dec 2019 06:56:06 -0500 Received: from mail-eopbgr40108.outbound.protection.outlook.com ([40.107.4.108]:55694 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iiGt3-0005h8-91 for emacs-orgmode@gnu.org; Fri, 20 Dec 2019 06:56:05 -0500 Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Emacs Org mode mailing list Hello all, this may not belong in this mailing list as it's arguably a LaTeX issue but I'm having a problem exporting a table to PDF via LaTeX. I hope somebody can help me out. I've reduced my problem file to a small (hopefully minimal) example and verified this with emacs -Q, using emacs 27.x which comes with org 9.3: #+begin_src org ,* some results ,#+name: atable |------------------------------------+----------+----------------------+-= ----| | x | z1 | z2 | = g | |------------------------------------+----------+----------------------+-= ----| | [0.0005, 0.05, 0.5] | 90000.0 | 0.05 | = 0.0 | | [0.000787451, 0.0575948, 0.5] | 110000.0 | 0.05759476698672508 | = 0.0 | |------------------------------------+----------+----------------------+-= ----| #+end_src If I export this to LaTeX, I get something that looks reasonable (elided): #+begin_src latex \documentclass{scrartcl} \begin{document} % packages deleted, none of which is used anyway in the following \tableofcontents \section{some results} \label{sec:org4f5891c} \begin{table}[hbtp] \label{atable} \centering \begin{tabular}{lrrr} \hline x & z1 & z2 & g\\ \hline [0.0005, 0.05, 0.5] & 90000.0 & 0.05 & 0.0\\ [0.000787451, 0.0575948, 0.5] & 110000.0 & 0.05759476698672508 & 0.0\\ \hline \end{tabular} \end{table} \end{document} #+end_src I get errors like this when compiling with pdflatex: #+begin_example ! Illegal unit of measure (pt inserted). =20 , l.18 [0.000787451, 0.0575948, 0.5] & 110000.0 & 0.05759476698672508 & 0.0= \\ ! Missing =3D inserted for \ifdim. =20 #+end_example What am I doing wrong? If LaTeX cannot handle [...] in a table (it has no problem with similar text in a normal paragraph), the LaTeX exporter should do something about this. But I do not see why LaTeX should have a problem in any case. Any pointers welcome! Note: LaTeX does not complain about the first line in the table, only the second (and following ones in the original org file from which I took this code snippet). Thank you. --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.3-34-g2eee3c