Sfoglia il codice sorgente

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 14 anni fa
parent
commit
b3e16cda95
1 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  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)