From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Gomez" Subject: Bug: Weird interaction between ox-extra and include :minlevel Date: Thu, 12 Apr 2018 11:26:30 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6YV4-00088z-0K for emacs-orgmode@gnu.org; Thu, 12 Apr 2018 05:26:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6YV0-0003mw-SQ for emacs-orgmode@gnu.org; Thu, 12 Apr 2018 05:26:38 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:53785) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6YV0-0003kn-Ld for emacs-orgmode@gnu.org; Thu, 12 Apr 2018 05:26:34 -0400 Received: by mail-wm0-x235.google.com with SMTP id 66so10015386wmd.3 for ; Thu, 12 Apr 2018 02:26:34 -0700 (PDT) Received: from 192.168.2.2.gmail.com (ip4da153ce.direct-adsl.nl. [77.161.83.206]) by smtp.gmail.com with ESMTPSA id h33sm2131104edh.1.2018.04.12.02.26.32 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 02:26:32 -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" To: emacs-orgmode@gnu.org Hi all, TLDR: Using ox-extras :IGNORE: tags break #+INCLUDE :minlevel. Ideally ox-extras functionality could make it into ox. I'm using Org Mode to structure my thesis, and one of the Org features that I rely on the most are the #+INCLUDE derivatives. My setup is such that I have a main thesis.org file with the (simplified) following contents: -- #+latexclass: thesis #+setupfile: thesis.setup #+exclude_tags: manuscript noexport * Chapter 1 #+INCLUDE: chap1/chapter1.org :lines "3-" etc.. -- And I have chapter files where, e.g., the Methods section is formatted differently whether it is included in the main body of the thesis or in a manuscript: -- #+latexclass: manuscript #+setupfile: manuscript.setup #+exclude_tags: thesis noexport etc.. # For thesis, include methods directly * Methods :thesis: #+INCLUDE: methods.org :lines "3-" # For paper, wrap methods into a specific control sequence and adjust headline levels. * Methods :ignore:manuscript: #+LATEX: \matmethods{ #+INCLUDE: methods.org :lines "3-" :minlevel 2 #+LATEX: } * Insert Methods :ignore:manuscript: #+LATEX: \showmatmethods{} -- I don't know if this is the cleanest setup, but it works well for me because I get to reuse my files. The one issue I have with this setup, is that besides relying on IGNORE tags, I also rely on :minlevel to adjust the headlines. However, because ox-extra promotes all subtrees, it breaks minlevel's functionality. Would anyone have an idea on how to fix this? Is there any intention of bringing ox-extra functionality into main Org? Something like #+ignore_tags would be a powerful addition for fine grained export control, in my opinion. Thank you -- Daniel P. Gomez