emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: brendan.halpin@ul.ie (Brendan Halpin)
To: emacs-orgmode@gnu.org
Subject: Problem getting booktabs example to work
Date: Fri, 13 Jul 2012 16:16:58 +0100	[thread overview]
Message-ID: <87mx33d72t.fsf@wivenhoe.ul.ie> (raw)

I'm trying to implement the LaTeX/booktabs example at section 13.2 of 
http://orgmode.org/worg/org-tutorials/org-latex-export.html
but am having no success.

I've tried a range of tweaks, but the most common result is to get the 
<<booktabs(table=test-table,align="lrX",env="tabularx")>>  
line reproduced verbatim in the output. 

I've pulled the latest git version.

In an "emacs -Q" session, I evaluate the following e-lisp:

> (setq load-path (cons "~/mylisp/org-mode/lisp/" load-path))
> (require 'org "~/mylisp/org-mode/lisp/org.el")
> (org-babel-do-load-languages
>  'org-babel-load-languages
>  '((emacs-lisp . t)
>    (R . t)
>    (ruby . t)
>    (latex . t)
>    ))
> (org-babel-lob-ingest
> "~/mylisp/org-mode/contrib/babel/library-of-babel.org")

and then do C-c C-e D in a buffer containing this org-mode text:

> #+LATEX_HEADER: \usepackage{tabularx,booktabs}
> 
> * Table section
> #+name: tabularx-export
> #+begin_src latex :exports results :results latex
>   \begin{table}[htb!]
>   \centering
>   \footnotesize
>   \caption{A table to test booktabs}
>   \label{tab:test-table}
> <<booktabs(table=test-table,align="lrX",env="tabularx")>>
>   \end{table}
> #+end_src
> 
> * Not for export                                                   :noexport:
> #+tblname: test-table
> |     |   ham |   hol |   h2l |
> |-----+-------+-------+-------+
> | ham | 1.000 | 0.998 | 0.996 |
> | hol | 0.998 | 1.000 | 0.999 |
> | h2l | 0.996 | 0.999 | 1.000 |
> | oma | 0.986 | 0.990 | 0.995 |
> | omv | 0.941 | 0.939 | 0.936 |

The document is produced correctly, except for the fact that the
<<booktabs...>> chunk appears verbatim in place of the table body. 

As far as I can see I am following the instructions correctly, but I
am probably missing some prerequisite. 

Any pointers appreciated!


Regards,

Brendan
-- 
Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
mailto:brendan.halpin@ul.ie    ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress         twitter:@ULSociology

             reply	other threads:[~2012-07-13 15:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13 15:16 Brendan Halpin [this message]
2012-07-13 20:50 ` Problem getting booktabs example to work Thomas S. Dye
  -- strict thread matches above, loose matches on Subject: below --
2012-07-13 21:27 Thomas S. Dye
2012-07-13 22:03 ` Nick Dokos

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=87mx33d72t.fsf@wivenhoe.ul.ie \
    --to=brendan.halpin@ul.ie \
    --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).