0

I use the \tt in the latex, however, it can not break line automatically. Then, I add \\ in the link, e.g. \tt{http://tex.stackexchange.com/ \\\\ questions/ask}. Then, in the generated pdf file, it seems I can not click the link and jump to that website.

It seems \url can break line automatically, however, it use package hyperref. This package will add the citation a colored box. This is what I should avoid.

So, do you have any suggestion to use \tt?

  • Welcome! \tt is deprecated. In general, you should use \ttfamily or \textt{} instead. – Alenanno Jan 29 '16 at 13:35
  • 1
    So basically, you want to use hyperref but hide the boxes around the links? If so, don't use the "hackish" method you're using, Use hyperref and load the hidelinks option. See: tex.stackexchange.com/q/823/4778 – Alenanno Jan 29 '16 at 13:37
4

If you use \url from the url package it just enables line breaking without any links.

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.