From: Nicolas Goaziou <n.goaziou@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Align argument in #+attr_latex for tabular env. is whitespace sensitive
Date: Tue, 12 Feb 2013 20:22:08 +0100 [thread overview]
Message-ID: <87d2w5ban3.fsf@gmail.com> (raw)
In-Reply-To: <CA+M2ft9by1GD+MCJjQ3yB6JPA1fTLCYF5Vh3-ZsPht6mpwMr=w@mail.gmail.com> (John Hendy's message of "Tue, 12 Feb 2013 11:30:45 -0600")
Hello,
John Hendy <jw.hendy@gmail.com> writes:
> Was not getting the results I expected from #+attr_latex, so I created
> a simplified table to test:
>
> #+begin_src org
>
> Centered (will be sent to LaTeX as =\begin{tabular}{cc}=:
>
> #+attr_latex: align=cc
> | test | test |
> | test of longer | test |
>
> Left aligned (will be sent to LaTeX as =\begin{tabular}{ll}=:
>
> #+attr_latex: align = cc
> | test | test |
> | test of longer | test |
>
> #+end_src
>
> If there's reason for this, I can change my habits. I guess from
> various tidy programming habits, I'm just in the practice of
> separating equal signs with surrounding white space for easier
> readability. For what it's worth, these two behave identically:
>
> #+attr_latex: width=5cm
> #+attr_latex: width = 5cm
>
> I'm not sure why the tabular align argument is behaving differently.
This syntax is wrong anyway. It should be:
#+attr_latex: :width "5cm"
or
#+attr_latex: :width 5cm
The same goes for :align. Also, for simple alignment strings, you can
provide align cookies within the table.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2013-02-12 19:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 17:30 Align argument in #+attr_latex for tabular env. is whitespace sensitive John Hendy
2013-02-12 19:22 ` Nicolas Goaziou [this message]
2013-02-12 19:40 ` John Hendy
2013-02-12 19:44 ` Nicolas Goaziou
2013-02-12 19:51 ` John Hendy
2013-02-15 10:05 ` Sebastien Vauban
2013-02-15 13:08 ` Nicolas Goaziou
2013-02-15 18:53 ` Sebastien Vauban
2013-02-15 19:44 ` Nicolas Goaziou
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=87d2w5ban3.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@gmail.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 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.