
나는 최근에 \jobname.log
인쇄술의 오류를 찾기 위해 내 파일을 읽었습니다.
나는 이것을 발견했습니다 :
Overfull \hbox (6.8925pt too wide) in paragraph at lines 650--651
[][]\T1/cmtt/m/n/10 plot([][][]<functie>[], []col=<kleur>[], []lwd=<breedte van
de geplotte lijn>[], []type=<type plot,
[]
Underfull \hbox (badness 10000) in paragraph at lines 650--651
\T1/cmtt/m/n/10 zie hierboven>[], []xlab="<eenheid op de x-as>"[], []ylab="<een
heid op de y-as>"[], []main=[]
[]
문서에서 문서의 이 부분은 다음과 같습니다.
.
이 경우 나에게는 세 가지 옵션이 있습니다.
- 사용
\linebreak
~ 전에의 부분\textcolor{orange}{main=...
. - (현재 솔루션)
\linebreak
중간에 사용하십시오 .main=...
- 줄바꿈을 사용하지 마세요.
세 가지 솔루션 모두 hbox가 가득 찼을 뿐만 아니라 hbox가 가득 찼다는 메시지를 생성합니다.
이러한 오류 중 하나 이상을 수정하기 위해 LaTeX가 환경 내에서 줄바꿈을 하도록 권장하는 방법이 있습니까? 또는 텍스트 크기 조정, 문자 상자 조정 등을 할 수 있습니다.
기존 질문을 읽었으며 모두 줄 바꿈을 제안합니다. 이 환경에서는 너무 많은 요구가 있을 수 있지만 적어도 특별한 경우(그러한 특별한 솔루션이 존재하는 경우 - 손가락이 교차하는 경우)에서 이 문제를 해결할 수 있는 가능성을 탐구하고 싶습니다.
답변1
\ttfamily
이는 타자기 글꼴( )에 단어 간 늘어나거나 줄어드는 현상이 없기 때문입니다 . 따라서 일반적으로 정당한 모양을 얻는 데는 잘 작동하지 않습니다. Stefan은 TeXblog에 멋진 블로그 항목을 작성했습니다.타자기 글꼴을 사용한 전체 맞춤. 완전성을 위해 여기에 토론을 복제하겠습니다.
\documentclass[a4paper,10pt]{article}
\renewcommand*\familydefault{\ttdefault}
\begin{document}
\begin{description}
\item[slant] \the\fontdimen1\font
\item[inter-word space] \the\fontdimen2\font
\item[inter-word stretch] \the\fontdimen3\font
\item[inter-word shrink] \the\fontdimen4\font
\item[extra space] \the\fontdimen7\font
\item[xspaceskip] \the\xspaceskip
\item[hyphenchar] \the\hyphenchar\font
\end{description}
\end{document}
0.0pt
단어 간 확장 및 축소에 유의하십시오 .
단어 간 늘이기/축소를 추가하는 것이 제안되며 일반적으로 lines
코드 스크린샷의 환경에 대해 이 작업을 수행할 수 있습니다. 그러나 작성 방법을 시각적으로 lines
보여주지 않으면 환경 시작 부분에 다음을 추가하는 것이 좋습니다.
\fontdimen3\font=0.2em% inter-word stretch
\fontdimen4\font=0.1em% inter-word shrink
아마도 값을 가지고 놀 수도 있습니다.
답변2
\documentclass{article}
\usepackage[english]{babel}
\usepackage{geometry,blindtext}
\usepackage{everysel}
\renewcommand*\familydefault{\ttdefault}
\begin{document}
\section{Default typesetting}
\blindtext
\section{With hyphenation}
\hyphenchar\font=`\-% to allow hyphenation
\blindtext
\section{With hyphenation and justification}
%\EverySelectfont{%
\fontdimen2\font=0.4em% interword space
\fontdimen3\font=0.2em% interword stretch
\fontdimen4\font=0.1em% interword shrink
\fontdimen7\font=0.1em% extra space
%\hyphenchar\font=`\-% to allow hyphenation
%}
\blindtext
\end{document}