I want to include URLs on my main page in the article class. I am using the following packages





test: \url{https://test.test}



When I compile the file I am getting the word "magenta" right before the url as follows:

enter image description here

I can't find anything related to this. Has anyone encountered this problem before?

All other links in the file are showing correctly.

  • 2
    show a small but complete example. Apr 3, 2021 at 20:58
  • @UlrikeFischer added an example
    – finstats
    Apr 3, 2021 at 21:05
  • 4
    this errors as the text is before \begin{document}. Please test your example before sending them and check for errors. Apr 3, 2021 at 21:08
  • 2
    it errors, overleaf should show you a red error marker like this: i.stack.imgur.com/CqRbb.png. Don't ignore such errors, they tell you that something is really wrong and this can affect the output as your own question shows. Apr 3, 2021 at 21:48
  • 5
    In addition to Ulrikes comments, note that overleaf runs in a mode that attempts to autoresolve errors and always produce a pdf. It does this by making an educated guess. This guess is often wrong and then accumulates giving a totally wrong output. Sadly a lot of overleaf users tend to ignore the errors because it does produce a pdf. Now you know why you should never ignore errors. Hopefully one day overleaf will change their interface to make people more aware that there are errors and that they need to be fixed
    – daleif
    Apr 3, 2021 at 22:06


Your Answer

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

Browse other questions tagged or ask your own question.