emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Klein <RoKlein@roklein.de>
To: emacs-orgmode@gnu.org
Subject: Re: comment section with latex_header
Date: Tue, 24 Mar 2015 08:13:08 +0100	[thread overview]
Message-ID: <55110E84.3060408@roklein.de> (raw)
In-Reply-To: <87d23znv5a.fsf@nicolasgoaziou.fr>

On 03/24/2015 12:36 AM, Nicolas Goaziou wrote:
> Hello,
> 
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> 
>> If there are `#+latex_header:' entries in a section and that section is
>> `COMMENT'ed out, I'd expect the #+latex_header entries to be
>> uneffective.  As they are when I comment them out one by one as in
>> `# #+latex_header:'.
>>
>> Is this a bug? (I'd say, yes....)
> 
> This is fixed in c9a52787c14c3a7429bcd3c8975350525e0baa04. Thank you.
> 
> Regards,
> 


Hello,

this patch also breaks this kind of construct where not the table is
exported, but the one created from the booktabs() call:


---> begin example <---
  * Grundlagen
  *** COMMENT unexported subtree with table source
  #+tblname: masse
  | 1 gestr. Teelöffel  | 1 gestr. Eßlöffel     | 1 Tasse     |
  | ca. 5 ccm           | ca 15 ccm             | ca 120 ccm  |
  |---------------------+-----------------------+-------------|
  | Zimt 2 g            | Haferflocken 8 g      | Mehl 80 g   |
  | Paprika 2 g         | Speisestärke 9 g      | Grieß 96 g  |
  | Speisestärke 2--3 g | Mehl, Semmelmehl 10 g | Zucker 90 g |
  | Zucker 4 g          | Salz, Zucker, Öl 15 g |             |
  | Salz 5 g            | Reis, Butter 15 g     |             |

  ** Maße und Gewichte

  #+call: booktabs(table=masse, align="lll") :results latex :exports results
---> end example <---


booktabs() code is from library-of-babel.org (currently residing in the
doc directory).  Also cf.
http://orgmode.org/tmp/worg/org-contrib/babel/languages/ob-doc-LaTeX.html.



However, in this org version (8.3 beta+) you get the same / similar
results using

---> begin example <---
  ** Maße und Gewichte
  #+tblname: masse
  #+attr_latex: :align lll :booktabs t
  | 1 gestr. Teelöffel  | 1 gestr. Eßlöffel     | 1 Tasse     |
  | ca. 5 ccm           | ca 15 ccm             | ca 120 ccm  |
  |---------------------+-----------------------+-------------|
  | Zimt 2 g            | Haferflocken 8 g      | Mehl 80 g   |
  | Paprika 2 g         | Speisestärke 9 g      | Grieß 96 g  |
  | Speisestärke 2--3 g | Mehl, Semmelmehl 10 g | Zucker 90 g |
  | Zucker 4 g          | Salz, Zucker, Öl 15 g |             |
  | Salz 5 g            | Reis, Butter 15 g     |             |
---> end example <---


This change probably ought to be mentioned in the Changes for a 8.3 release.

Best regards,
Robert

  parent reply	other threads:[~2015-03-24  7:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-22 11:02 comment section with latex_header Andreas Leha
2015-03-22 11:37 ` Rasmus
2015-03-23  8:31   ` Andreas Leha
2015-03-23 10:01     ` Rasmus
2015-03-23 10:09       ` Andreas Leha
2015-03-23  8:56   ` Sebastien Vauban
2015-03-23 23:36 ` Nicolas Goaziou
2015-03-23 23:54   ` Andreas Leha
2015-03-24  7:13   ` Robert Klein [this message]
2015-03-24  8:41     ` Nicolas Goaziou
2015-03-24  9:04       ` Sebastien Vauban
2015-03-25 11:46         ` Robert Klein
2015-03-26  8:35           ` Sebastien Vauban
2015-03-26 13:06             ` Andreas Leha
2015-03-26 20:17               ` Nicolas Goaziou
2015-03-26 21:02                 ` Andreas Leha
2015-03-27 11:02                   ` Nicolas Goaziou
2015-03-27 11:24                     ` Andreas Leha
2015-03-27 12:09                     ` Robert Klein
2015-03-28 15:00                       ` Nicolas Goaziou
2015-03-26 20:14         ` 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

  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=55110E84.3060408@roklein.de \
    --to=roklein@roklein.de \
    --cc=emacs-orgmode@gnu.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).