1

How can I break up the ligature in fileadmin of this URL? Any idea for a command to be used in \biburlprefix and biburlsuffix?

\documentclass[]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{filecontents}
\usepackage[authorformat={dynamic},titleformat=commasep,titleformat=all,commabeforerest,howcited=compare,annote]{jurabib}

\renewcommand*{\biburlprefix}{}
\renewcommand*{\biburlsuffix}{}
\biburlfont{same}

\begin{filecontents}{literatur.bib}
@WWW{Mitsch,
    title = {Das Kommissionswesen unter Kaiser Friedrich~III.\relax},
    author = {Ralf Mitsch},
    url = {http://www.regesta-imperii.de/fileadmin/user_upload/downloads/Mitsch_2015.pdf},
    urldate = {22.~März~2020},
    shorttitle = {Kommissionswesen},
    howcited = {1}
}
\end{filecontents}

\begin{document}

\cite{Mitsch}

\bibliography{literatur}
\bibliographystyle{jurabib}

\end{document}

And more general, I hope you agree that breaking up ligatures in URL is a general rule, right?

TobiBS
  • 5,240

1 Answers1

2

I personally wouldn't have a problem with ligatures. But if you want to avoid them, you could use OT1-encoding for the url and T1 encoding for the tex and disable the ligatures for OT1:

\documentclass[]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{url}
\usepackage{microtype}
\DisableLigatures{encoding = OT1}
\def\UrlFont{\fontencoding{OT1}\selectfont}
\begin{document}
fileadmin

\url{http://www.regesta-imperii.de/fileadmin/user_upload/downloads/Mitsch_2015.pdf}

fileadmin
\end{document}

enter image description here

Ulrike Fischer
  • 327,261
  • amazing idea, I like it and in my case where I use LY1 encoding regularly, it works as well! – TobiBS Jun 09 '20 at 22:10