From mboxrd@z Thu Jan 1 00:00:00 1970 From: Saptarshi Guha Subject: Re: Code with line numbers in HTML export Date: Wed, 11 Mar 2009 23:55:01 -0400 Message-ID: <1e7471d50903112055s2d46c521j298b1b80b632ff3c@mail.gmail.com> References: <1e7471d50903111737n75f9a80dna654240d60a23b84@mail.gmail.com> <8671.1236824944@gamaville.dokosmarshall.org> Reply-To: saptarshi.guha@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lhc0c-00036j-P0 for emacs-orgmode@gnu.org; Wed, 11 Mar 2009 23:55:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lhc0c-00036V-9u for emacs-orgmode@gnu.org; Wed, 11 Mar 2009 23:55:02 -0400 Received: from [199.232.76.173] (port=47473 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lhc0c-00036S-1l for emacs-orgmode@gnu.org; Wed, 11 Mar 2009 23:55:02 -0400 Received: from yw-out-1718.google.com ([74.125.46.156]:4205) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lhc0b-00052Y-Mc for emacs-orgmode@gnu.org; Wed, 11 Mar 2009 23:55:01 -0400 Received: by yw-out-1718.google.com with SMTP id 6so608571ywa.66 for ; Wed, 11 Mar 2009 20:55:01 -0700 (PDT) In-Reply-To: <8671.1236824944@gamaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.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

(save-excursion (goto-char (point-min))

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 wrote: > Saptarshi Guha wrote: > >> I assume in the BEGIN_SRC region, I cannot export the code with line >> numbers, however I >> came across this >> =C2=A0.linenr =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0the line number i= n 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 > > =C2=A0 =C2=A0 (Info-goto-node "(org)Literal Examples") > > or on the web > > =C2=A0 =C2=A0 http://orgmode.org/manual/Literal-examples.html#Literal-exa= mples > > HTH, > Nick > > >