General3 Nag warnings with title page. Why ?

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

3 Nag warnings with title page. Why ?

Post by Cham »

Excellent! :D All issues solved! 8-)

I applied your suggestion : no more table environment and [H] with the tabularx environment, using the center environment only (around tabularx). All Nags warnings are gone, and the code is a bit simpler and easier to understand.

Thanks a lot for your invaluable help !

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

3 Nag warnings with title page. Why ?

Post by Stefan Kottwitz »

Often people say, a floating table environment that's fixed by [H]. Usually because of a caption, otherwise a center environment is simple enough, because centering is what you want.

When it comes to a caption, one may have to use a minipage and \captionof workaround ...

When it has to be fixed, well, than it may be better to use a table environment though since it follows the same syntax, not matter if [H] or not.

At some time, when you may notice, that you have to correct a lot of bad page breaks because of not-moving tables, you may try without [H] again. The setting [!htbp] is the most flexible. But, you are right too, that makes no sense without caption. Once it moves for perfect page breaks, as in professional books, it needs a caption and a label for referencing since you refer to it from another place, such as the page before.

But yes, back to it, if it's centering, call it center. :-)

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

3 Nag warnings with title page. Why ?

Post by Cham »

Johannes_B wrote:Nag is a script, without any intelligence. It might report false warnings.
The manual even tells you so, it can report false things and it might not pick up all bad things.
But still, the Nag package is extremelly usefull. Frequently, it shows bad habits, or points to some badly done code parts. I solved many issues with its help, even if it cannot show all mistakes. I learned many LaTeX things with Nag (and I still have to learn some other stuff, like this :
Package caption Warning: Unused \captionsetup[subfigure] on input line 59.
See the caption package documentation for explanation.
but this is for another topic).
Post Reply