0

I need to footcite a url that contains a hashtag and tried it the following ways without success:

\footcite{http://url.eu/#privacy}

Gives the error:

! Illegal parameter number in definition of \blx@tempb.<to be read again>p ...otcite{http://url.eu/#privacy}

Then I tried:

\footcite{http://url.eu/\#privacy}

which compiles without an error but gives the footcite:

http://url.eu/\#privacy
  • 2
    You cite a key not the text itself: there's no need to have # in the key (indeed, normally keys are something like 'EU-Privacy-site' or whatever) – Joseph Wright Feb 21 '16 at 11:28
  • BTW, I've guessed biblatex based on \footcite. – Joseph Wright Feb 21 '16 at 11:35
  • 2
    Welcome, are you looking for something like \footciteurl to get just the url into the footnote, or do you want to have the normal citation in the footnote? – Johannes_B Feb 21 '16 at 11:47
  • I just want the URL in the footnote, If I need to do real citation I use a bib file. – Jakob Abfalter Feb 21 '16 at 12:22
  • 1
    Then why \footcite? If you're not citing anything from your .bib file, then use \footnote{} and that's it. – Alenanno Feb 21 '16 at 12:49
3

In case that you actually want a \footnote (and not a \footcite):

\documentclass{article}
\usepackage{url}

\begin{document}
\urldef\myurl\url{http://url.eu/#privacy}
blbla\footnote{\myurl}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.