summaryrefslogtreecommitdiff
path: root/language/japanese/BX/bxbase/bxtoolbox-ext.def
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-10-04 03:01:11 +0000
committerNorbert Preining <norbert@preining.info>2020-10-04 03:01:11 +0000
commit62f3109ec0fcb4a3309966bdcb9e4f307ff35dd2 (patch)
tree60447da370a4394b5fd095c64a5eebde30425c04 /language/japanese/BX/bxbase/bxtoolbox-ext.def
parent0e644e6805342838052f46e6af93f81644d0390b (diff)
CTAN sync 202010040301
Diffstat (limited to 'language/japanese/BX/bxbase/bxtoolbox-ext.def')
-rw-r--r--language/japanese/BX/bxbase/bxtoolbox-ext.def17
1 files changed, 14 insertions, 3 deletions
diff --git a/language/japanese/BX/bxbase/bxtoolbox-ext.def b/language/japanese/BX/bxbase/bxtoolbox-ext.def
index 63b7927f5c..42c38d8b06 100644
--- a/language/japanese/BX/bxbase/bxtoolbox-ext.def
+++ b/language/japanese/BX/bxbase/bxtoolbox-ext.def
@@ -4,7 +4,7 @@
%% file declaration
\NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{bxtoolbox-ext.def}[2017/05/29 v1.1]
+\ProvidesFile{bxtoolbox-ext.def}[2020/10/04 v1.2]
%% check intergrity
\edef\bxtb@tmpa{\@currname.\@currext}\def\bxtb@tmpb{bxtoolbox-ext.def}
@@ -402,10 +402,17 @@
\bxPreamble\newcommand*\bxDocumentSpecial[1]{%
\bxAtBeginDviX{\special{#1}}}
-%%%% \bxDocumentSpecialUrgent{<text>}
+%%<+D> \bxDocumentSpecialUrgent{<text>}
% Similar to the above, but it demands that the given special be
% placed as early as possible.
-\bxPreamble\newcommand*\bxDocumentSpecialUrgent[1]{%
+\bxPreamble\newcommand*\bxDocumentSpecialUrgent{%
+ \bx@docspec@urgent@warn
+ \bx@docspec@urgent}
+\bxPreamble\def\bx@docspec@urgent@warn{%
+ \bxbz@warn@depre\bxDocumentSpecialUrgent{}%
+ \bxNullify\bx@docspec@urgent@warn}
+\ifx\AddToHook\@undefined %----
+\bxPreamble\def\bx@docspec@urgent#1{%
\bx@docspec@urgent@init
\bx@prepend@box\bx@dsu@box{\special{#1}}}
\def\bx@prepend@box#1#2{%
@@ -421,6 +428,10 @@
\xdef\AtBegShi@HookFirst{\the\toks@\the\toks\tw@}}
\fi}%
\bxNullify\bx@docspec@urgent@init}
+\else %----
+\bxPreamble\def\bx@docspec@urgent#1{%
+ \AtBeginDvi{\special{#1}}}% fallback
+\fi %----
%--------------------------------------- "shadow map" module