ローカルでは \href の前に \sloppy を常に付けるのは良い習慣でしょうか?

ローカルでは \href の前に \sloppy を常に付けるのは良い習慣でしょうか?

\href常にローカルで次のように先行するのは良い習慣でしょうか\sloppy?

if you are interested to know the details, 
please contact me at {\sloppy
\href{mailto:[email protected]}
{[email protected]}}.

答え1

いいえ。そこにコマンドを配置しても\sloppy効果はありません。

\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}

雑な効果なし

このコマンドは\sloppy完全な段落でのみ機能するため、次のように記述する必要があります。

{\sloppy
If you are interested to know the details, 
please contact me at {
\href{mailto:[email protected]}
{[email protected]}}.
\par
}

または使用sloppypar。しかし、これでは満足できないことが多い。翻訳:あなたの場合は、

\url{[email protected]}

URLの例

Hyperref はリンク タイプを推測でき、LaTeX が使用できるブレーク ポイントをさらに提供します。より現実的な例として、.電子メール アドレスに「's」がさらに多く含まれる場合、これはかなり良い結果をもたらします。

If you are interested to know the details, 
please contact me at 
\url{[email protected]}.

より良いURLの例

関連情報