emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Magnus Nilsson <magnus.nilsson@alumni.chalmers.se>,
	emacs-orgmode@gnu.org,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: abstract in exported latex and html
Date: Mon, 01 Nov 2010 22:47:28 +0100	[thread overview]
Message-ID: <4CCF3570.6080103@christianmoe.com> (raw)
In-Reply-To: <348D332D-B38C-49C0-906B-AA42BDD3E0E6@tsdye.com>

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

  reply	other threads:[~2010-11-01 21:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-31  8:47 abstract in exported latex and html Magnus Nilsson
2010-10-31 15:41 ` Carsten Dominik
2010-10-31 16:42   ` Thomas S. Dye
2010-11-01 21:47     ` Christian Moe [this message]
2010-11-01 22:32       ` Thomas S. Dye
2010-11-02  4:45       ` Carsten Dominik
2010-11-02 11:22         ` Christian Moe
2010-11-02 12:21           ` Carsten Dominik
2010-11-02 16:15           ` Thomas S. Dye

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=4CCF3570.6080103@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=magnus.nilsson@alumni.chalmers.se \
    --cc=tsd@tsdye.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).