emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [BUG] HTML exporting numbered literal examples


From: Bastien
Subject: Re: [Orgmode] [BUG] HTML exporting numbered literal examples
Date: Thu, 16 Jul 2009 21:43:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Ulf Stegemann <address@hidden> writes:

> With latest CVS Emacs and Git Org mode exporting literal examples
> (example/src) with the `-n' switch results in numbering starting on line
> *2* of the example in the resulting HTML file (LaTeX seems to be okay).
>
> The example in the manual ...
>
> --8<--------------------------snip-------------------------->8---
>   #+BEGIN_SRC emacs-lisp -n -r
>   (save-excursion                  (ref:sc)
>      (goto-char (point-min))       (ref:jump)
>   #+END_SRC
>   In line [[(sc)]] we remember the current positon.  [[(jump)][Line (jump)]]
>   jumps to point-min.
> --8<--------------------------snap-------------------------->8---
>
> ... (which is BTW not working as the manual misses the underscore in
> `#+END_SRC') results (visually) in

Fixed in the manual.

> --8<--------------------------snip-------------------------->8---
> (save-excursion                  (ref:sc)
> 1:     (goto-char (point-min))
> --8<--------------------------snap-------------------------->8---
>
> with reference `sc' broken.
>
> Can anyone reproduce this?

Yes.  And I just pushed fix for that.

> And while we are at it: Would it be feasible to have `-r' in literal
> examples even without `-n', thus removing the label in the source code
> block even if the example is not numbered. I have no concrete case where
> this may be necessary but I think that usually labels shouldn't be
> displayed in /literal/ examples.

For this I have no idea - it looks like we can wait for "concrete
examples" :)

-- 
 Bastien




reply via email to

[Prev in Thread] Current Thread [Next in Thread]