Let's say I have a document Foo.tex:
\documentclass[a4paper,11pt,titlepage]{article}
%...
%%Packages
\usepackage[utf8]{inputenc}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{hyperref}
\usepackage{float}
\usepackage{caption}
\usepackage[]{algorithm2e}
%...
\begin{document}
\nocite{*}
\maketitle
\pagestyle{headings}
%...
\input{bar}
and bar.tex:
\section*{Bar}
Blah, blah and some such.
Very interesting thing\footnote{\href{http://whatever}}.
More blah.
then I get an error on the line with the footnote when trying to parse Foo.tex:
Missing number, treated as zero. \endgroup ...{http://whatever}}
Removing the footnote will make the error disappear, so my guess is that even though we input the Bar.tex-file, Latex (usign TexLive with Texmaker, btw.) cannot discern the number of preceding \footnote{...} commands.
Any way to circumvent this?
hyperrefpackage? – Sigur Jul 19 '15 at 13:48hreftaking two arguments) can you elaborate on your answer so I can mark it as accepted? – User1291 Jul 19 '15 at 13:55