emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to add custom markup elements and to define custom backends?
Date: Wed, 4 Sep 2013 09:33:10 +0200	[thread overview]
Message-ID: <20130904073310.GB679@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <22F8B30C-7CF5-42D7-8B96-E15ED2A6CE72@gmail.com>

On Wed, Sep 04, 2013 at 09:15:56AM +0200, Carsten Dominik wrote:
> 
> On Sep 4, 2013, at 9:06 AM, Vladimir Lomov <lomov.vl@gmail.com> 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:

<http://orgmode.org/worg/exporters/beamer/ox-beamer.html#export-filters>

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

      reply	other threads:[~2013-09-04  7:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04  7:06 How to add custom markup elements and to define custom backends? Vladimir Lomov
2013-09-04  7:15 ` Carsten Dominik
2013-09-04  7:33   ` Suvayu Ali [this message]

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=20130904073310.GB679@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).