From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: LaTeX export -- Table with align option Date: Tue, 05 Jun 2012 14:17:15 +0200 Message-ID: <80hauqgdh0.fsf@somewhere.org> References: <80fwaavnja.fsf@somewhere.org> <87wr3mq9w6.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, Eric Fraga wrote: > Sebastien Vauban writes: >> 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 > > Actually, it's not the @ expressions as such that cause the problems, > it's the spaces you are trying to introduce within them, causing the org > parser to terminate the alignment term too soon. Two solutions below. > >> #+ATTR_LaTeX: align=r@{ : }r@{ }l >> gets INCORRECTLY translated to: >> >> #+begin_src latex >> \begin{tabular}{r@{} > > I know this isn't pretty but you could use > > #+ATTR_LaTeX: align=r@{\hspace{1em}:\hspace{1em}}r@{\hspace{1em}}l > > changing the 1em to whatever amount of space you actually want; probably > 1ex is more likely... > > The following also works but although it looks simpler here (in an > email), I don't like how Org hides the ~s in the first column > specification as it (incorrectly) interprets them as a verbatim style. > > #+ATTR_LaTeX: align=r@{~:~}r@{~}l I had tried backslashing the space, but that did not help. Your examples do help working around the problem. Thanks! Best regards, Seb -- Sebastien Vauban