emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug in inlinetask export or latex export?
@ 2011-04-20 12:28 Colin Fraizer
  0 siblings, 0 replies; only message in thread
From: Colin Fraizer @ 2011-04-20 12:28 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1544 bytes --]

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



           (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


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

*************** END

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

*************** END

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

*************** END


and more


** Level 2 B


[-- Attachment #2: Type: text/html, Size: 7526 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-20 12:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-20 12:28 Bug in inlinetask export or latex export? Colin Fraizer

Code repositories for project(s) associated with this inbox:


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).