From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Defining new structural markup element Date: Wed, 14 Dec 2011 12:47:30 -0500 Message-ID: <6467.1323884850@alphaville.americas.hpqcorp.net> References: <3496BDF0-8057-4079-95BF-9C6B25251602@ucsd.edu> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rasve-0005e6-A0 for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 12:47:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RasvV-0001p3-23 for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 12:47:42 -0500 Received: from g4t0017.houston.hp.com ([15.201.24.20]:15910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RasvU-0001oh-Sw for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 12:47:33 -0500 In-Reply-To: Message from "Levy, Roger" of "Wed, 14 Dec 2011 17:33:03 GMT." <3496BDF0-8057-4079-95BF-9C6B25251602@ucsd.edu> 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: "Levy, Roger" Cc: nicholas.dokos@hp.com, Org-mode Levy, Roger 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