From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Edgington Subject: Comment lines interfere with figure options Date: Fri, 30 Oct 2015 08:23:16 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs8is-0007lP-AR for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 08:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs8ir-0006BY-GU for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 08:23:58 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:37859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs8ir-0006B6-7L for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 08:23:57 -0400 Received: by wmff134 with SMTP id f134so10617175wmf.0 for ; Fri, 30 Oct 2015 05:23:56 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode If I have some org-mode content that looks like this... #+NAME: fig-myimage #+CAPTION: Caption of Figure #+ATTR_LaTeX: :width 5cm #+RESULTS: myimage [[file:images/myimage.png]] then I get a centered figure with the appropriate width and caption when exporting to LaTeX. If, however, I add a comment (or two) in-between one of the option-lines... #+NAME: fig-myimage #+CAPTION: Caption of Figure # (this was the original width) # +ATTR_LaTeX: width 10cm #+ATTR_LaTeX: :width 5cm #+RESULTS: myimage [[file:images/myimage.png]] then all of the settings above the comments are lost. Would it be difficult to modify org-mode so that comment-lines are ignored when looking for a block of settings lines that precede an image? This seems like sensible behavior to me, and there are cases when it would be convenient to annotate the options you've used, or to temporarily replace one option-line with another by commenting one out.