From: RCY <recif@yahoo.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Booktabs in new LaTeX exporter
Date: Fri, 28 Dec 2012 18:07:48 -0500 [thread overview]
Message-ID: <CAD_Xbc5mVK8RDKcZkinjGT3S0HPYU191sNHonHUNfUwxzKhJOw@mail.gmail.com> (raw)
In-Reply-To: <m1mwwyhu8l.fsf@tsdye.com>
[-- Attachment #1: Type: text/plain, Size: 1824 bytes --]
Hi Tom,
I hacked together a preliminary solution that uses the booktabs and
threeparttable (for footnotes) packages, based on the suggestion in
section 13.2 of http://orgmode.org/worg/org-tutorials/org-latex-export.html
It seems to do OK in a simple example, and I will test it some more. It
does not export to html.
Thanks for your help.
#+LATEX_CLASS: article
#+latex_header: \usepackage{booktabs,tabularx,threeparttable}
* noexport :noexport:
#+tblname: test-table
| L | R$^1$ | X$^2$ |
|---+-------+-------|
| A | B | C |
| D | E | F |
| I | J | K |
* do export
#+name: tabularx-export
#+begin_src latex :exports results :results latex :noweb yes
\begin{table}[htb!]
\centering
\begin{threeparttable}[b]
\footnotesize
\caption{A table to test booktabs}
\label{tab:test-table}
<<booktabs(table=test-table,align="lrX",env="tabularx",width="0.5\\textwidth")>>
\begin{tablenotes}
\item [1] A table note ...
\item [2] A second table note ...
\end{tablenotes}
\end{threeparttable}
\end{table}
#+end_src
On Fri, Dec 28, 2012 at 2:06 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
> I think the :align attribute expects a string instead of a symbol, so
> :align "rr" is probably what you want.
>
> I don't know about the new html exporter yet, but I'd be surprised if it
> looks at LaTeX attributes. You might want to experiment with alignment
> cookies in the table to see if they do what you want:
>
>
> http://orgmode.org/manual/Column-width-and-alignment.html#Column-width-and-alignment
>
> I haven't used threeparttable or ctable. Org footnotes work inside
> tables, if you want the note to appear outside the table.
>
> Typesetting tables is hard. Let the list know if you get Org to work
> with either of these packages.
>
> All the best,
> Tom
>
>
[-- Attachment #2: Type: text/html, Size: 2868 bytes --]
prev parent reply other threads:[~2012-12-28 23:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-27 23:57 Booktabs in new LaTeX exporter RCY
2012-12-28 0:17 ` Thomas S. Dye
2012-12-28 1:20 ` RCY
2012-12-28 1:42 ` Thomas S. Dye
2012-12-28 10:50 ` RCY
2012-12-28 17:27 ` Thomas S. Dye
2012-12-28 18:05 ` RCY
2012-12-28 19:06 ` Thomas S. Dye
2012-12-28 23:07 ` RCY [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
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=CAD_Xbc5mVK8RDKcZkinjGT3S0HPYU191sNHonHUNfUwxzKhJOw@mail.gmail.com \
--to=recif@yahoo.com \
--cc=Emacs-orgmode@gnu.org \
--cc=tsd@tsdye.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 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).