[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Booktabs in new LaTeX exporter

From: RCY
Subject: [O] Booktabs in new LaTeX exporter
Date: Thu, 27 Dec 2012 18:57:29 -0500

I am trying to use the booktabs package for tables in the new exporter, however I am unable to get \toprule, etc instead of \hrule
I would appreciate any suggestions to fix this. 

As a minimal example, I started emacs -q, and evaluated the following:

   (setq org-install-dir "~/.emacs.d/src/org-mode")
   (add-to-list 'load-path (concat org-install-dir "/contrib/lisp"))
   (add-to-list 'load-path (concat org-install-dir "/lisp"))
   (require 'org-e-latex)

   (add-to-list 'org-e-latex-classes
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))

#+LATEX_CLASS: article
#+LATEX_HEADER: \usepackage{booktabs}
* Test
#+ATTR_LATEX: :booktabs
#+CAPTION: Test table
 | 1  | 2 |
 | A1 | A2 |
 | B1 | B2 |
 | C1 | C2 |

------latex-buffer from org-export-latex-as-buffer-------
% Created 2012-12-27 Thu 18:44

  pdfcreator={Emacs Org-mode version 7.9.2+}}




\caption{Test table} 
 1   &  2   \\
 A1  &  A2  \\
 B1  &  B2  \\
 C1  &  C2  \\


reply via email to

[Prev in Thread] Current Thread [Next in Thread]