
이 예에서 하이픈 넣기 규칙이 사용되지 않는 이유는 무엇입니까?
\documentclass{article}
\usepackage{tabu}
\hyphenation{abc-def-hij-klm-nop-qrs-tuv-wxyz}
\begin{document}
\begin{center}
\begin{tabu} {|X|X|}
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz &
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
\\
5 & 6 \\
\end{tabu}
\end{center}
\end{document}
산출:
답변1
Lev Bishop이 이미 말했듯이 단어가 다르며
g
의 알파벳 단어에는 없습니다\hyphenation
.텍스트 너비가 줄어들면 TeX가 단락의 첫 번째 단어에 하이픈을 추가하지 않기 때문에 첫 번째 단어에 하이픈이 추가되지 않습니다. 여기에 도움말을 추가하면
\hspace{0pt}
다음과 같습니다.\documentclass{article} \usepackage{tabu} \hyphenation{abc-def-ghij-klm-nop-qrs-tuv-wxyz}% g is added \setlength{\textwidth}{.5\textwidth} \begin{document} \begin{center} \begin{tabu} {|X|X|} \hspace{0pt}abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz & abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz \\ 5 & 6 \\ \end{tabu} \end{center} \end{document}