emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: LaTeX export -- Table with align option
Date: Tue, 05 Jun 2012 14:17:15 +0200	[thread overview]
Message-ID: <80hauqgdh0.fsf@somewhere.org> (raw)
In-Reply-To: 87wr3mq9w6.fsf@ucl.ac.uk

Hi Eric,

Eric Fraga wrote:
> Sebastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> 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

      reply	other threads:[~2012-06-05 12:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-04 20:18 LaTeX export -- Table with align option Sebastien Vauban
2012-06-05 11:24 ` Eric Fraga
2012-06-05 12:17   ` Sebastien Vauban [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=80hauqgdh0.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 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).