diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/nag/nag-experimental.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/nag/nag-experimental.cfg | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg b/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg index d52da9f9571..330b792be6b 100644 --- a/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg +++ b/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg @@ -20,9 +20,10 @@ %% http://www.latex-project.org/lppl.txt %% \ProvidesFile{nag-experimental.cfg} - [2008/02/02 v0.1d experimental additions to nag (ulmi)] + [2009/07/04 v0.62alpha2 experimental additions to nag (ulmi)] \let\@xa\expandafter \newif\ifnag@dofloatsizecheck +\newif\ifnag@allfloatpositionsfailed \newcommand\nag@allfloatsizechecks{}% \newcommand\nag@onefloatsizecheck[2]{% % #1 is size fraction of textheight, @@ -33,6 +34,8 @@ \PackageInfo{nag}{Float too large for #2 by \the\@tempdima}% % note we do not truncate. % also, it's too late to add "p" now. + \else + \nag@allfloatpositionsfailedfalse \fi } \renewcommand\@largefloatcheck{% @@ -44,8 +47,12 @@ \fi %% the preceding is the original check. \nag@dofloatsizechecktrue + \nag@allfloatpositionsfailedtrue \def\nag@allfloatsizechecks{}% - \@xa\@tfor\@xa\nag@fltsz@tmp\@xa:\@xa=\@fps\do{% + \@xa\@xa\@xa\@tfor\@xa\@xa\@xa\nag@fltsz@tmp\@xa\@xa\@xa:\@xa\@xa\@xa=\csname @fps\endcsname\do{% + \ifx\nag@fltsz@tmp\relax + \nag@dofloatsizecheckfalse + \fi \if\nag@fltsz@tmp ! \nag@dofloatsizecheckfalse \else @@ -56,11 +63,20 @@ \if\nag@fltsz@tmp b \g@addto@macro\nag@allfloatsizechecks {\nag@onefloatsizecheck{\bottomfraction}{bottom of page}}% + \else + \if\nag@fltsz@tmp p + \nag@allfloatpositionsfailedfalse + \fi \fi \fi \fi }% - \ifnag@dofloatsizecheck\nag@allfloatsizechecks\fi + \ifnag@dofloatsizecheck + \nag@allfloatsizechecks + \ifnag@allfloatpositionsfailed + \nag@warn{All float specifiers `\@fps' won't work}% + \fi + \fi }% \def\@input#1{% \IfFileExists{#1}{\@@input\@filef@und}{% |