[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Defining new structural markup element
From: |
Nick Dokos |
Subject: |
Re: [O] Defining new structural markup element |
Date: |
Wed, 14 Dec 2011 12:47:30 -0500 |
Levy, Roger <address@hidden> wrote:
> Hi,
>
> I'm a relative org newbie and I expect that this question is answered somew=
> here in the manual, but I've searched and I can't find the answer.
>
> I would like to define a new structural markup element for an org file and =
> specify its translation into latex. e.g., I'd like to be able to put in my=
> document
>
> #+begin_foo
> bar
> #+end_foo
>
> and have this translated into LaTeX as something like=20
>
> \em
> bar
> \em
>
> but I'd like to be able to flexibly specify the LaTeX commands inserted at =
> the beginning and end of the "foo" block. Is there an easy way to do this?
>
Not sure I understand completely what you are trying to do, but you can
do something like this:
--8<---------------cut here---------------start------------->8---
* foo
#+LATEX: \begin{foo}
bar
#+LATEX: \end{foo}
--8<---------------cut here---------------end--------------->8---
to insert arbitrary LaTeX markup at the indicated places when exporting
to latex. Other exporters will just omit the markup.
Nick