From: Fletcher Charest <fletcher.charest@gmail.com>
To: Phil Regier <pregier@ittc.ku.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Is there an environment for Org syntax?
Date: Fri, 14 Mar 2014 23:59:03 +0100 [thread overview]
Message-ID: <CAGk6a7m=jpXCr9wAj6Y6n7pqvAdHOCbgj5Y+6HqBhyWGraECqQ@mail.gmail.com> (raw)
In-Reply-To: <1187822931.636304.1394835216554.JavaMail.zimbra@ittc.ku.edu>
[-- Attachment #1: Type: text/plain, Size: 2155 bytes --]
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 <pregier@ittc.ku.edu> 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" <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
> 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
>
>
[-- Attachment #2: Type: text/html, Size: 2897 bytes --]
next prev parent reply other threads:[~2014-03-14 22:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 21:41 Is there an environment for Org syntax? Fletcher Charest
2014-03-14 22:13 ` Phil Regier
2014-03-14 22:59 ` Fletcher Charest [this message]
2014-03-14 23:04 ` Phil Regier
2014-03-14 23:21 ` Fletcher Charest
2014-03-14 23:34 ` Phil Regier
2014-03-17 13:58 ` Fletcher Charest
2014-03-18 17:10 ` Phil Regier
2014-03-19 10:09 ` Bastien
2014-03-22 17:36 ` Fletcher Charest
2014-03-15 4:44 ` Kyle Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGk6a7m=jpXCr9wAj6Y6n7pqvAdHOCbgj5Y+6HqBhyWGraECqQ@mail.gmail.com' \
--to=fletcher.charest@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=pregier@ittc.ku.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).