"Cook, Malcolm" <[email protected]> writes:
>
> Indeed, thanks, and, my worked out example follows using emacs 2.18.9 and
> org-mode version 8.0.6
>
2.18.9?
> #+LATEX: \listoftables
> #+LaTeX_HEADER: \usepackage{longtable}
> #+name: longtabletest
> #+CAPTION: test of longtable caption
> #+begin_src R :results value :colnames yes
> data.frame(num=1:260,alpha=rep(LETTERS,10))
> #+end_src
>
> #+RESULTS:
> #+attr_latex: :environment longtable
> | num | alpha |
> |-----+-------|
> | 1 | A |
> | 2 | B |
> ...
Does this really produce a table caption for you when you export to
latex? And does the attr_latex line stay there at the top of the table
when the code block is evaluated? For me, the answers are "no" and
"no". I have to rewrite it as follows in order for it to work:
> #+begin_src R :results value :colnames yes
> data.frame(num=1:260,alpha=rep(LETTERS,10))
> #+end_src
>
> #+CAPTION: test of longtable caption
> #+attr_latex: :environment longtable
> #+RESULTS:
> | num | alpha |
> |-----+-------|
> | 1 | A |
> | 2 | B |
--
Nick