|
From: | Christian Moe |
Subject: | Re: [Orgmode] abstract in exported latex and html |
Date: | Mon, 01 Nov 2010 22:47:28 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
Use org-special-blocks
On Oct 31, 2010, at 9:47 AM, Magnus Nilsson wrote:Dear all, Is there a way to include an abstract that suits both LaTeX export and html export? I am thinking in lines of #+BEGIN_ABSTRACT: My abstract goes here #+END_ABSTRACT: and have it interpreted differently depending on the export used.
If I'm not overlooking a hitch, you can do that now with the contributed package org-special-blocks. Just put
(require 'org-special-blocks) in your .emacs.The HTML abstract won't look like anything special until you style it, it will just be wrapped in a <div class="abstract"> element. Here are some sample style lines for your org document header (without line wraps):
#+STYLE: <style>.abstract {margin: 1em; padding: 1em; border: 1px solid black}
#+STYLE: .abstract:before {content: "ABSTRACT: ";}</style> Thomas S. Dye 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
I'm all for using custom links to extend inline markup, but this is block-level, and thus handily extensible with org-special-blocks.
Cheers, Christian
[Prev in Thread] | Current Thread | [Next in Thread] |