emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@ucsd.edu>
To: Brian Shine <brianshine@mac.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-mode R using xtable produces strange output
Date: Tue, 20 Mar 2018 16:47:10 +0000	[thread overview]
Message-ID: <5330988D-2C17-4A78-8CA3-6A3025D21FDB@ucsd.edu> (raw)
In-Reply-To: <27130615-8997-4101-9888-35829EE3D968@mac.com>



> On Mar 19, 2018, at 4:44 PM, Brian Shine <brianshine@mac.com> wrote:
> 
> I am using xtable to produce summary tables of linear models, specifying the output as latex.  If I just run the code in R, I get the correct output.  However, the latex output in the org document contains a lot of “|”s.  I think this is because the header of the table contains some code to make “p > |t|”, where the vertical lines are to indicate “absolute value of t”.  My guess is that when the output is written to the results section, org interprets the “|” signs as an org-table and tries to be helpful by adding more of them to make up the correct number of columns. 


See

	(info "(org) results")

and note the difference between `:results output' and `:results value' (the default).

Since you want the printed version of the R object, you should use 

	`:results output latex'

to pass the printed output to the org #+Results or 

	`:results raw :wrap export latex'

to pass the unadorned value.  In your use case they seem to produce the same #+Results.

HTH,

Chuck

  reply	other threads:[~2018-03-20 16:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-19 23:44 org-mode R using xtable produces strange output Brian Shine
2018-03-20 16:47 ` Berry, Charles [this message]
2018-03-20 22:40   ` Brian Shine

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=5330988D-2C17-4A78-8CA3-6A3025D21FDB@ucsd.edu \
    --to=ccberry@ucsd.edu \
    --cc=brianshine@mac.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).