Questions tagged [urls]

{urls} is about handling URLs in (La)TeX documents, commonly by using the \url macro provided by the {url} or {xurl} and {hyperref} packages.

is about handling URLs in (La)TeX documents, commonly by using the \url macro provided by the url and packages. This tag is more focused on typesetting URLs and formatting them in ; for setting up links in a document, use the tag, or if dealing specifically with that package.

The most common way to produce a URL in LaTeX is to use the \url command, available through the url package. This typesets the URL in font. hyperref also makes the \url command available, and will convert it to a clickable link. The new package xurl allows a better line breaking for long URLs ...

Frequently Asked Questions

806 questions
34
votes
2 answers

Auto generate List of \url usages within document

I am writing a thesis and I have made extensive use of hyperlinking through \url or \url within a \footnote. Now I would like to add a list (kind of like a simplified bibliography where each link appears only once) of all hyperlinks within the…
typR
  • 495
16
votes
2 answers

Crawler Resistance Email Address

So I have my CV publicly available on my website and it has both my email address on it, and the email addresses of my references. In the interest of protecting my self and them from spam, I was wondering if there was a good way of adding extra…
Velox
  • 263
14
votes
1 answer

add urls in reference

i want to add urls in my reference i am using the following code in my .tex file \bibitem{bl}Business Logic layer, \url{http://en.wikipedia.org/wiki/Business_logic_layer}, 23 12 2011. however, i get the following output in my console !…
8
votes
1 answer

Insert some simple path in LaTeX document

I'd like to insert some simple linux path inline with the text in my LaTeX document by using basic elements like: \texttt{/usr/share/myspell/dicts/hyph_pl_PL.dic} ..but it failed and this error below appears: ! Missing $ inserted.
Egel
  • 889
6
votes
2 answers

textrm is not displaying certain characters

I am trying to make a web URL display in my document: \documentclass{article} \begin{document} \subsection{test} \label{sec:test} [0] "test" $\emph{test}$. test, test. $\textrm{}$. \\ \end{document} But…
5
votes
2 answers

Url is not displayed correctly

I am using some big faculty LaTeX template for my thesis, so I do not really know, which packages I am supposed to mention here ... Anyway, I am trying to write some urls. I write them like \url{http://tex.stackexchange.com/questions/ask} But the…
relaxxx
  • 53
5
votes
1 answer

How to overcome limitations of \url{}?

One major limitation of the url package is that "the argument must not contain unbalanced braces.". However I have the problem that sometimes URLs I have to include in my document do not satisfy this rule like the following…
Robert
  • 652
4
votes
1 answer

Mark text as plain text

When inserting a URL in a footnote \footnote{http://www.bmu-klimaschutzinitiative.de/de/projekte_nki?p=1\&d=450, gesichtet am 21.10.2012} there are two errors that missing $ signs have been inserted. How can I mark the URL as plain text?
PVitt
  • 297
4
votes
1 answer

\RequirePackage[hyphens]{url}, at

I need to break a url at both '_' and '-': http://www.domain.org/word/word-word_(word-word)/. Thanks to this thread, by using \RequirePackage[hyphens]{url} and \usepackage[hyphens]{url}, I get line break at '-', but it does not seem to work at…
mario
  • 761
4
votes
1 answer

Using url package without hyperref makes link hit boxes erratic

I've currently got a url link in a footnote in my document. With the hyperref package, everything works correctly. Because the IEEE PDF Express tool doesn't like having the hyperref package, I've removed it and only left in the url package. However,…
midasmax
  • 143
4
votes
1 answer

retain only the domain name of url and print in bibliography as organisation

How can I define a command to retain only the domain name of a link e.g. http://www.google.com/search?=bang will give only google.com and display it as organisation field for a url reference? Many Thanks
user25196
  • 399
  • 2
  • 15
3
votes
1 answer

How to break URL links that include long alphanumerical strings?

How to break url links that include long alphanumerical strings? Here an example: \documentclass[12pt,a4paper,twoside]{article} \begin{filecontents}[overwrite]{ref.bib} @misc{Reuters_2023, author = "Reuters", title = "Example of long URL", …
Ommo
  • 835
2
votes
1 answer

How to automatically trim a URL up to a certain length measured from the right?

Current condition A long URL makes a bad look as follows. \documentclass{article} \usepackage{xcolor,listings} \lstset { language={[LaTeX]TeX}, backgroundcolor=\color{yellow!50}, …
2
votes
0 answers

URL - linebreak and page break

I'm using luatatex 1.0.4 and I already found some solutions for breaking urls. Nevertheless I have special cases for which I didn't find a solution. My sample code looks…
LeO
  • 1,451
2
votes
0 answers

LaTeX: Show return symbol at url line break

Possible Duplicate: Option to break urls with carriage-return symbol? I wonder if there is a possibility to show symbol (for example return symbol U+23CE or latex \hookleftarrow) at line break in \url command. I…
ekapek
1
2 3 4