Levy, Roger <rl...@ucsd.edu> 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