diff options
author | Dr. Clea F. Rees <cfrees@imapmail.org> | 2009-08-07 00:49:44 +0000 |
---|---|---|
committer | Dr. Clea F. Rees <cfrees@imapmail.org> | 2009-08-07 00:49:44 +0000 |
commit | b2c2a9d42122fca7e82db1534a6e9dba68560022 (patch) | |
tree | ebaf64a10cd35b55a90b78cd47a0e54a17e219d5 /Master/texmf-dist/tex/latex/nag/nag-experimental.cfg | |
parent | cd1824fb89aed341ebc0c0a7312207ccb880d4a6 (diff) |
nag new version
git-svn-id: svn://tug.org/texlive/trunk@14564 c570f23f-e606-0410-a88d-b1316a301751
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}{% |