From: Nicolas Goaziou <n.goaziou@gmail.com>
To: AW <alexander.willand@t-online.de>
Cc: Nick Dokos <ndokos@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Bug in export orgtbl / LaTeX
Date: Fri, 14 Jun 2013 18:58:06 +0200 [thread overview]
Message-ID: <87fvwk1vfl.fsf@gmail.com> (raw)
In-Reply-To: <1913229.cKOtJ2ymYU@linux-ik7b.site> (AW's message of "Thu, 13 Jun 2013 21:04:34 +0200")
Hello,
AW <alexander.willand@t-online.de> writes:
> Am Donnerstag, 13. Juni 2013, 13:29:01 schrieb Nick Nick Dokos:
>> AW <alexander.willand@t-online.de> writes:
>> > Puuuuuuuuush?!
>>
>> With infinite force? But you are probably pushing against an immovable
>> wall :-)
>>
>> >> Hi!
>> >>
>> >> If I try to use orgtbl-mode in this file and export the orgtbl block
>> >> inside
>> >> the comment environment to the RECEIVE ORGTBL area, the LaTeX-file will
>> >> not
>> >> compile, because the numbering in the org-table is exported as
>> >>
>> >> \begin{enumerate}
>> >> \item installment
>> >> \end{enumerate}
>> >>
>> >> I'd say that inside tabulars numbers like "1." should not be considered
>> >> as a part of a numbered list.
>>
>> Things like this would make the syntax complicated and unpredictable
>> (there is an old romantic comedy about tourists going on a bus tour of
>> Europe, entitled "If this is Tuesday, this must be Belgium" - that's
>> what popped into my head when I read your suggestion :-)
>>
>> Nicolas has the last word of course, but if I were a betting man, I'd
>> bet that you won't get your wish.
Tssk, tssk. Don't be so pessimistic :)
`orgtbl-to-latex' doesn't use export framework at all, unlike to
`orgtbl-to-html'. One solution would be to change that:
(defun orgtbl-to-latex (table params)
"Convert the orgtbl-mode TABLE to LaTeX.
TABLE is a list, each entry either the symbol `hline' for
a horizontal separator line, or a list of fields for that line.
PARAMS is ignored."
(require 'ox-latex)
(org-export-string-as
(orgtbl-to-orgtbl table nil) 'latex t '(:with-tables t)))
However, we lose all PARAMS configuration (:splice t in particular).
Note that, according to Org syntax, "1." doesn't start a list, since
tables cannot contain lists.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2013-06-14 16:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 15:55 Bug in export orgtbl / LaTeX AW
2013-06-13 17:22 ` AW
2013-06-13 17:29 ` Nick Dokos
2013-06-13 19:04 ` AW
2013-06-14 16:58 ` Nicolas Goaziou [this message]
2013-06-17 12:34 ` AW
2013-06-17 18:20 ` Suvayu Ali
2013-06-18 20:12 ` Nicolas Goaziou
2013-06-19 11:41 ` AW
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=87fvwk1vfl.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=alexander.willand@t-online.de \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@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 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).