bugtex4ht - Bugs: bug #130, Bug in hyperref.4ht/nameref.4ht ?

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #130: Bug in hyperref.4ht/nameref.4ht ?

Submitted by:  Pétiard François <petiard>
Submitted on:  Thu Apr 29 06:51:06 2010  
Votes:  10  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: CV Radhakrishnan <cvr>
Open/Closed: Closed

Sat Apr 27 10:05:44 2013, comment #2:

Whereas the François' patch used to work nicely, it is not the case anymore, despoite an up-to-date TeX Live 2012: the following MCE (say test.tex):

run with `htlatex test`, gives the following error:

and, in the html output, `\nameref{test}` is replaced by: `:autorefsectionSome title<!--tex4ht:ref: test -->`

Bitouze <denisbitouze>
Sat Sep 4 16:03:12 2010, comment #1:

Instead of inserting the whole \no@sect macros, we can do the following:

\let\NR:no@sect\no@sect
\def\no@sect#1#2#3#4#5#6[#7]#8{\gdef\NR:Title{\a:newlabel{#7}}%
\NR:no@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{#8}}

\:StartSect definition shall be changed in the following manner:

\def\:StartSec#1#2#3{%
\gdef\NR:Type{#1}%
\NR:StartSec{#1}{#2}{#3}%
\gdef\@currentlabelname{#1}%
}

Thanks for the bug report and patch. The patch has been applied in the above fashion to the literate sources, new nameref.4ht generated and committed to svn.

CV Radhakrishnan <cvr>
Project AdministratorIn charge of this item.
Thu Apr 29 06:51:06 2010, original submission:

Hello

It seems there is a bug with hyperref.4ht/nameref.4ht.

I attach the file test.tex.

If you run twice pdflatex on test.tex, the commands \nameref{test1} and \nameref{test2} gives hyperlinks Court1 and Court2.

If you run htlatex on test.tex, the commands \nameref{test1} and \nameref{test2} gives hyperlinks Long1 and Long2.

I have found a patch: if you uncomment lines 12 to 22 of test.tex and if you run htlatex, then the commands \nameref{test1} and \nameref{test2} gives hyperlinks Court1 and Court2

But:

1/ I don't know if that patch is robust and works in all cases (side-effects if package hyperref not loaded?)

2/ I don't know where to put these lines of code (I think the new definition of \:StartSec must be in nameref.4ht, but where must be the new definition of \no@sect?)

Best regards

François Pétiard

Pétiard François <petiard>

 

Attached Files
file #11:  test.tex added by petiard (1kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by denisbitouze (Posted a comment)
  • -unavailable- added by cvr (Posted a comment)
  • -unavailable- added by denisbitouze (Voted in favor of this item)
  • -unavailable- added by petiard (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 10 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    5 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Sep 4 16:03:12 2010cvrStatusNone=>Fixed
      Assigned toNone=>cvr
      Open/ClosedOpen=>Closed
    Sat May 1 09:16:32 2010denisbitouzeCarbon-Copy-=>Added denisbitouze
    Thu Apr 29 06:51:06 2010petiardAttached File-=>Added test.tex, #11
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray