From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Bug in orgtbl export to LaTeX Date: Sun, 22 Apr 2012 00:31:09 +0200 Message-ID: <5504296.eJF9ybqCKQ@linux-nyil.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLipn-0004Da-F6 for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 18:31:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLipl-0002rb-TF for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 18:31:15 -0400 Received: from mailout09.t-online.de ([194.25.134.84]:60064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLipl-0002rO-MZ for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 18:31:13 -0400 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dear all, I guess I found a bug in the export function of orgtbl to LaTeX: The percentage sign ("%") is not masked, it simply is transfered to LaTeX and thus destroys the table. Example below, beware, you will get an error, because of the said bug. For readers who are not familiar with LaTeX: "%" is the comment sign, after "%" LaTeX does not compile anything in this line. Here in the example the end of the current row is marked with "\\", but due to the "%" LaTeX can not find any eol. Can the export function be amended? Any "%" inside the table (!) needs to be exported as "\%". ------------------------------------------- \documentclass[pagesize, fontsize=12pt, english]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment} \begin{document} \begin{tabular}{lr} % BEGIN RECEIVE ORGTBL percent \begin{tabular}{lr} Name & Percent \\ Peter & 75% \\ Paul & 25% \\ Sum & 1. \\ \end{tabular} % END RECEIVE ORGTBL percent \end{tabular} \begin{comment} #+ORGTBL: SEND percent orgtbl-to-latex :splice nil :skip 0 | Name | Percent | | Peter | 75% | | Paul | 25% | | Sum | 1. | #+TBLFM: @4$2=@-2+@-1 % $ \end{comment} \end{document} -------------------------------------------------------------- Org-version: 7.8.09 Regards, Alexander