Closed retorquere closed 7 years ago
Checking with biblatex, that outputs as
The Url field is a verbatim + url-escaped field. Why would one insert a \
there?
I can't say generally (I just found this in the references in my test set), but if I remove the \
in the MWE I get
You can't use `macro parameter character #' in horizontal mode.
I see you are trying to do it in the sharelatex file. But I wonder: does it really work 100% the same if you use a proper bibtex file and if you create the bibtex file from a latex file the way you do there?
I'll give that a go right now, but Overleaf shows the same behaviour.
Overleaf/Sharelatex have merged, AFAIK.
Hmm, yes, I get the same result you get with overleaf/sharelatex with the good old natbib.
So basically biblatex and bibtex are incompatible in that regard.
The same goes for %
and I guess all other special latex characters.
I tried this
% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
% arara: lmkclean
\documentclass{article}
\usepackage{filecontents}
\usepackage[T1]{fontenc}
\begin{filecontents}{\jobname.bib}
@Article{ck1,
Url = {http://www.ip-sl.org/procs/abs07.html\#talk9}
}
\end{filecontents}
\begin{document}
\cite{ck1}
\H{o} "long Hungarian umlaut (double acute)"
\bibliographystyle{IEEEtran}
\bibliography{\jobname}
\end{document}
and ran it using arara and I git the same behavior -- #
errors out, \#
does what I expected.
Oh great, so bibtex and biblatex are at odds here. Well I could post-process all \
s out of URLs in the assumption noone would want them there.
Oh great, so bibtex and biblatex are at odds here. Well I could post-process all \s out of URLs in the assumption noone would want them there.
That is the question. But it seems that Chrome turns any \
inside a URL into a /
, so the web pages that really do have a \
in their address will be fairly limited (and they won't get many visitors). So based on that, yes, it seems rather safe for us to remove all \
-characters from URLs.
Yep, you're right, running this will get the %5C
% arara: pdflatex
% arara: biber
% arara: pdflatex
% arara: pdflatex
% arara: lmkclean
\documentclass{article}
\usepackage{filecontents}
\usepackage[T1]{fontenc}
\usepackage[backend=biber,style=ieee]{biblatex}
\begin{filecontents}{\jobname.bib}
@Article{ck1,
Url = {http://www.ip-sl.org/procs/abs07.html\#talk9}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{ck1}
\printbibliography
\end{document}
Firefox uses %5C
.
Yeah well people should just not use backslashes in their URLs. Bugger MS for ever getting that annoyance in place.
Oh hey you're already removing them in the parse phase. Cool, I was planning to post-process them.
I checked whether there were URLs that had backslashes in them, and then came across the Chrome issue, which effectively means that it's not possible currently to have such URLs [1]. Therefore I thought it cannot do much harm to remove them.
Nice, that. Bad Chrome.
renders the url as
http://www.ip-sl.org/procs/abs07.html#talk9
; currently the parser yieldshttp://www.ip-sl.org/procs/abs07.html\#talk9