From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Colin Fraizer" Subject: Bug in inlinetask export or latex export? Date: Wed, 20 Apr 2011 08:28:32 -0400 Message-ID: <007801cbff56$77046c40$650d44c0$@cfraizer.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0079_01CBFF34.EFF4C810" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCWWQ-00086d-LC for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 08:28:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCWWO-0003To-Pq for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 08:28:42 -0400 Received: from caibbdcaaaaf.dreamhost.com ([208.113.200.5]:46717 helo=homiemail-a41.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCWWO-0003TW-Fs for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 08:28:40 -0400 Received: from homiemail-a41.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a41.g.dreamhost.com (Postfix) with ESMTP id 0DBF144C062 for ; Wed, 20 Apr 2011 05:28:38 -0700 (PDT) Received: from colinfhp (stan.inter-intelli.com [209.43.1.25]) (Authenticated sender: orgmode@cfraizer.com) by homiemail-a41.g.dreamhost.com (Postfix) with ESMTPA id 84A9644C058 for ; Wed, 20 Apr 2011 05:28:37 -0700 (PDT) Content-Language: en-us 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@gnu.org This is a multipart message in MIME format. ------=_NextPart_000_0079_01CBFF34.EFF4C810 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have a document that looks like the following. If I export the whole file, I get the whole file. (I'm exporting to LaTeX using C-c C-e d.) If I move to the line "** Level 2 A" and export that subtree using C-c C-e 1 d, the inline tasks are omitted. Is this a bug or have I just misconfigured this somehow? It seems to be caused by the fact that those inline tasks are treated as "lines before the first headline" and that org-export-latex-first-lines calls org-export-preprocess-string with a more-or-less hardcoded opt-plist that doesn't include :tasks. Is there a reason not to modify this section of org-export-latex-first-lines: (org-export-latex-content (org-export-preprocess-string (buffer-substring pt end) :for-backend 'latex :emph-multiline t :add-text nil :comments nil :skip-before-1st-heading nil :LaTeX-fragments nil :tasks (plist-get opt-plist :tasks) ;; <-- this is the line I want to add :timestamps (plist-get opt-plist :timestamps) :footnotes (plist-get opt-plist :footnotes))) ---------------------------------------------------------------------- * Level 1 A ** Level 2 A test *************** TODO Test 1 *************** END *************** TODO Test 2 *************** END *************** TODO Test 3 *************** END test2 and more ** Level 2 B ---------------------------------------------------------------------- ------=_NextPart_000_0079_01CBFF34.EFF4C810 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have a document = that looks like the following.

 

If I export the = whole file, I get the whole file. (I’m exporting to LaTeX using = C-c C-e d.)

 

If I move to the = line “** Level 2 A” and export that subtree using C-c C-e 1 = d, the inline tasks are omitted.

 

Is this a bug or = have I just misconfigured this somehow?

 

It seems to be = caused by the fact that those inline tasks are treated as “lines = before the first headline” and that org-export-latex-first-lines = calls org-export-preprocess-string with a more-or-less hardcoded = opt-plist that doesn’t include :tasks.

 

Is there a reason = not to modify this section of = org-export-latex-first-lines:

         = (org-export-latex-content

          = (org-export-preprocess-string

           = (buffer-substring pt end)

           = :for-backend 'latex

           = :emph-multiline t

           :add-text = nil

           :comments = nil

           = :skip-before-1st-heading nil

           = :LaTeX-fragments nil

   =         :tasks (plist-get = opt-plist = :tasks)           =          ;; <-- this is the = line I want to add

           = :timestamps (plist-get opt-plist :timestamps)

           :footnotes = (plist-get opt-plist :footnotes)))

 

-------------------------------------------------------------------= ---

* Level 1 = A

** Level 2 = A

test

*************** TODO = Test 1

*************** = END

*************** TODO = Test 2

*************** = END

*************** TODO = Test 3

*************** = END

test2

and = more

 

** Level 2 = B

-------------------------------------------------------------------= ---

------=_NextPart_000_0079_01CBFF34.EFF4C810--