From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: How to add custom markup elements and to define custom backends? Date: Wed, 4 Sep 2013 09:33:10 +0200 Message-ID: <20130904073310.GB679@kuru.dyndns-at-home.com> References: <20130904070606.GA802@smoon> <22F8B30C-7CF5-42D7-8B96-E15ED2A6CE72@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH7ac-0002KL-Hn for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 03:33:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VH7aV-0004on-CG for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 03:33:22 -0400 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:64043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH7aV-0004og-4H for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 03:33:15 -0400 Received: by mail-ee0-f51.google.com with SMTP id c1so3427801eek.24 for ; Wed, 04 Sep 2013 00:33:14 -0700 (PDT) Content-Disposition: inline In-Reply-To: <22F8B30C-7CF5-42D7-8B96-E15ED2A6CE72@gmail.com> 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: emacs-orgmode@gnu.org On Wed, Sep 04, 2013 at 09:15:56AM +0200, Carsten Dominik wrote: > > On Sep 4, 2013, at 9:06 AM, Vladimir Lomov wrote: > > > Hello, > > sometimes I need markup elements than missing in Org mode, for example > > combination of both bold and italic. Some backends, for instance html > > and latex (with minor exception) support such combinations. So I wonder > > 1) how to define custom or new markup elements that can be used in > > backends, if it is possible > > 2) and how to extend or customize (write a custom backend) to take into > > accout these new elements. > > > > Hi Vladimir, > > Org mode does not support this directly (and to be honest, I know very few applications > where combining different attributes makes a lot of sense). > > You could probably play with org-emphasis-alist and org-latex-text-markup-alist to cook something up. > but first I would think very hard about the question if this is really needed and does not create too much visual clutter. I agree with Carsten on the last point about visual clutter. That said, if the OP rarely uses one of the standard mark-ups, say +strikethrough+, then an export filter overriding the default would do just fine. For an example, see here: Hope this helps, -- Suvayu Open source is the future. It sets us free.