항상 로컬에서 \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. 그러나 이는 만족스럽지 않은 경우가 많습니다. 일부 토론은 다음에서 찾을 수 있습니다.l2타부. 귀하의 경우에는 다음을 사용하는 것이 좋습니다.

\url{[email protected]}

URL 예

Hyperref는 링크 유형을 추론할 수 있어야 하며 LaTeX가 사용할 수 있는 더 많은 중단점을 제공합니다. 좀 더 현실적인 예를 들어, .이메일 주소에 '가 더 많이 있는 경우 이는 다소 좋은 결과를 제공합니다.

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

더 나은 URL 예

관련 정보