From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jere McDevitt Subject: Re: List number resetting when using anchor tag in exported HTML Date: Thu, 28 Jan 2010 08:20:20 -0500 Message-ID: References: <87ljfkonxo.wl%ucecesf@ucl.ac.uk> <87wrz40zv5.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1972670830==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaUIP-0008EM-FL for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 08:20:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaUIJ-0008CU-QN for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 08:20:28 -0500 Received: from [199.232.76.173] (port=45998 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaUIJ-0008CR-JB for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 08:20:23 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:36098) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaUIJ-0007CV-03 for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 08:20:23 -0500 Received: by ewy24 with SMTP id 24so743186ewy.26 for ; Thu, 28 Jan 2010 05:20:21 -0800 (PST) In-Reply-To: <87wrz40zv5.wl%ucecesf@ucl.ac.uk> 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: emacs-orgmode@gnu.org --===============1972670830== Content-Type: multipart/alternative; boundary=0016e6dab6dc7e241c047e396189 --0016e6dab6dc7e241c047e396189 Content-Type: text/plain; charset=ISO-8859-1 If I key in what you list below with the list numbers flush or indented only 1 space, then yes the line numbers reset to 4 & 5 in the org file, but if you export that to HTML, because the <> is not preceded by a comment mark, it shows up in the generated HTML as text. If the comment marker is put in place, the numbering resets but the anchor does not have any visible text, the generated tag is wrapped in

tags and the enumeration is stopped/started around it. Is there a way to define the anchor so the numbering continues as desired in both org and generated HTML, but no text is visible in 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---

  1. List item 1
  2. List item 2
  3. List item 3 Anchor1
  4. List item 4
  5. List item 5
Table of Contents - 1 Header line 1 1 Header line 1 1. List item 1 2. List item 2 3. List item 3 Anchor1 4. List item 4 5. List item 5 On Wed, Jan 27, 2010 at 2:29 AM, Eric S Fraga 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 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 > --0016e6dab6dc7e241c047e396189 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If I key in what you list below with the list numbers flush or indented only 1 space, then yes the line numbers reset to 4 & 5 in the org file, but if you export that to HTML, because the <<Anchor1>> is not preceded by a comment mark, it shows up in the generated HTML as text.=A0 If the comment marker is put in place, the numbering resets but the anchor does not have any visible text, the generated <a> tag is wrapped in <p> tags and the enumeration is stopped/started around it.=A0

Is there a way to define the anchor so the numbering continues as desired in both org and generated HTML, but no text is visible in the generated HTML?


--8<---------------cut her= e---------------start------------->8---
* This is the first header line

=A01. This is line number 1
=A02. This is line number 2
=A03. This is line number 3
=A0 =A0 <<Anchor1>>
=A04. This should be line number 4, but is reset by the anchor = tag
=A05. This should be line number 5.
--8<---------------cut here---------------end--------------->8---


<ol>
<li>=
List item 1
</li>
<li>
<= br>List item 2
</li>
<li>
List item 3  
<a name=3D&q= uot;Anchor1" class=3D"target">Anchor1</a>

</li>
&l= t;li>
List item 4
</li>
<li>
List = item 5

</li>

</ol>
<= /pre>


Table of Contents

1 Header line 1

  1. List item 1
  2. List item 2
  3. List item 3 =20 Anchor1=20
  4. List item 4
  5. List item 5


On Wed, Jan 27, 2010 at 2:29 AM, E= ric S Fraga <ucec= esf@ucl.ac.uk> 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 abou= t anything else):
>
> --8<---------------cut here---------------start------------->8--= -
> * This is the first header line
>
> =A0 1. This is line number 1
> =A0 2. This is line number 2
> =A0 3. This is line number 3
> =A0 =A0 =A0<<Anchor1>>
> =A0 1. This should be line number 4, but is reset by the anchor tag > =A0 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. =A0I should have said that the numbering
above was incorrect only because I hadn't given org a chance to update<= br> the numbers. =A0Hitting, for instance, C-cC-c on the last line gives:

--8<---------------cut here---------------start------------->8---
* This is the first header line

=A01. This is line number 1
=A02. This is line number 2
=A03. This is line number 3
=A0 =A0 <<Anchor1>>
=A04. This should be line number 4, but is reset b= y the anchor tag
=A05. This should be line number 5.
--8<---------------cut here---------------end--------------->8---

Apologies for any confusion caused!

eric

--0016e6dab6dc7e241c047e396189-- --===============1972670830== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1972670830==--