all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to add custom markup elements and to define custom backends?
@ 2013-09-04  7:06 Vladimir Lomov
  2013-09-04  7:15 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Lomov @ 2013-09-04  7:06 UTC (permalink / raw)
  To: General discussions about Org-mode

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.

Thanks in advance, Vladimir Lomov

-- 
You will triumph over your enemy.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to add custom markup elements and to define custom backends?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2013-09-04  7:15 UTC (permalink / raw)
  To: Vladimir Lomov; +Cc: General discussions about Org-mode


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.

Regards

- Carsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to add custom markup elements and to define custom backends?
  2013-09-04  7:15 ` Carsten Dominik
@ 2013-09-04  7:33   ` Suvayu Ali
  0 siblings, 0 replies; 3+ messages in thread
From: Suvayu Ali @ 2013-09-04  7:33 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-04  7:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.