New answers tagged

1

Rather than implementing this feature in biblatex, one could simply do the following: \newcommand{\urlcite}[3]{\footfullcite{#1}, p.~\href{#2}{#3}} This is a fairly 'dumb' command, of course, and you lose out a lot of the clever functionality of biblatex's citation commands. However, in this case, it is not a big loss because: we know that the citation ...


2

If you have in your code \bibliographystyle{plainnat} then the "URL" text comes from the style. In the plainnat.bst file you can find the following code: FUNCTION {format.url} { url empty$ { "" } { new.block "URL \url{" url * "}" * } if$ } The part "URL \url{" url * "}" * is responsible for your problem. You can delete URL at the start of it or ...


0

The problem with breakurl package is that it seems incompatible with PDFLaTeX, and XeLaTeX. My colleague Dag Langmyhr pointed out that the url package is compatible with hyperref if it is loaded before the latter, and consequently \usepackage[T1,hyphens]{url} \usepackage[colorlinks,urlcolor=blue]{hyperref} does the job more elegantly (breaklinks=true did ...


1

If it is an underscore that you want, just type \textit{gbr.sagepub.com/content/16/5\_suppl/93S.refs} But it is better to use the url package, which allows line breaks in urls at correct points: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{url} \def\UrlFont{\itshape\sffamily} ...


2

Please have a look to the following code. Please see that I used some code from this question, see acepted answer . MWE: \RequirePackage{filecontents} \begin{filecontents*}{\jobname.bib} @BOOK{indreboe1951, AUTHOR = {Gustav Indreb\o}, TITLE = {Norsk m\aa lsoga}, YEAR = {1951}, LOCATION = {Bergen}, PUBLISHER = {John Grieg}, URL ...


0

Another future-proof answer, albeit rather tedious, is suggested here: Change all occurrences of _ in the URL field of your .bib file to their html character code equivalent %5F


0

After playing around with the makebst output bst file, I found the following works. It amounts to changing the doi format. Make sure to first tell makebst to NOT include url (the default option). Open the .bst file (the makebst output) In the ENTRY section (the first section not commented out for me), you'll see a bunch of fields, including doi. Add 'url' ...


1

You can use hyperref options, and locally modify it when needed. \documentclass{article} \usepackage[colorlinks=true,urlcolor=magenta]{hyperref} \newcommand{\myhref}[2] {\hypersetup{urlcolor=blue}% \href{#1}{#2}% \hypersetup{urlcolor=magenta}% } \begin{document} Here is \href{http://www.myurl.com}{my link}. ...


2

I suggest you load the url package with the options hyphens, spaces, and obeyspaces, issue the instruction \urlstyle{same}, and then encase all URL strings in an \url{...} wrapper. That way, LaTeX will almost surely find a decent linebreak in the URL string and won't need to stretch the interword whitespace in earlier part of the footnote.



Top 50 recent answers are included