LaTeX forum ⇒ General3 Nag warnings with title page. Why ? Topic is solved

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

3 Nag warnings with title page. Why ?  Topic is solved

Postby Cham » Sat Oct 28, 2017 5:55 pm

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 !

User avatar
Stefan Kottwitz
Site Admin
Posts: 8598
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Sat Oct 28, 2017 6:00 pm

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. :-)

Site admin

User avatar
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Sat Oct 28, 2017 6:13 pm

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).

Return to “General”

Who is online

Users browsing this forum: No registered users and 9 guests