Browse Source

inlinetask: illustrate LaTeX export template with a new example

* lisp/org-inlinetask.el (org-inlinetask-export-templates): added
  Sébastien Vauban's suggestion for LaTeX export in docstring. This is
  not default as it requires an additional LaTeX package: "todonotes".
Nicolas Goaziou 10 years ago
parent
commit
b3e16cda95
1 changed files with 5 additions and 6 deletions
  1. 5 6
      lisp/org-inlinetask.el

+ 5 - 6
lisp/org-inlinetask.el

@@ -147,13 +147,12 @@ As an example, valid associations are:
 
 (html \"<ul><li>%s <p>%s</p></li></ul>\" (heading content))
 
-or, in a conditional way,
+or, with the additional package \"todonotes\" for LaTeX,
 
-(latex \"\\\\begin\{flushright\}%s%s%s\\\\end\{flushright\}\"
-       ((unless (eq todo \"\")
-	  (format \"\\\\textsc\{%s%s: \}\" todo priority))
-	heading
-	(unless (eq content \"\") (format \"\\n%s\" content))))")
+(latex \"\\todo[inline]{\\textbf{\\textsf{%s %s}}\\linebreak{} %s}\"
+       '((unless (eq todo \"\")
+	   (format \"\\textsc{%s%s}\" todo priority))
+	 heading content)))")
 
 (defvar org-odd-levels-only)
 (defvar org-keyword-time-regexp)