all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Christopher Witte <chris@witte.net.au>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Inline tasks and latex export
Date: Wed, 07 Sep 2011 22:00:40 +0530	[thread overview]
Message-ID: <81ehzs8gcv.fsf@gmail.com> (raw)
In-Reply-To: <4E6793E9.9010006@witte.net.au> (Christopher Witte's message of "Wed, 07 Sep 2011 17:55:21 +0200")


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

-- 

      reply	other threads:[~2011-09-07 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-07 15:55 Inline tasks and latex export Christopher Witte
2011-09-07 16:30 ` Jambunathan K [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81ehzs8gcv.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=chris@witte.net.au \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.