diff options
| author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-05-21 18:55:57 +0200 | 
|---|---|---|
| committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-05-21 18:55:57 +0200 | 
| commit | 596857319aaf8bc485a00b8f3c98d1395b3e4c1d (patch) | |
| tree | 9ba561d8e7fe209cd7d2bd14438ea2b4d4ac24ad | |
| parent | 6430f13d685bff2b10f80896efc4236cf74bcad7 (diff) | |
| download | luatexbase-596857319aaf8bc485a00b8f3c98d1395b3e4c1d.tar.gz | |
cctb: warning instead of error for empty numstack
| -rw-r--r-- | luatexbase-cctb.dtx | 14 | 
1 files changed, 12 insertions, 2 deletions
| diff --git a/luatexbase-cctb.dtx b/luatexbase-cctb.dtx index b39e7f2..8d1f3f5 100644 --- a/luatexbase-cctb.dtx +++ b/luatexbase-cctb.dtx @@ -351,7 +351,7 @@ See source file '\inFileName' for details.        \let\x\PackageError      \fi    \expandafter\endgroup -  \x{luatexbase-attr}{LuaTeX is required for this package. Aborting.}{% +  \x{luatexbase-cctb}{LuaTeX is required for this package. Aborting.}{%      This package can only be used with the LuaTeX engine^^J%      (command `lualatex' or `luatex').^^J%      Package loading has been stopped to prevent additional errors.} @@ -609,7 +609,17 @@ See source file '\inFileName' for details.    \expandafter\lltxb@cctb@numstack@pop\lltxb@cctb@numstack\@nil}  \def\lltxb@cctb@numstack@pop#1#2\@nil{%    \ifx\empty#2\empty -    \errormessage{Popping from and empty CatcoteTableNumStack}% +    \begingroup +    \ifdefined\PackageWarning +      \let\x\PackageWarning +    \else +      \def\x####1####2{% +        \begingroup \endlinechar10 +        \message{Package ####1 warning: ####2}% +        \endgroup}% +    \fi +    \expandafter\endgroup +    \x{luatexbase-cctb}{Popping from an empty CatcodeTableNumStack}%      \luatexcatcodetable\z@    \else      \gdef\lltxb@cctb@numstack{#2}% | 
