From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Problem getting booktabs example to work Date: Fri, 13 Jul 2012 10:50:13 -1000 Message-ID: References: <87mx33d72t.fsf@wivenhoe.ul.ie> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Spmog-0006df-Fc for emacs-orgmode@gnu.org; Fri, 13 Jul 2012 16:50:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Spmof-0003Xg-6p for emacs-orgmode@gnu.org; Fri, 13 Jul 2012 16:50:22 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:58212) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Spmoe-0003XS-Tb for emacs-orgmode@gnu.org; Fri, 13 Jul 2012 16:50:21 -0400 In-Reply-To: <87mx33d72t.fsf@wivenhoe.ul.ie> (Brendan Halpin's message of "Fri, 13 Jul 2012 16:16:58 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: brendan.halpin@ul.ie Cc: emacs-orgmode@gnu.org brendan.halpin@ul.ie (Brendan Halpin) writes: > 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 > <> > 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} >> <> >> \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 > <> 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 Aloha Brendan, My mistake. You are right, the tabularx-export block should also have the header argument :noweb yes. I've pushed this change to Worg. Thanks for pointing it out. All the best, Tom -- Thomas S. Dye http://www.tsdye.com