
Ist es eine gute Vorgehensweise, wenn wir lokal immer \href
Folgendes voranstellen \sloppy
?
if you are interested to know the details,
please contact me at {\sloppy
\href{mailto:[email protected]}
{[email protected]}}.
Antwort1
Nein. Dort platziert hat der Befehl \sloppy
keine Wirkung:
\documentclass{article}
\usepackage{hyperref}
\usepackage[width=7cm]{geometry}
\begin{document}
If you are interested to know the details,
please contact me at {\sloppy
\href{mailto:[email protected]}
{[email protected]}}.
If you are interested to know the details,
please contact me at
\href{mailto:[email protected]}
{[email protected]}.
\end{document}
Der Befehl \sloppy
funktioniert nur mit vollständigen Absätzen, man müsste also schreiben
{\sloppy
If you are interested to know the details,
please contact me at {
\href{mailto:[email protected]}
{[email protected]}}.
\par
}
oder verwenden sloppypar
. Dies ist jedoch oft nicht zufriedenstellend. Einige Diskussionen finden Sie inAbonnieren. In Ihrem Fall schlage ich vor, Sie verwenden
\url{[email protected]}
Hyperref sollte in der Lage sein, den Linktyp abzuleiten und bietet mehr Haltepunkte, die LaTeX verwenden kann. Für ein realistischeres Beispiel, bei dem .
die E-Mail-Adresse mehr 's enthält, liefert dies recht gute Ergebnisse:
If you are interested to know the details,
please contact me at
\url{[email protected]}.