From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: abstract in exported latex and html Date: Tue, 2 Nov 2010 13:21:40 +0100 Message-ID: <55120744-A4B9-45BE-B91D-FC3CF25FA0D5@gmail.com> References: <348D332D-B38C-49C0-906B-AA42BDD3E0E6@tsdye.com> <4CCF3570.6080103@christianmoe.com> <4CCFF484.6010607@christianmoe.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=36898 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDGur-0004hT-RX for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 09:28:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDFs0-0000aU-2k for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 08:21:45 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:34064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDFrz-0000aH-Si for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 08:21:44 -0400 Received: by ewy25 with SMTP id 25so3221305ewy.0 for ; Tue, 02 Nov 2010 05:21:43 -0700 (PDT) In-Reply-To: <4CCFF484.6010607@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: Magnus Nilsson , emacs-orgmode@gnu.org Hi Christian, thank you very much! - Carsten On Nov 2, 2010, at 12:22 PM, Christian Moe wrote: > Hi, > > Written up, with an added note about org-exp-blocks, and pushed to: > > http://orgmode.org/worg/org-faq.php#include-abstract-in-export-to-latex-and-html > http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-12 > > In the latter, BTW, I have also made a small change in the "semantic- > markup" src block: the example now sets a class rather than style on > HTML export, keeping it semantic. The debate on extensible markup > solutions continues, I think, but I'm glad some people find the > custom-link idea useful, in the interim at least. > > Yours, > Christian > > > On 11/2/10 5:45 AM, Carsten Dominik wrote: >> This is great and should be in the FAQ or another good place on Worg. >> >> Thanks! >> >> - Carsten >> >> On Nov 1, 2010, at 10:47 PM, Christian Moe wrote: >> >>> 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
element. >>> Here are some sample style lines for your org document header >>> (without line wraps): >>> >>> #+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 >> >> > > > -- > > Christian Moe > E-mail: mail@christianmoe.com > Website: http://christianmoe.com > - Carsten