From: Saptarshi Guha <saptarshi.guha@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Code with line numbers in HTML export
Date: Wed, 11 Mar 2009 23:55:01 -0400 [thread overview]
Message-ID: <1e7471d50903112055s2d46c521j298b1b80b632ff3c@mail.gmail.com> (raw)
In-Reply-To: <8671.1236824944@gamaville.dokosmarshall.org>
Thank you, quite excited I tried this small org file
*Title
Some tex
#+BEGIN_SRC emacs-lisp -n
(save-excursion
(goto-char (point-min))
#+END_SRC
Only to get this in the html file (as copied from my browser):
(save-excursion (goto-char (point-min))
The corresponding html is
<p>(save-excursion
(goto-char (point-min))
</p>
if i remove the -n it works - the exported code is formatted but no
line numbers.
(org version 6.09a)
Saptarshi Guha
On Wed, Mar 11, 2009 at 10:29 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Saptarshi Guha <saptarshi.guha@gmail.com> wrote:
>
>> I assume in the BEGIN_SRC region, I cannot export the code with line
>> numbers, however I
>> came across this
>> .linenr the line number in a code example
>>
>> Does this mean, there is some option to generate line numbers in the
>> exported BEGIN_SRC?
>>
>
> Read the section "Literal Examples" in the org manual: evaluate the
> following form in emacs by pressing C-x C-e after the closing parenthesis
>
> (Info-goto-node "(org)Literal Examples")
>
> or on the web
>
> http://orgmode.org/manual/Literal-examples.html#Literal-examples
>
> HTH,
> Nick
>
>
>
next prev parent reply other threads:[~2009-03-12 3:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 0:37 Code with line numbers in HTML export Saptarshi Guha
2009-03-12 2:29 ` Nick Dokos
2009-03-12 3:55 ` Saptarshi Guha [this message]
2009-03-12 4:25 ` Manish
2009-03-12 4:28 ` Saptarshi Guha
2009-03-12 4:41 ` Saptarshi Guha
2009-03-12 7:14 ` Carsten Dominik
2009-03-12 13:41 ` Saptarshi Guha
2009-03-12 15:03 ` Sebastian Rose
2009-03-12 14:03 ` Nick Dokos
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e7471d50903112055s2d46c521j298b1b80b632ff3c@mail.gmail.com \
--to=saptarshi.guha@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.