From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug Report: latex export interaction with inlinetasks Date: Sun, 09 Oct 2011 14:05:52 +0200 Message-ID: <87aa9acqu7.fsf@gmail.com> References: <002901cc8592$cadd6c50$609844f0$@cfraizer.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCs9q-0008PX-RN for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 08:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCs9p-0006jB-8h for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 08:07:06 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:34339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCs9p-0006ir-49 for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 08:07:05 -0400 Received: by wwp14 with SMTP id 14so6657869wwp.30 for ; Sun, 09 Oct 2011 05:07:04 -0700 (PDT) In-Reply-To: <002901cc8592$cadd6c50$609844f0$@cfraizer.com> (Colin Fraizer's message of "Sat, 8 Oct 2011 04:17:56 -0400") 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: Colin Fraizer Cc: emacs-orgmode@gnu.org Hello, "Colin Fraizer" writes: > I have a file like this: > > > > * Item 1 > > - list1a > > - list1b > > * Item 2 > > - list2a > > *************** TODO Test > > *************** END > > - list2b > > * Item 3 > > > > (1) If I export the whole file to LaTeX, everything works fine. > > (2) If I export the subtree "* Item 2" to HTML, everything works fine. > (I see my list and the inlinetask in that list.) > > (3) If I export the subtree "* Item 2" to LaTeX, the inlinetask is > removed. (All inlinetasks are removed from list2.) > > > This is apparently caused by the fact that: > > 1. org-export-latex-first-lines matches all of list2 (because there > are no headlines under "* Item 2"); AND > > 2. org-export-preprocess-string is called with limited parameters on > those first lines. Those parameters do not include my value for ":tasks". > > Is there a reason why we could not (or should not) change the defun > org-export-latex-first-lines like the following. I only add the line > > ":tasks (plist-get opt-plist :tasks)" > > I'm not familiar enough with the guts of org to know if that will have > terrible consequences elsewhere. > > (defun org-export-latex-first-lines (opt-plist &optional beg end) > : > : > (prog1 > (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) ;; *** I PROPOSE ADDING THIS LINE > :timestamps (plist-get opt-plist :timestamps) > :footnotes (plist-get opt-plist :footnotes))) > : > : > ) ; end of defun I think this should be safe. Do you want to make a patch for that? Regards, -- Nicolas Goaziou