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

learn more… | top users | synonyms

4
votes
1answer
133 views

Bibliography: cleanest way (no bib encoding!) to add URLs and their related info?

I use LaTeX for writing my thesis and I'm trying to come up with a clean and elegant bibliography format for web page references. I've been searching and trying different things for hours, but none ...
1
vote
1answer
58 views

biblatex and percent sign

I am trying to switch to http://www.latextemplates.com/template/masters-doctoral-thesis in my masters thesis, and suddenly my bibliographic references are breaking everything, despite working fine ...
0
votes
0answers
36 views

Cyrillic and urls

is there a way to get russian wikipedia's urls? my MWE (indeed, not working) is \RequirePackage[hyphens]{url} \documentclass[titlepage,a4paper,12pt]{article} \usepackage{etex} \usepackage[backend=...
1
vote
1answer
72 views

URL of web page in bibliography not output

First time trying to write my thesis in Lyx which has been great up until this point, and getting rather close to submission time I have noticed that webpage references are not outputting with the URL ...
3
votes
1answer
27 views

\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 ...
0
votes
1answer
25 views

Inserting urls in bibdesk

I am working with bibdesk in latex, only when I want to insert URL's in misc. I only get errors. The first image below shows how I am working now: To However, I have heard it is possible to add ...
6
votes
2answers
1k views

Lyx: How to add option to package automatically load

I got the problem, that links in \url only break in LyX when there is a \ character in it. I found the solution to add \usepackage[hyphens]{url} to my preamble. But the problem is, LyX loads the ...
1
vote
2answers
55 views

White spaces in URL

I am having a white space in URL. I am using BibTeX for references. In the beginning, I had two URLs (number 3 and 5, see image below) with white spaces. After searching, I came across the suggestion ...
2
votes
1answer
39 views

Adding URL to bibtex

I reference URLs through bibtex like this : @incollection{PROV, title={PROV-O: The PROV Ontology}, url = "\url{http://www.w3.org/TR/prov-o/}", year={2013}, publisher={W3C Recommendation} } ...
2
votes
1answer
43 views

file ended while scanning use of \path

MWE: \documentclass{article} \usepackage[obeyspaces]{url} \usepackage{xcolor,letltxmacro,booktabs,longtable,tabu} \LetLtxMacro{\oldpath}{\path} \renewcommand{\path}[1]{\color{gray}{\oldpath{#1}}} \...
23
votes
8answers
18k views

Missing $ inserted issue

Trying to get my dissertaion sorted (due in a few hours) and I keep getting this error: ! Missing $ inserted. <inserted text> $ l.190 ... pp. 225--236, 10.1007/978-0-387-68772-...
0
votes
0answers
20 views

underfull \hbox (badness 2478) in paragraph

I get this error when including a URL in the text of a paragraph (e.g. http://www.example.com/page.html) while using the Texmaker editor. When I remove the URL, the error goes away.
2
votes
1answer
53 views

Linebreak of URL in bib in own bibstyle

I have to use my own bibstyle for my thesis, but I have some trouble with longer URLs, which do not break correctly at the end of a line. Here's my MWE: \documentclass{scrreprt} \usepackage[ ...
30
votes
2answers
16k views

Line breaking of URLs in bibliographies

I have a problem with the line break of an URL. The URL can´t break correct and extends into the border. I´ve tried some things. Amongst others I loaded the package breakurl, but without any success. ...
1
vote
0answers
46 views

Citing a URL in MNRAS style (mn2e)

I am using natbib with the mn2e bibliography style (for papers submitted to MNRAS astronomical journal). They provide a Latex template and style guide but in their style guide it specifies that ...
15
votes
5answers
17k views

How to allow line break in a long hyperlink in a PDF compiled by latex-dvips-ps2pdf?

I am using latex-dvips-ps2pdf steps with -Ppdf option passed to dvips. The following code snippet \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage{breakurl} \hypersetup{...
20
votes
2answers
3k views

How to prevent \url from removing the spaces in a path?

The following code \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{"a b c.tex"} one two \end{filecontents*} \usepackage{listings} \usepackage{hyperref} \begin{document} \...
2
votes
1answer
89 views

Parsing Underscores in URLs from Mendeley

Introduction Mendeley's desktop software has the ability to export the references to a bibtex compatible file for use in TeX based documents. However when exporting, Mendeley escapes all special ...
11
votes
3answers
15k views

URLs in bibliography: LaTeX not breaking line as expected

I am trying to include long URLs in a bibliography, but those often overflow into the margin of the document. I have seen a number of questions about breaking URLs in bibliography, but after trying ...
2
votes
1answer
58 views

BibTex: URL:s gets weird whitespace

Whenever I cite an online source in my text I encounter strange whitespace. For instance this reference: @ONLINE{factsheet, author = {Rachel Gill}, title = {Muscular dystrophy: how could stem cells ...
0
votes
0answers
30 views

Change font background color in custom url command

I want to change the background color of a custom url command. I did not find how to. For now I use : \DeclareUrlCommand\myCustomUrl{\def\UrlFont{\ttfamily\color{green}}} But this only change the ...
3
votes
1answer
59 views

problem breaking URL when using tex4ht only

This problem only shows up when compiling to HTML. I have some long URL's and a URL with underscore do not break inside table when compiled to HTML as it does when compiled to PDF. I tried all the ...
1
vote
1answer
70 views

Seperate URLs for each bibliographic entry which refers to the same source, but to different page(s); + 1 URL for the source in the \printbibliography

When one wishes to cite a reference (and more specifically: a certain page 123 of a source) in a footnote, one can e.g. use \footfullcite[p.~123]{Bestbook}, in case the reference would be labeled ...
0
votes
1answer
31 views

How to avoid linebreak at `http:` in url

I have a long url that gets wrapped at http: in my layout (using beamer). This is the latex-code: \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{url} \...
0
votes
0answers
22 views

Wrong URL characters in Dissertate template?

When I try to add a link in a chapter of the Dissertate template (https://github.com/suchow/Dissertate), the displayed characters in the URL are wrong in the resulting pdf. Wherever I try to make a ...
5
votes
2answers
110 views

Can't get oldstyle figures in url with lualatex

The following works with xelatex: \documentclass{article} \usepackage{url} \urlstyle{same} \usepackage{fontspec} \setmainfont{Libertine Serif}[Numbers = {OldStyle, Proportional}] \begin{...
2
votes
2answers
3k views

Problems with Natbib: strange URL format and urldate not shown

I have a strange problem with natbib. This code @misc{CornellUniversity., author = {{Cornell University}}, title = {Benedict R. O'G. Anderson}, url = {\url{http://www.cornell.edu/search/index....
0
votes
0answers
28 views

How to make a two lines URL clickable

I am using url package, and I have a two lines URL like: \url{this_is_my.com/ website} I generated PDF file, and when I click to the URL, it will lead to this_is_my.com, but not this_is_my.com/...
25
votes
3answers
22k views

How to break long url in an item

I have an enumerate. In an item I have a long url. I use the package breakurl and it works fine outside the enumerate but not in the item. \usepackage[margin=3cm]{geometry} \usepackage{hyperref} \...
4
votes
1answer
105 views

E-mail address for Anti-spam

I want to prepare my CV. But when the mouse on e-mail, It will see ANTI-SPAM. On click e-mail then It works \href{mailto:name@name.com}{e-mail}. Is it possible? related web site : http://www....
3
votes
1answer
53 views

Prevent linebreak in URL in biblatex bibliography

Unlike most people, I'm trying to prevent breaking the URL in my bibliography. In the case below, the URL in the first item should stay the way it is, since it is not broken across the lines. The URL ...
3
votes
1answer
69 views

add URL to citation apa biblatex

I need to add the URL in the citations in footnotes for every source that has a URL. It should look like the footnotes a and b in the MWE output. I found this: Add URL field to footcites using style=...
1
vote
1answer
17 views

in the textit{}, I have error with the statement telling me to use $ $

\bibitem{Shiva2014} Shiva.A, Sethi.M.(2014).Understanding Dynamic Relationship among Gold Price, Exchange Rate and Stock Markets.\textit{gbr.sagepub.com/content/16/5_suppl/93S.refs}. I don't want ...
0
votes
1answer
59 views

makebst but show url only if there is no doi

I am using makebst to create my own bib style. I would like the DOI to show up in the citation (as a hyperlink), whenever the DOI is present. I have successfully done that. When the DOI is present, I ...
3
votes
2answers
350 views

API JSON in Latex

I want to know if it's possible to get data from a website using api json in a document .tex I want to do this without luatex because the idea is compile online with the sharelatex website, that does'...
1
vote
0answers
147 views

Apacite: Supress URL % DOI except for Web Pages

I am using apacite with natbib and have all my literature in Mendeley. I just found how to supress the URL in the bibliography when DOI is present (Linebreak in url). However, I`d like to supress ...
1
vote
1answer
31 views

How can I define a command for urls using hyperref

I know I can use the package hyperref for urls, but I want is to create a definition that uses this and assigns a color, for example \c{url}{Something} would write Something in crimson color linked ...
1
vote
0answers
33 views

Underline Hyperlinks Omitting the Descenders

I want to underline links (\url and \vref, \href, ...) omitting descenders in the manner shown in this answer while still supporting wrapping of long URIs (via \UrlBreaks or otherwise). Ideally, I can ...
1
vote
1answer
64 views

How to stop LaTeX stretching my footnote

I've ran into a problem I can't seem to fix. So I've been working on a document, everything is as it's supposed to be, apart from one small detail. I referenced certain parts of my text with \...
2
votes
1answer
43 views

How to solve conflict between `biblatex`, `url` and `enumitem`?

First of all I would like to know why does this packages collide when working together. If I don't use biblatex there won't be any problem, but if I use it then the packages won't work any more. MWE: ...
30
votes
11answers
25k views

Disabling URLs in bibliography

I use Mendeley for article management and export the related items to a bib file for referencing in LaTeX documents. I use IEEEtran style and see that the bibliography items include URLs which I don't ...
0
votes
1answer
35 views

Automatic line breaks in path{} command?

i use the \path{} command to print out a path to a directory in my *.tex File. I searched a lot around the internet to solve the problem to automatically linebreak the path-url. I found some hints ...
3
votes
1answer
44 views

TeX \@for loop within a section title

I am creating a macro for turning a list of files into a comma-separated list of monospaced file names, and using it as a heading. I have written a short script for doing so: MWE: \documentclass[...
11
votes
4answers
14k views

Tool for generating a website's BibTex using the URL?

Is there an existing tool for generating BibTeX of a website using its URL? What I'm thinking is something like a web tool or a Python script that does this.
3
votes
1answer
41 views

How to use the result of a macro and not the macro itself?

I would like to use the result of a macro (that delete accentuated characters of a string variable called \name), saved in a variable called \nameSA, in a url. I thought that I could use the \nameSA ...
0
votes
1answer
45 views

URL causes Missing $ inserted error

I'm trying to add this to my bibliography: \bibitem{nasa}Alliance, N.P.A.R.C. Computational fluid dynamics (CFD) verification and validation web site: http://www.grc.nasa.gov/WWW/wind/valid/lamcyl/...
4
votes
0answers
26 views

Defining a command where the argument could contain percent signs [duplicate]

This minimal example won't compile: \documentclass{article} \usepackage{url} \newcommand{\mycommand}[1]{#1} \begin{document} \mycommand{\url{http://www.example.org/index.php?a=Hello%20World.}} \end{...
3
votes
1answer
73 views

Stretched character spacing with url citation

When printing a citation with a long URL lacking good break points, in a wide text block, the character spacing gets stretched out. \documentclass{article} \usepackage[margin=1in,paperheight=3in]{...
0
votes
0answers
12 views

Make cross references and table of contents linked, clickable objects [duplicate]

I'd like to ensure my PDF is easy to navigate so is there a way to have the TOC allowed to be clicked to get to various chapters and sections, similarly with the cross references to allow jumping ...
0
votes
1answer
56 views

how to let the long web-link automatically break line?

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 ...