From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Inline tasks and latex export Date: Wed, 07 Sep 2011 22:00:40 +0530 Message-ID: <81ehzs8gcv.fsf@gmail.com> References: <4E6793E9.9010006@witte.net.au> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:32987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1L1t-0006zy-S1 for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 12:31:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1L1p-0004mc-9D for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 12:31:13 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:63844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1L1o-0004mQ-Qs for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 12:31:09 -0400 Received: by gyf1 with SMTP id 1so3834237gyf.0 for ; Wed, 07 Sep 2011 09:31:08 -0700 (PDT) In-Reply-To: <4E6793E9.9010006@witte.net.au> (Christopher Witte's message of "Wed, 07 Sep 2011 17:55:21 +0200") 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: Christopher Witte Cc: Org Mode You can also take some inspiration from the ?user-friendly? example in the post below. https://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg01274.html (You need to look inside the org attachment) > Hi all, > > I've been trying to get inline tasks to work with the todonotes > package. I found some information on getting the \todo{} command to > work but I couldn't find any info on getting the \missingfigure{} > command to work. Here is the solution that I came up with (mostly > stolen from org-inlinetask.el): > > Add the follow 3 lines to the start of the document: > #+LATEX_HEADER: \usepackage{todonotes} > #+TODO: TODO | DONE > #+TODO: MISSINGFIGURE | FIGUREDONE > > and put this in your .emacs file > ;; This should give better export of inline tasks to latex > ;; #+LATEX_HEADER: \usepackage{todonotes} at the start of the org file > (setq org-inlinetask-export-templates (cons '(latex "%s %s}%s}" > '((if (equal todo "MISSINGFIGURE") > (eval "\\missingfigure{") > (if (equal todo "") (eval > "\\todo[inline]{\\textbf{") (format > "\\todo[inline]{\\textbf{\\textsc\{%s}" todo)) > ) > heading content)) > org-inlinetask-export-templates)) > > It works but seeing that I'm not very good with elisp, I suspect it > could be improved on. For instance this just adds an extra entry to > org-inlinetask-export-templates instead of replacing the existing > "latex" entry. Any help on improving this would be greatly appreciated. > > Cheers, > Chris Witte. > > --