есть несколько способов сделать разрыв строки в URL. Но кто-нибудь знает, как разбить URL в этом примере? Спасибо, Харальд
\documentclass[
10pt,
twoside,
toc=listofnumbered,
listof=flat,
headinclude,
footinclude,
index=numbered
]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} % HJELE: für Silbentrennung von Wörtern mit Umlauten via \hyphenation
\usepackage[ngerman]{babel}
\usepackage[hyphens]{url}
\usepackage{breakurl}
\usepackage[colorlinks,urlcolor=black,linkcolor=black,filecolor=black,citecolor=black]{hyperref}
\hypersetup{breaklinks=true}
\begin{document}
\begin{description}
\begin{sloppypar}
\item[\normalfont{Thaney, Kaitlin (2009):}] Laying out the Principles of Open Science. Vortrag am {\glqq}Open Science workshop :: PSB 2009{\grqq}, 5.1.2009, Big Island of Hawaii.\\
Online unter:\\
\url{https://de.slideshare.net/kaythaney/laying-out-the-principles-of-open-science-presentation}
\item[\url{https://www.springer.com/de/autoren-herausgeber/deutsche-publikationen/buchautoren/buchautoren-manuskript-richtlinien}:] Richtlinien zum Publizieren für Autoren und Herausgeber des Springer Verlags.
\end{sloppypar}
\end{description}
\end{document}
решение1
Не загружайте breakurl
пакет, замените \usepackage[hyphens]{url}
на \usepackage{xurl}
и не включайте строки URL в аргументы элементов списка description
.
Вы также можете заменить urlcolor=black, linkcolor=black, filecolor=black, citecolor=black
его на allcolors=black
.
\documentclass[
10pt,
twoside,
toc=listofnumbered,
listof=flat,
headinclude,
footinclude,
index=numbered
]{scrbook}
%%\usepackage[utf8]{inputenc} % that's the default nowadays
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{xurl}
%%\usepackage[hyphens]{url}
%%\usepackage{breakurl}
\usepackage[colorlinks,allcolors=black]{hyperref}
%\hypersetup{breaklinks=true}
\begin{document}
\begin{description}
\item[]Thaney, Kaitlin (2009): Laying out the Principles of Open Science.
Vortrag am {\glqq}Open Science workshop :: PSB 2009{\grqq}, 5.1.2009,
Big Island of Hawaii.
Online unter:
\url{https://de.slideshare.net/kaythaney/laying-out-the-principles-of-open-science-presentation}
\item[]\url{https://www.springer.com/de/autoren-herausgeber/deutsche-publikationen/buchautoren/buchautoren-manuskript-richtlinien}: Richtlinien zum Publizieren für Autoren und Herausgeber des Springer Verlags.
\end{description}
\end{document}