|
From: | Thomas S. Dye |
Subject: | Re: [Orgmode] abstract in exported latex and html |
Date: | Sun, 31 Oct 2010 06:42:48 -1000 |
On Oct 31, 2010, at 5:41 AM, Carsten Dominik wrote:
Alternatively, you could use the existing link syntax for this kind of markup. See http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-12 For example you could define a link type latex-env in your .emacs: (org-add-link-type "latex-env" nil (lambda (path desc format) (cond ((eq format 'html) (format "<span style=\"color:grey;\">%s</span>" desc)) ((eq format 'latex) (format "\\begin{%s}%s\\end{%s}" path desc path))))) with this input [[latex-env:abstract][My abstract goes here.]], LaTeX export yields \begin[abstract} My abstract goes here. \end{abstract} You'd have to fiddle with the html part so that it suits your needs, but that might not be too hard. HTH, Tom |
[Prev in Thread] | Current Thread | [Next in Thread] |