5

I have a problem with formatting my footnotes. They look very messy and just wrong. I could not find a way to change that, but I assume it is some kind of property, like with a \usepackage[] commant or anything similar. I use the online Latex editor and compiler writelatex.com, so it can't be a problem of my compiling properties.

Does anybody have a hint for me how this issue can be fixed? Here is a screenshot of the messy footnotes. The command I use for the footnotes is just \footnote{Title. Link: http://www.link.li. [Date] Footnotes formatted wrong

  • 4
    You need to allow the url's to break. Start by using the url package and writing these as \url{http://www.w3.org}. Then if there as still problems, look at other questions here about breaking url's, e.g. tex.stackexchange.com/q/15653/15925 – Andrew Swann Dec 29 '13 at 13:46
  • Thank you for this information. Unfortunately it won't let me use the \url command within the footnote, and I am pretty sure this online editor/compiler is using all necessary packages already. Is there anything else I need to consider? Edit: \usepackage[hyphenbreaks]{breakurl} didn't help as well. – UserSoUndSo Dec 29 '13 at 13:58
  • What editor are you using? In standard LaTeX you can just write \footnote{Title. Link \url{http://www.w3.org} [Date]} – Andrew Swann Dec 29 '13 at 14:17
  • I am using the online editor www.writelatex.com. So it shouldn't be a editor or compiling problem, since I assume this online editor is using and providing all available packages. The editor is pretty good by the way, I really like it. But if I use the \url command I get an error: Undefined control sequence. <argument> ... Is Web 2.0. Verfügbar unter: \url {http://www.ttivanguard.co... l.50 ...dc05session4003.pdf}. [27. Dezember 2013]} . The control sequence at the end of the top line of your error message was never \def'ed. [etc] – UserSoUndSo Dec 29 '13 at 14:30
  • If the \url command is not defined, then you need a \usepackage{url} in your preamble. – Andrew Swann Dec 29 '13 at 14:32
5

Web addresses should be typed using the \url command. This is provided by the url package, amongst others. Provided there are not long strings of letters in the address then these will break over lines without further action.

Different formatting of the footnote may be provided by options from the footmisc package:

Sample output

\documentclass{article}

\usepackage{url}

\usepackage[flushmargin]{footmisc}

\begin{document}

Some text\footnote{Some interesting homepage on the web. Accessible at
\url{http://www.w3.org/standards/webdesign/htmlcss} [12th December,
2009].  More text to demonstrate the shape of the footnote paragraphs.
More text to demonstrate the shape of the footnote paragraphs.

More text to demonstrate the shape of the footnote paragraphs.} and
more text.

Some text\footnote{Some interesting homepage on the web. Accessible at
\url{http://www.w3.org/standards/webdesign/htmlcss} [12th December,
2009].  More text to demonstrate the shape of the footnote paragraphs.
More text to demonstrate the shape of the footnote paragraphs.

More text to demonstrate the shape of the footnote paragraphs.} and
more text.

\end{document}
|improve this answer|||||

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.