From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: LaTeX export -- Table with align option
Date: Mon, 04 Jun 2012 22:18:33 +0200 [thread overview]
Message-ID: <80fwaavnja.fsf@somewhere.org> (raw)
Hello,
I want to customize a bit the layout of a table, using the =align= parameter as
explained on http://orgmode.org/manual/Tables-in-LaTeX-export.html.
That works well for the first two common usages (see ECM) but not with
@-expressions (see, for example, on
https://en.wikibooks.org/wiki/LaTeX/Tables#.40-expressions)
* Table with normal spacing
#+ATTR_LaTeX: align=rrl
| Janvier | 1300 | \EUR |
| Février | 1280 | \EUR |
|---------+------+------|
| Total | 2580 | \EUR |
#+TBLFM: @3$2=vsum(@1..@2)
gets correctly translated to:
#+begin_src latex
\begin{tabular}{rrl}
Janvier & 1300 & \EUR \\
Février & 1280 & \EUR \\
\hline
Total & 4080 & \EUR \\
\end{tabular}
#+end_src
* Table with no spacing
#+ATTR_LaTeX: align=r@{:}r@{}l
| Janvier | 1300 | \EUR |
| Février | 1280 | \EUR |
|---------+------+------|
| Total | 2580 | \EUR |
#+TBLFM: @3$2=vsum(@1..@2)
gets correctly translated to:
#+begin_src latex
\begin{tabular}{r@{:}r@{}l}
Janvier & 1300 & \EUR \\
Février & 1280 & \EUR \\
\hline
Total & 4080 & \EUR \\
\end{tabular}
#+end_src
* Table with more spacing
#+ATTR_LaTeX: align=r@{ : }r@{ }l
| Janvier | 1300 | \EUR |
| Février | 1280 | \EUR |
|---------+------+------|
| Total | 2580 | \EUR |
#+TBLFM: @3$2=vsum(@1..@2)
gets INCORRECTLY translated to:
#+begin_src latex
\begin{tabular}{r@{}
Janvier & 1300 & \EUR \\
Février & 1280 & \EUR \\
\hline
Total & 4080 & \EUR \\
\end{tabular}
#+end_src
which can't be compiled...
Best regards,
Seb
--
Sebastien Vauban
next reply other threads:[~2012-06-04 20:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 20:18 Sebastien Vauban [this message]
2012-06-05 11:24 ` LaTeX export -- Table with align option Eric Fraga
2012-06-05 12:17 ` Sebastien Vauban
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80fwaavnja.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.