emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeremie Juste <jeremiejuste@gmail.com>
To: emacs-orgmode@gnu.org
Subject: How to use :prologue with latex
Date: Mon, 24 Apr 2017 12:41:53 +0200 (CEST)	[thread overview]
Message-ID: <87k26a84um.fsf@u-cergy.fr> (raw)



Hello,

I would like to use :prologue  and epilogue with latex output when using
R. Would it be possible to do something like the following?


#+NAME: test1123
#+BEGIN_SRC R :results output latex :prologue \\begin{table} :epilogue \\end{table} :session *R* :dir tmp :cache no
print(xtable(data.frame(a=rnorm(10),b=letters[1:10])),floating.environment=FALSE)
#+END_SRC



#+RESULTS: test1123
#+BEGIN_EXPORT latex
Error: unexpected input in "\"
% latex table generated in R 3.3.1 by xtable 1.8-2 package
% Mon Apr 24 12:40:21 2017
\begin{FALSE}[ht]
\centering
\begin{tabular}{rrl}
  \hline
 & a & b \\ 
  \hline
1 & -0.79 & a \\ 
  2 & 0.71 & b \\ 
  3 & 0.82 & c \\ 
  4 & 1.04 & d \\ 
  5 & 0.46 & e \\ 
  6 & 1.02 & f \\ 
  7 & 0.89 & g \\ 
  8 & -1.12 & h \\ 
  9 & 0.77 & i \\ 
  10 & 2.08 & j \\ 
   \hline
\end{tabular}
\end{FALSE}
Error: unexpected input in "\"
#+END_EXPORT


Best wishes,

Jeremie

             reply	other threads:[~2017-04-24 10:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-24 10:41 Jeremie Juste [this message]
2017-04-24 16:43 ` How to use :prologue with latex Charles C. Berry
2017-04-25 10:25   ` Jérémie Juste

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k26a84um.fsf@u-cergy.fr \
    --to=jeremiejuste@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).