During compilation, I'm getting a few of these comments which I don't understand. Yet, everything compiles fine, and the output PDF appears to be perfect :
Underfull \hbox (badness 10000) in paragraph at lines 28--39
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
still nothing at the line, end you end it again, adding 48 pt space. All in the same paragraph.
\\ is the LaTeX command for ending a line, such as within a tabular, an array, a matrix, or a multi-line math environment. It is not for faking a vertical space which a line would take, this would be \vspace{\baselineskip}. Users often make the mistake thinking it could be like a "\skipline". Even more bad, it's all in the same paragraph, since it doesn't end the paragraph, so paragraph-wide settings for line spread and justification apply.
This "Underfull \hbox" error comes because TeX thinks in boxes. And there was a box (line) which wasn't filled with anything.
A proper way would be not inserting space by hand, but to design the document so it would not be necessary. It's often too hard and a user would like to manually tweak the output, but then a \vspace command should be used. An own macro (with \vspace inside) is better than a specific value, for document wide adjustments at such places.
Cham wrote:What would you suggest to place a simple cartoon picture, at the end of the foreword ?
It depends on how it should look like. Simpy \includegraphics, I think. No figure, since it should not float, and for sure there's no caption and no cross-reference to it. If it should be at the right, I would insert a \hfill before. If such a thing would happen several times, I would write a macro for it.
Actually, this is a new and different question and should be in a new topic. I will split it later here. You know, people come here via google looking for a solution for "Underfull \hbox", scroll down to the end with the solution - but read about pictures. No problem with talk here, and one thing brings another one, still we need some sorting.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p