.sty의 Underfull \hbox(불량 10000)

.sty의 Underfull \hbox(불량 10000)

나는 불완전한 상자 문제에 대한 많은 조언을 조사했습니다. 그러나 내가 시도한 어떤 것도 문제를 해결하지 못했습니다. 특정 형식에 대해 .sty 파일을 작성했는데 이 마크업이 나타날 때마다 다음 경고가 표시됩니다.

\newcommand{\recordsAffected}[2]{%
\noindent This problem affects #1 record\s{#1}:

\vspace{3pt}

\setlength\parindent{0pt}{\tiny #2}
}

.tex 파일 내부의 코드는 다음과 같습니다. 어디에도 줄 바꿈이 없지만 수백 개의 숫자가 포함될 수 있습니다.

\recordsAffected{39}{123, 456, 789, 123, 456, 789, 123, 456, 789, 123, 456, 789, 123, 456}%

내가 도대체 ​​뭘 잘못하고있는 겁니까?

최소한의 예:

\documentclass[a4paper]{scrartcl}
\sloppy         %improves justification, problem occured also without 
\usepackage{my_possibly_dumb_package}

\begin{document}

\recordsAffected{39}{a43278/008, a43942/008, a45969/008, a46754/008, a49221/008, a49581/008, a49622/008, a52060/008, a52125/008, a52127/008, a52435/008, a55814/008, a56445/008, a57540/008, a57622/008, a57624/008, a57808/008, a60025/008, a61589/008, a61966/008, a69208/008, ocm02999106/008, ocm30263703/008, a40465/008, a40629/008, ocm02573713/008, ocm27892685/008, ocm04943922/008, ocm09696410/008, ocm08401480/008, ocm19374238/008, ocm04445359/008, ocm10964101/008, ocm12302731/008, ocm06112303/008, ocm08717325/008, ocm23645394/008, ocm23400177/008, a69971/008}%

\end{document}

경고:

    Underfull \hbox (badness 4647) in paragraph at lines 7--8
[]\T1/ptm/m/n/6 a43278/008, a43942/008, a45969/008, a46754/008, a49221/008, a49
581/008, a49622/008, a52060/008, a52125/008, a52127/008, a52435/008, a55814/008
,
 []

답변1

게시된 예제에는 오류가 있지만 \s이에 대한 정의는 추측했습니다.

나는 \raggedright여기에서 상자가 가득 차거나 적게 채워지는 것을 피하기 위해 사용했습니다.

일반 기준선 건너뛰기 대신 일치하는 기준선 건너뛰기가 사용되도록 \par범위 끝에 누락 항목을 추가했습니다 .\tiny

여기에 이미지 설명을 입력하세요

\usepackage{my_possibly_dumb_package}

\begin{document}

\recordsAffected{39}{a43278/008, a43942/008, a45969/008, a46754/008, a49221/008, a49581/008, a49622/008, a52060/008, a52125/008, a52127/008, a52435/008, a55814/008, a56445/008, a57540/008, a57622/008, a57624/008, a57808/008, a60025/008, a61589/008, a61966/008, a69208/008, ocm02999106/008, ocm30263703/008, a40465/008, a40629/008, ocm02573713/008, ocm27892685/008, ocm04943922/008, ocm09696410/008, ocm08401480/008, ocm19374238/008, ocm04445359/008, ocm10964101/008, ocm12302731/008, ocm06112303/008, ocm08717325/008, ocm23645394/008, ocm23400177/008, a69971/008}%

\end{document}

\def\s#1{%
\ifnum#1>1 s\fi
}

\newcommand{\recordsAffected}[2]{%
\noindent This problem affects #1 record\s{#1}:%

\vspace{3pt}%

{\raggedright\tiny#2\par}%
}

또는 단어 간 공백이 늘어나서 대처할 수 있도록 단락을 정렬하려면 다음을 바꾸십시오.

{\raggedright\tiny#2\par}%

~에 의해

{\parindent0pt \spaceskip .3em plus\textwidth \tiny#2\par}%

여기에 이미지 설명을 입력하세요

관련 정보