Here is the minimum-example:
-->
\documentclass{article}
\usepackage{hyperref}
\newcommand{\qclass}[1]{\href{http://doc.trolltech.com/4.6/\lowercase{#1}.html}{\tt{#1}}}
\begin{document}
\qclass{QObject}
\end{document}
<--
The resulting URL should be
http://doc.trolltech.com/4.6/qobject.html
but ...
Search found 2 matches
- Tue Feb 09, 2010 1:49 pm
- Forum: General
- Topic: Convert hyperref url to lowercase
- Replies: 2
- Views: 1675
- Tue Feb 09, 2010 10:37 am
- Forum: General
- Topic: Convert hyperref url to lowercase
- Replies: 2
- Views: 1675
Convert hyperref url to lowercase
Hi,
how can I convert an url to all lowercase for use in the \href-command?
I would like to have a command, e.g.
\newcommand{\class}[1]{\href{http://xyz/docbase/#1.html}{#1}}
to write
\class{MyClass}
resulting in an url
http://xyz/docbase/myclass.html
inside the \href-command.
I tried ...
how can I convert an url to all lowercase for use in the \href-command?
I would like to have a command, e.g.
\newcommand{\class}[1]{\href{http://xyz/docbase/#1.html}{#1}}
to write
\class{MyClass}
resulting in an url
http://xyz/docbase/myclass.html
inside the \href-command.
I tried ...