Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

latex,hyperref: \href in footnote, in title?

515 views
Skip to first unread message

Robert Lopez

unread,
Aug 17, 2001, 5:20:16 PM8/17/01
to
I would like to do something like:
\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{hyperref}
\begin{document}
\title{
Weekly Report\footnote{\href{http://lopez/~lopez/Weekly}{Report Archive}}
\author{Robert Lopez}
\date\today
}
\maketitle
\end{document}
or like
\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{hyperref}
\begin{document}
\title{
Weekly Report
\author{Robert Lopez}
\date\today
\thanks\href{http://lopez/~lopez/Weekly}{Report Archive}
}
\maketitle
\end{document}
but the \href does not seem to be accepted into the title. I also
tried \url but I do not seem to get any link action from that.
--
Robert...@Philips.com

Peter Wilson

unread,
Aug 17, 2001, 7:51:42 PM8/17/01
to Robert Lopez

The \footnote{} in \title{} is unlikely to work, use \thanks{}
instead.

There seem to be some misplaced {} in your \thanks example. Try
\title{Weekly Report\thanks{\href{...}{Report Archive}} }
\author{...}
\date{...}

\maketitle

If you get no other suggestions that work, as a last ditch effort
the titling package has a different implementation of the several
titling commands that might do the trick.

Peter W.

Heiko Oberdiek

unread,
Aug 17, 2001, 11:04:59 PM8/17/01
to
On 17 Aug 2001 15:20:16 -0600, Robert Lopez
<Robert...@abq.sc.philips.com> wrote:

>I would like to do something like:
> \documentclass{article}
> \usepackage[pdftex]{graphicx}
> \usepackage{hyperref}
> \begin{document}
> \title{
> Weekly Report\footnote{\href{http://lopez/~lopez/Weekly}{Report Archive}}
> \author{Robert Lopez}
> \date\today
> }
> \maketitle
> \end{document}

During \maketitle, \footnote becomes \thanks. This
command expands its argument before \href has a
chance to see it unchanged. So ~ is expanded and
the url will not work.
Workaround: \string before ~

\title{%
Weekly Report\footnote{%
\href{http://lopez/\string~lopez/Weekly}{Report Archive}%
}%


}
\author{Robert Lopez}
\date{\today}
\maketitle

>or like


> \documentclass{article}
> \usepackage[pdftex]{graphicx}
> \usepackage{hyperref}
> \begin{document}
> \title{
> Weekly Report
> \author{Robert Lopez}
> \date\today
> \thanks\href{http://lopez/~lopez/Weekly}{Report Archive}
> }
> \maketitle
> \end{document}

Similar, but you have forgotten the curly braces
around the argument of \thanks.

And in both files \author and \date should not be
used in \title:
\title{Title}
\author{Author}
\date{Date}
\maketitle

>but the \href does not seem to be accepted into the title.

\href is accepted, only the url is wrong in the PDF output.
Perhaps you are using an old version of hyperref.
Current is 6.71j:
http://www.tug.org/applications/hyperref/hyperref.zip

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Robert Lopez

unread,
Aug 21, 2001, 2:01:37 PM8/21/01
to
Heiko Oberdiek <ober...@uni-freiburg.de> writes:

> During \maketitle, \footnote becomes \thanks. This
> command expands its argument before \href has a
> chance to see it unchanged. So ~ is expanded and
> the url will not work.
> Workaround: \string before ~

This did not work (yet; see below).


>
> Similar, but you have forgotten the curly braces
> around the argument of \thanks.

Agreed.


>
> And in both files \author and \date should not be
> used in \title:
> \title{Title}
> \author{Author}
> \date{Date}
> \maketitle

I did not know that. I have been doing it wrong for years.
I will change.


>
> >but the \href does not seem to be accepted into the title.
>
> \href is accepted, only the url is wrong in the PDF output.
> Perhaps you are using an old version of hyperref.
> Current is 6.71j:
> http://www.tug.org/applications/hyperref/hyperref.zip

I was using 2000/01/22 v6.69c. I got 7.7ij today and
together wity your other suggestions it now works.
>
> Yours sincerely
> Heiko <ober...@uni-freiburg.de>

Thank you very much. I can not do just what I want to do.
--
Robert...@Philips.com

0 new messages