From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Text attributes, exporting Date: Tue, 06 Nov 2012 17:42:12 +0100 Message-ID: <87ip9i8yzf.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmIN-0000Np-Bk for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 11:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVmIH-0002QE-Jr for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 11:46:35 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:58060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmIH-0002PY-BH for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 11:46:29 -0500 Received: by mail-we0-f169.google.com with SMTP id u3so365941wey.0 for ; Tue, 06 Nov 2012 08:46:27 -0800 (PST) In-Reply-To: (Fabrice Popineau's message of "Tue, 6 Nov 2012 16:14:10 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau writes: > Maybe this is a silly question but who knows. > Htmlize is able to tag elemnts in src blocks and wrap them with classes. > I'd like to be able to do it for normal text too. > > There is // ++ == ** but I would like to define personalized modifiers. > There is also the ability to inline src blocks like : > src_{} > > This is closer to what I would like. Something like > class_{} > that would get exported to \{} > or to
body
(LaTeX or HTML). > > Any chance ? I would say export-snippets + macros. The former allows to generate raw code geared towards latex or html back-ends while the latter introduces syntactic sugar. For example: --8<---------------cut here---------------start------------->8--- #+MACRO: my-mod @@e-latex:\something{$1}@@@@e-html:
$1
@@ This is an example: {{{my-mod(text)}}}. --8<---------------cut here---------------end--------------->8--- Regards, -- Nicolas Goaziou