From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: List number resetting when using anchor tag in exported HTML Date: Thu, 28 Jan 2010 20:15:12 +0100 Message-ID: References: <87ljfkonxo.wl%ucecesf@ucl.ac.uk> <87wrz40zv5.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NadXG-0006OR-7Y for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NadXA-0006Lk-TI for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:25 -0500 Received: from [199.232.76.173] (port=41608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NadXA-0006Lg-Mz for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:20 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:54142) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NadX9-0005yc-QJ for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:20 -0500 Received: by mail-ew0-f224.google.com with SMTP id 24so1354714ewy.26 for ; Thu, 28 Jan 2010 15:12:19 -0800 (PST) In-Reply-To: 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: Jere McDevitt Cc: emacs-orgmode@gnu.org On Jan 28, 2010, at 2:20 PM, Jere McDevitt wrote: > If I key in what you list below with the list numbers flush or =20 > indented only 1 space, then yes the line numbers reset to 4 & 5 in =20 > the org file, but if you export that to HTML, because the =20 > <> is not preceded by a comment mark, it shows up in the =20 > generated HTML as text. If the comment marker is put in place, the =20= > numbering resets but the anchor does not have any visible text, the =20= > generated tag is wrapped in

tags and the enumeration is =20 > stopped/started around it. > > Is there a way to define the anchor so the numbering continues as =20 > desired in both org and generated HTML, but no text is visible in =20 > the generated HTML? > > > --8<---------------cut here---------------start------------->8--- > * This is the first header line > > 1. This is line number 1 > 2. This is line number 2 > 3. This is line number 3 > <> > 4. This should be line number 4, but is reset by the anchor tag > 5. This should be line number 5. > --8<---------------cut here---------------end--------------->8--- > Hi Jere, here is how to do this, but it is not creating links to that anchor automatically. You have to make these explicitly, like [[#anchor2][A link to item 3]] * This is the first header line 1. This is line number 1 2. This is line number 2 3. This is line number 3 #+HTML: 4. This should be line number 4, but is reset by the anchor tag 5. This should be line number 5. > >

    >
  1. > List item 1 >
  2. >
  3. > > List item 2 >
  4. >
  5. > > List item 3 > Anchor1 > >
  6. >
  7. > > List item 4 >
  8. >
  9. > List item 5 > >
  10. > >
> > > > Table of Contents > =95 1 Header line 1 > 1 Header line 1 > =95 List item 1 > =95 List item 2 > =95 List item 3 Anchor1 > =95 List item 4 > =95 List item 5 > > > On Wed, Jan 27, 2010 at 2:29 AM, Eric S Fraga =20 > wrote: > At Tue, 26 Jan 2010 16:01:23 +0000, > Eric S Fraga wrote: > > > The following works just fine (at least for HTML export, not sure =20= > about anything else): > > > > --8<---------------cut here---------------start------------->8--- > > * This is the first header line > > > > 1. This is line number 1 > > 2. This is line number 2 > > 3. This is line number 3 > > <> > > 1. This should be line number 4, but is reset by the anchor tag > > 2. This should be line number 5. > > --8<---------------cut here---------------end--------------->8--- > > > > Note the indentation in particular. > > (responding to my own post... sorry!) > > The above is a little misleading as it looks like org is confused with > respect to list numbering. I should have said that the numbering > above was incorrect only because I hadn't given org a chance to update > the numbers. Hitting, for instance, C-cC-c on the last line gives: > > --8<---------------cut here---------------start------------->8--- > * This is the first header line > > 1. This is line number 1 > 2. This is line number 2 > 3. This is line number 3 > <> > 4. This should be line number 4, but is reset by the anchor tag > 5. This should be line number 5. > --8<---------------cut here---------------end--------------->8--- > > Apologies for any confusion caused! > > eric > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten