From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: how can I create a new literal block for latex export? Date: Tue, 23 Jun 2015 16:15:08 +0200 Message-ID: References: <87mvzq22iy.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Oyp-0004MA-T9 for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 10:15:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Oyl-0007HQ-0S for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 10:15:15 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:15103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Oyk-0007Fo-Ph for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 10:15:10 -0400 In-Reply-To: <87mvzq22iy.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 23 Jun 2015 11:32:37 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Rasmus, On 2015-06-23 11:32, Rasmus writes: > Alan Schmitt writes: > >> Is there a way to tell org to leave the contents of myres blocks as-is? >> Can I declare myres as a literal block? > > I think your issue here is similar to Jacob's a couple of weeks back. I > don't remember the outcome anymore, but check > > http://thread.gmane.org/gmane.emacs.orgmode/97798 Thanks a lot for the link, I ended up using the solution from Charles Berry: have these header arguments :PROPERTIES: :header-args:js: :wrap latex :results output :exports both :post postenv(= "myres") :END: and use this postenv wrapper #+NAME: postenv #+BEGIN_SRC emacs-lisp :var env=3D"myres" :exports none (format "$\\Rightarrow$ \\begin{%s}\n%s\\end{%s}" env *this* env) #+END_SRC The resulting latex is exactly what I want. Thanks again, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Weekly CO=E2=82=82 average (2015-05-30, Mauna Loa Observatory): 403.41 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJViWnsAAoJEAQNCjtO0uXHRbwIALlZkKWM4Q9RtTzn5bVJZ9LX cSAfjgjH8S1LEmzI7pZpwHn9/eCemDOGJ+t/shQ2bPJStnQ1utOKJqRqOqdHQxAD zCVXj7gqIFVhpu8pLW06eD/Z1PP4+vDBggDudUennCx5rgKIeWutNZajGxezRGpj JG9g0C1kbe8mMcQv1Cpmm262bOdfw4dQJTBYBeZD5lVniMheJMaPnTVkSuEIoojd HXfOHQxeQoKwOykI8JgNq8L1AnNO71ZhX0oGshu3l9pYs5Q4v5G3cuh1V/cyu8Yk 8Q7IZqlyPNzcwVPQq5IFxXmvlja+oTrWEUhwpLSGeuwNdiv2nbCZgdW2qbTiiDI= =Tmv7 -----END PGP SIGNATURE----- --=-=-=--