From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fletcher Charest Subject: Re: Is there an environment for Org syntax? Date: Fri, 14 Mar 2014 23:59:03 +0100 Message-ID: References: <1187822931.636304.1394835216554.JavaMail.zimbra@ittc.ku.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1139bae8221d7e04f49904b7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOb4D-0001cA-CL for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 18:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOb4C-0003xU-2s for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 18:59:05 -0400 Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:35509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOb4B-0003xP-Sh for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 18:59:03 -0400 Received: by mail-qc0-f178.google.com with SMTP id i8so3653485qcq.37 for ; Fri, 14 Mar 2014 15:59:03 -0700 (PDT) In-Reply-To: <1187822931.636304.1394835216554.JavaMail.zimbra@ittc.ku.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: Phil Regier Cc: emacs-orgmode@gnu.org --001a1139bae8221d7e04f49904b7 Content-Type: text/plain; charset=ISO-8859-1 Yes, thank you very much, that was it. I was thinking about doing this, but I didn't know how to "escape" the syntax. This is quite embarrassing since I just noticed that it is explained in the manual, and even more, since the comma is added automatically when you edit the org code by hitting C-c ' anyway... Thanks again! Best regards, FC On Fri, Mar 14, 2014 at 11:13 PM, Phil Regier wrote: > I had thought that '#+begin_src org :exports code' would do just this, > though I believe you have to then begin each line with a comma inside the > block. > > For me, the following: > > #+begin_src org :exports code > ,#+begin_src org :exports code > ,#+end_src > #+end_src > > produces Org code via the HTML and Latex export backends. I think there > are syntax highlighting export extensions in the wild (just search the web > for something like 'org export syntax highlighting' to see a diverse > collection of proposed solutions; Pygments appears to be a common theme, > though I know nothing about it), but AFAIK they are not distributed with > Org at this time. > > Does that at least address the first part of your inquiry? Sorry I > couldn't offer anything actionable for the second; maybe someone else can > pick up where I left off. > > Phil > > ----- Original Message ----- > From: "Fletcher Charest" > To: emacs-orgmode@gnu.org > Sent: Friday, March 14, 2014 4:41:12 PM > Subject: [O] Is there an environment for Org syntax? > > Dear all, > > I am currently writing a practical tutorial about Org for absolute > beginners. In the end, I would like to export it in multiple formats, HTML > for sure, but maybe LaTeX too (I am, of course, writing it with org-mode). > I am not aware of a functionality, or hack, which would allow me to include > Org syntax in the document, without it being taken into account by Org > itself and the exporter as being part of the document structure. Instead, > I'd like it to be exported as it appears in my Emacs Org file, including > colors, etc. I hope I am explaining this clearly. > > Is it possible? > > Thank you very much for you help, > > FC > > --001a1139bae8221d7e04f49904b7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes, thank you very much, that was it. I was thinking= about doing this, but I didn't know how to "escape" the synt= ax. This is quite embarrassing since I just noticed that it is explained in= the manual, and even more, since the comma is added automatically when you= edit the org code by hitting C-c ' anyway...

Thanks again!

Best regards,
=
FC


On Fri, Mar 14, 2014 at 11:13 PM, Phil Regier <pregi= er@ittc.ku.edu> wrote:
I had thought that '#+begin_src org :exp= orts code' would do just this, though I believe you have to then begin = each line with a comma inside the block.

For me, the following:

#+begin_src org :exports code
,#+begin_src org :exports code
,#+end_src
#+end_src

produces Org code via the HTML and Latex export backends. =A0I think there = are syntax highlighting export extensions in the wild (just search the web = for something like 'org export syntax highlighting' to see a divers= e collection of proposed solutions; Pygments appears to be a common theme, = though I know nothing about it), but AFAIK they are not distributed with Or= g at this time.

Does that at least address the first part of your inquiry? =A0Sorry I could= n't offer anything actionable for the second; maybe someone else can pi= ck up where I left off.

Phil

----- Original Message -----
From: "Fletcher Charest" <fletcher.charest@gmail.com>
To: emacs-orgmode@gnu.org
Sent: Friday, March 14, 2014 4:41:12 PM
Subject: [O] Is there an environment for Org syntax?

Dear all,

I am currently writing a practical tutorial about Org for absolute
beginners. In the end, I would like to export it in multiple formats, HTML<= br> for sure, but maybe LaTeX too (I am, of course, writing it with org-mode).<= br> I am not aware of a functionality, or hack, which would allow me to include=
Org syntax in the document, without it being taken into account by Org
itself and the exporter as being part of the document structure. Instead, I'd like it to be exported as it appears in my Emacs Org file, includin= g
colors, etc. I hope I am explaining this clearly.

Is it possible?

Thank you very much for you help,

FC


--001a1139bae8221d7e04f49904b7--