bugtex4ht - Bugs: bug #181, Hyperref's nolinkurl not correctly...

 
 
Show feedback again

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

bug #181: Hyperref's nolinkurl not correctly handled by tex4ht when biblatex is present

Submitted by:  Kristian Debrabant <debrabant>
Submitted on:  Fri 22 Mar 2013 04:00:23 PM EET  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: Works For Me
Privacy: PublicAssigned to: CV Radhakrishnan <cvr>
Open/Closed: Closed

Sun 24 Mar 2013 07:31:31 AM EET, comment #2:

Apologies, I posted my comment before testing your example code. It already works as expected with the latest version of biblatex.4ht. I got the following output for your MWE:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht http://www.tug.org/tex4ht/)">
<!-- html -->
<meta name="src" content="kristian1.tex">
<meta name="date" content="2013-03-24 10:54:00">
<link rel="stylesheet" type="text/css" href="kristian1.css">
</head>

<body>
<p class="noindent"><a href="https://www.tug.org/tex4ht/"><span lass=
"cmtt-10">tex4ht</span></a></p>
</body>
</html>

Attached is biblatex-2.5.4ht which you may rename to biblatex.4ht and try your document.

Radhakrishnan

(file #132)

CV Radhakrishnan <cvr>
Project AdministratorIn charge of this item.
Sat 23 Mar 2013 07:47:09 AM EET, comment #1:

Do we really need \href{https://www.tug.org/tex4ht}{\nolinkurl{tex4ht}}? Is it not \href{https://www.tug.org/tex4ht}{tex4ht} the correct format?

\nolinkurl{...} as per hyperref documentation is meant to print URL without a link.

CV Radhakrishnan <cvr>
Project AdministratorIn charge of this item.
Fri 22 Mar 2013 04:00:23 PM EET, original submission:

Dear all,

The following example,

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}
\usepackage{biblatex}
\usepackage{hyperref}
\begin{document}
\href{https://www.tug.org/tex4ht/}{\nolinkurl{tex4ht}}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

gives with pdf-latex (as it should) a link to https://www.tug.org/tex4ht/, with caption tex4ht.

However, the output of htlatex gives instead a local link to tex4ht, by generating the following output:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...

<!--l. 5--><p class="noindent" ><a
href="https://www.tug.org/tex4ht/" ><a
href="tex4ht" ><span
class="cmtt-10">tex4ht</span></a></a>

</body></html>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

This seems only to happen if biblatex is loaded.

\href{...}{\nolinkurl{...}} is a typical construction e.g. in the defaultstyle of eprint-references in biblatex.

Best regards
Kristian

Kristian Debrabant <debrabant>

 

Attached Files
file #132:  biblatex-2.5.4ht added by cvr (15kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cvr (Posted a comment)
  • -unavailable- added by debrabant (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 0 encouragements so far.

    Only logged-in users can vote.

     

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

     

     

    4 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Apr 2013 05:47:33 AM EESTcvrStatusNone=>Works For Me
      Open/ClosedOpen=>Closed
    Sun 24 Mar 2013 07:31:31 AM EETcvrAttached File-=>Added biblatex-2.5.4ht, #132
    Sat 23 Mar 2013 07:47:09 AM EETcvrAssigned toNone=>cvr
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray