[tex4ht] [bug #131] url/ olinkurl do not expand macros

CV Radhakrishnan puszcza-hackers at gnu.org.ua
Sat Sep 4 13:43:46 CEST 2010


Update of bug #131 (project tex4ht):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 
                 Summary: url/
olinkurl do not expand macros => url/ olinkurl do not expand macros

    _______________________________________________________

Follow-up Comment #1:

documentclass{article}
usepackage{hyperref}

newcommand{myUrl}{http://www.gnu.org}

urldef{myURL}url{http://www.gnu.org}

begin{document}

begin{description}
item[Query:] The url macro does not behave as expected in tex4ht: if  its
argument is actually a macro, it is not expanded, and instead of a link to the
value of the macro, we have a link to the name of the macro:

url{myUrl}

This is not the behavior of PDFLaTeX.

item[Answer:] Instead of defining the URL as a TeX macro, please define URL
as provided in the url package, then TeX4ht behaves as expected. Your
definition shall be changed to the format using verb+urldef+ instead of
verb+def+. The usage shall be then, verb+myURL+.

myURL

This should succeed both in pdfLaTeX and TeX4ht.

end{description}

end{document} 


    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?131>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list