
\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]}
Hyperref はリンク タイプを推測でき、LaTeX が使用できるブレーク ポイントをさらに提供します。より現実的な例として、.
電子メール アドレスに「's」がさらに多く含まれる場合、これはかなり良い結果をもたらします。
If you are interested to know the details,
please contact me at
\url{[email protected]}.