From: Dan Davison <davison@stats.ox.ac.uk>
To: Graham Smith <myotisone@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Footnotes and R output when exporting to HTML or Latex
Date: Wed, 28 Jan 2009 20:14:07 -0500 [thread overview]
Message-ID: <20090129011407.GB7878@stats.ox.ac.uk> (raw)
In-Reply-To: <2c75873c0901210739v77a6d347g8ab78d36ec0640a1@mail.gmail.com>
On Wed, Jan 21, 2009 at 03:39:36PM +0000, Graham Smith wrote:
> Mmmm, so busy concerened about the graphics I didn't realise I had
> such a major issue with footnotes.
>
> I am pasting R output into an org file which comes in like:
>
> > names(gq3hazard)
>
> [1] "H1a" "H1b" "H1c" "H2a" "H2b" "H2c" "H3a" "H3b"
>
> [9] "H3c" "H3d" "H4a" "H4b" "H4c" "H5a" "H5b" "H5c"
>
> [17] "Htotal"
Hi Graham,
An alternative might be to format output like this as an org table?
As Tom Short pointed out in another thread, you can use org-tblR.el
(was org-table-R.el) in a trivial way to do that without any
copy/pasting. For example you could use any of the following
||
#+TBLRR: x <- names(gq3hazard)
||
#+TBLRR: x <- t(names(gq3hazard))
||
#+TBLRR: x <- cbind(seq(length(gq3hazard)), names(gq3hazard))
With point in the #+TBLRR line, org-tblR-apply produces respectively
| |
|--------|
| H1a |
| H1b |
| H1c |
| H2a |
| H2b |
| H2c |
| H3a |
| H3b |
| H3c |
| H3d |
| H4a |
| H4b |
| H4c |
| H5a |
| H5b |
| H5c |
| Htotal |
#+TBLRR: x <- names(gq3hazard)
| | | | | | | | | | | | | | | | | |
|-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--------|
| H1a | H1b | H1c | H2a | H2b | H2c | H3a | H3b | H3c | H3d | H4a | H4b | H4c | H5a | H5b | H5c | Htotal |
#+TBLRR: x <- t(names(gq3hazard))
| | |
|----+--------|
| 1 | H1a |
| 2 | H1b |
| 3 | H1c |
| 4 | H2a |
| 5 | H2b |
| 6 | H2c |
| 7 | H3a |
| 8 | H3b |
| 9 | H3c |
| 10 | H3d |
| 11 | H4a |
| 12 | H4b |
| 13 | H4c |
| 14 | H5a |
| 15 | H5b |
| 16 | H5c |
| 17 | Htotal |
#+TBLRR: x <- cbind(seq(length(gq3hazard)), names(gq3hazard))
Dan
http://www.stats.ox.ac.uk/~davison/software/org-tbl-R/org-tblR.el
(NB The code now uses TBLRR: instead of TBLR::)
p.s. [Explanation if required/interested : TBLRR lines contain R code
that create an R variable called `x' that gets output to the org
buffer as an org table. In these cases a degenerate org table (||) is
provided, and the R code doesn't use it when creating the variable
x. For non-R users: "<-" is the assignment operator in R (you can also
use "="), cbind sticks two vectors together column-wise, t is the
transpose function.]
>
>
> I suspect some of you are ahead of me, becasue the Org mode export
> takes these to be footnotes so in the PDF I get
>
> > names(gq3hazard)
> 1
> "H1a" "H1b" "H1c" "H2a" "H2b" "H2c" "H3a" "H3b"
> $??9$ "H3c" "H3d" "H4a" "H4b" "H4c" "H5a" "H5b" "H5c"
> $??17$ "Htotal"
>
>
> with a footnote
>
> 1
> 5 3 7 > library(boot) > medianCI(na.omit(H1b))
>
> I have no idea where the >medianCI bit has come from but looking
> through the file, the spurious footnotes seems to be causing havoc
> with the layout.
>
>
> Is it possible to disable the footnote feature and then explicityly
> tell orgmode that a specific instance of square brackets should be
> interpreted as a footnote.
>
> Thanks,
>
> Graham
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
--
http://www.stats.ox.ac.uk/~davison
prev parent reply other threads:[~2009-01-29 1:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-21 15:39 Footnotes and R output when exporting to HTML or Latex Graham Smith
2009-01-21 16:32 ` Paul R
2009-01-21 16:47 ` Graham Smith
2009-01-21 17:15 ` [OT] basic emacs tips you will need someday (was: Footnotes and R output when exporting to HTML or Latex) Paul R
2009-01-21 17:28 ` Graham Smith
2009-01-22 3:54 ` Manish Sharma
2009-01-22 9:13 ` Graham Smith
2009-01-21 17:33 ` Re: Footnotes and R output when exporting to HTML or Latex Nick Dokos
2009-01-21 17:40 ` Graham Smith
2009-01-29 1:14 ` Dan Davison [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090129011407.GB7878@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=myotisone@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.