emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Align argument in #+attr_latex for tabular env. is whitespace sensitive
@ 2013-02-12 17:30 John Hendy
  2013-02-12 19:22 ` Nicolas Goaziou
  0 siblings, 1 reply; 9+ messages in thread
From: John Hendy @ 2013-02-12 17:30 UTC (permalink / raw)
  To: emacs-orgmode

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.


Thanks for any feedback,
john

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-02-15 19:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).