너무 꽉 찬 hbox가 너무 넓습니다.

너무 꽉 찬 hbox가 너무 넓습니다.
Overfull \hbox (13.50009pt too wide) in paragraph at lines 149-157.

149 \begin{tabular}{rl}
151  Basic Knowledge:& \textsc{C}, \textsc{Python}, \textsc{html}, ubuntu, \\&
152 {\fb \LaTeX}\setmainfont[SmallCapsFont=Fontin-SmallCaps.otf]{Fontin.otf}\\
152 Intermediate Knowledge:& \textsc{Fritzing, EAGLE}, Embedded C, Excel, Word, PowerPoint, 154 MATLAB\\
155 & and Simulink\\


156\end{tabular}

답변1

다양한(아마도 관련이 없는) 글꼴 자료를 제거하면 코드는 다음과 같습니다.

\begin{tabular}{rl}
Basic Knowledge:       & \textsc{C}, \textsc{Python}, \textsc{html}, ubuntu, \\
                       & \LaTeX\\
Intermediate Knowledge:& \textsc{Fritzing, EAGLE}, Embedded C, Excel, Word,
                         PowerPoint, MATLAB\\
                       & and Simulink\\
\end{tabular}

여기에는 많은 문제가 있습니다. 기본적으로 두 번째 열에 너무 많은 텍스트가 있습니다. columtype을 사용 p하고 그에 대한 너비를 설정하거나 (더 나은) tabularxLaTeX를 사용하여 적절한 너비를 찾도록 해야 합니다. 그렇게 하면 우리가 피하고자 하는 레이아웃 결정인 "및 Simulink"에서와 같이 스스로 줄바꿈을 시도할 필요가 없습니다.

다음과 같은 것

\documentclass{article}
\usepackage{tabularx}
\begin{document}
\noindent
\begin{tabularx}{\textwidth}{rX}
Basic Knowledge:       & C, \textsc{Python}, \textsc{html}, ubuntu, \LaTeX\\
Intermediate Knowledge:& \textsc{Fritzing}, EAGLE, Embedded C, Excel, Word,
                          PowerPoint, MATLAB and Simulink
\end{tabularx}

\end{document}

그러나 보다 근본적으로 표는 이러한 종류의 정보를 표시하는 올바른 방법이 아닐 수도 있습니다. 그것은 실제로 설명 목록이므로 그렇게 제시하는 것이 더 현명할 것입니다. enumitem표준 형식이 마음에 들지 않으면 언제든지 패키지를 사용하여 모양을 조정할 수 있습니다 .

관련 정보