emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Ulf Stegemann <ulf-news@zeitform.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] HTML exporting numbered literal examples
Date: Mon, 3 Aug 2009 06:27:12 +0200	[thread overview]
Message-ID: <7799BE98-6F6A-437D-AA63-7DCA734970B6@gmail.com> (raw)
In-Reply-To: <zf.upnvdm2cezl.fsf@zeitform.de>

Fixed, thanks.

- Carsten

On Jul 9, 2009, at 12:44 PM, Ulf Stegemann wrote:

> 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
>
> --8<--------------------------snip-------------------------->8---
> (save-excursion                  (ref:sc)
> 1:     (goto-char (point-min))
> --8<--------------------------snap-------------------------->8---
>
> with reference `sc' broken.
>
> Can anyone reproduce this?
>
> 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.
>
> Ulf
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      parent reply	other threads:[~2009-08-03  4:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-09 10:44 [BUG] HTML exporting numbered literal examples Ulf Stegemann
2009-07-16 19:43 ` Bastien
2009-07-17 10:10   ` Ulf Stegemann
2009-07-17 14:50     ` Bastien
2009-07-17 21:08       ` Ulf Stegemann
2009-07-18  7:15         ` Bastien
2009-07-20 11:36           ` Ulf Stegemann
2009-07-23 19:58             ` Bastien
2009-07-24  6:38               ` Ulf Stegemann
2009-08-03  4:27 ` Carsten Dominik [this message]

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=7799BE98-6F6A-437D-AA63-7DCA734970B6@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ulf-news@zeitform.de \
    /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).