diff options
author | Karl Berry <karl@freefriends.org> | 2019-06-26 20:47:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-06-26 20:47:41 +0000 |
commit | 254a48177d1aa20024bd8f025928ceb86b6527a2 (patch) | |
tree | a44d3a68178643ae44e2585e5cbe879e0ca2d9e7 /Master | |
parent | 49c94d5579a372eab383c97cbf6d6b4c747f1602 (diff) |
checkend (26jun19)
git-svn-id: svn://tug.org/texlive/trunk@51475 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/checkend/README.md | 24 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/checkend/checkend.sty | 71 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/checkend.tlpsrc | 0 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 |
5 files changed, 97 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/checkend/README.md b/Master/texmf-dist/doc/latex/checkend/README.md new file mode 100644 index 00000000000..f5d9b708ae6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/checkend/README.md @@ -0,0 +1,24 @@ + +More useful error messages when there are open environments +at \end{document}. + +When an environment is left open, LaTeX gives an error at the +end of the document. However it only informs about the first +of them, while the rest are shown with meaningless errors: + +(\end occurred inside a group at level N) + +This package replaces them with more useful messages +which show which environments (in reverse order) were +not closed. + +That's all. There are no user macros. Just use the package. + +License: MIT +________ +Javier Bezos --- http://www.texnia.com + + + + + diff --git a/Master/texmf-dist/tex/latex/checkend/checkend.sty b/Master/texmf-dist/tex/latex/checkend/checkend.sty new file mode 100644 index 00000000000..347949ae114 --- /dev/null +++ b/Master/texmf-dist/tex/latex/checkend/checkend.sty @@ -0,0 +1,71 @@ +% +% Copyright (C) 2002-2019 Javier Bezos http://www.texnia.com +% +% This file may be distributed and/or modified under the conditions of +% the MIT License. A version can be found at the end of this file. +% +% Usage +% ~~~~~ +% When an environment is left open, LaTeX gives an error at the +% end of the document. However it only informs about the first +% of them, while the rest are shown with meaningless errors: +% +% (\end occurred inside a group at level N) +% +% This package replaces them with more useful messages +% which show which environments (in reverse order) were +% not closed. +% +% That's all. There are no user macros. Just use the package. +% +% Code +% ~~~~ + +\def\fileversion{1.1} +\def\filedate{2002/04/20} + +\ProvidesPackage{checkend}[2002/04/20 v1.0 Environment checking] + +\def\chkend@checkend{% + \def\@tempa{document}% + \ifx\@currenvir\@tempa + \else + \count@\errorcontextlines + \errorcontextlines\z@ + \PackageError{checkend}{% + \@currenvir \@currenvline \space open at + \string\end{document}}% + {The package has detected an open environment at the + end\MessageBreak + of the document}% + \errorcontextlines\count@ + \csname end\@currenvir\endcsname + \endgroup + \chkend@checkend + \fi} + +\AtEndDocument{\chkend@checkend} + +\endinput + +MIT License +----------- + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 227bda65f95..2f6973b8c1f 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -149,7 +149,7 @@ my @TLP_working = qw( cfr-initials cfr-lm changebar changelayout changelog changepage changes chappg chapterfolder charter - chbibref cheatsheet checkcites checklistings chem-journal + chbibref cheatsheet checkcites checkend checklistings chem-journal chemarrow chembst chemcompounds chemcono chemexec chemfig chemformula chemgreek chemmacros chemnum chemschemex chemsec chemstyle cherokee diff --git a/Master/tlpkg/tlpsrc/checkend.tlpsrc b/Master/tlpkg/tlpsrc/checkend.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/checkend.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 38de9b2512c..d52190f9da4 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -154,6 +154,7 @@ depend changes depend chappg depend chapterfolder depend cheatsheet +depend checkend depend chet depend chextras depend childdoc |