emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* orgtbl export to latex :fmt() fails
@ 2014-07-17 19:46 Thorsten Grothe
  2014-07-17 21:12 ` Nick Dokos
  0 siblings, 1 reply; 10+ messages in thread
From: Thorsten Grothe @ 2014-07-17 19:46 UTC (permalink / raw)
  To: emacs-orgmode

Hi List,

I have a problem with a orgtbl which I would like to export with certain
options to latex.

The table looks like this:

#+TBLNAME: test
#+ORGTBL: SEND test orgtbl-to-latex :skip 2 :splice t :fmt (4"\\num{%s}")

| Soll |   |  | Haben |
|------+---+--+-------|
|      |   |  | 39000 |

I would like to export the 4 column of the table with the latex \num{} tag,
see :fmt (4"\\num{%s}"), I got this from the manual.

this works fine but *only* if the first column is *not* empty like so:

| Soll |   |  | Haben |
|------+---+--+-------|
|  0   |   |  | 39000 |

Result:
% BEGIN RECEIVE ORGTBL test
0 &  &  & \num{39000} \\
% END RECEIVE ORGTBL test


if the first column is *empty* the result looks like this:

| Soll |   |  | Haben |
|------+---+--+-------|
|      |   |  | 39000 |

Result:
% BEGIN RECEIVE ORGTBL test
&  & 39000 \\
% END RECEIVE ORGTBL test

the \num{} tag is not exported and one "&" in the table is missing.

I don't know what I'm doing wrong???

Thanks in advance for your help!!

Regards
Th. Grothe

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

end of thread, other threads:[~2014-07-28 17:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-17 19:46 orgtbl export to latex :fmt() fails Thorsten Grothe
2014-07-17 21:12 ` Nick Dokos
2014-07-17 21:54   ` Thorsten Grothe
2014-07-17 22:35     ` Nick Dokos
2014-07-18  9:46       ` Thorsten Grothe
2014-07-18 13:22         ` Nick Dokos
2014-07-18 18:59           ` Thorsten Grothe
2014-07-18  4:11   ` Nick Dokos
2014-07-19  4:09     ` Nick Dokos
2014-07-27 13:18       ` Bastien

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