summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 18:55:57 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 18:55:57 +0200
commit596857319aaf8bc485a00b8f3c98d1395b3e4c1d (patch)
tree9ba561d8e7fe209cd7d2bd14438ea2b4d4ac24ad
parent6430f13d685bff2b10f80896efc4236cf74bcad7 (diff)
downloadluatexbase-596857319aaf8bc485a00b8f3c98d1395b3e4c1d.tar.gz
cctb: warning instead of error for empty numstack
-rw-r--r--luatexbase-cctb.dtx14
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}%