From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: [new exporter]: LaTeX output from babel escapes comment delimiter Date: Thu, 25 Oct 2012 00:15:59 +0000 (UTC) Message-ID: 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]:50382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRB7M-00027x-5z for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 20:16:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRB7L-0007Js-7f for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 20:16:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:44801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRB7L-0007Jo-18 for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 20:16:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TRB7R-0003Q3-Ew for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 02:16:17 +0200 Received: from 218-101-54-25.trimble.co.nz ([218.101.54.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2012 02:16:17 +0200 Received: from mikelygee by 218-101-54-25.trimble.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2012 02:16:17 +0200 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 I use the xtables package in R to generate nice-looking tables for LaTeX output, as in the snippet below. The new exporter escapes the % symbol in the R output, so that the comments generated by xtable are no longer comments. * Snippet #+HEADER: :results output latex #+HEADER: :exports results #+BEGIN_SRC R library(xtable) xtable(matrix(c(1,2,3,4),nrow=2,ncol=2)) #+END_SRC #+RESULTS: #+BEGIN_LaTeX % latex table generated in R 2.15.1 by xtable 1.7-0 package % Thu Oct 25 13:11:30 2012 \begin{table}[ht] \begin{center} \begin{tabular}{rrr} \hline & 1 & 2 \\ \hline 1 & 1.00 & 3.00 \\ 2 & 2.00 & 4.00 \\ \hline \end{tabular} \end{center} \end{table} #+END_LaTeX