summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-08-23 21:57:31 +0000
committerKarl Berry <karl@freefriends.org>2018-08-23 21:57:31 +0000
commitaff9f3c628337839a0ca2845658eb4d0d8b95784 (patch)
tree05c435cf221ea2059b48a272bc1184f39d38c403 /Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
parentd43d2ba35008af07c973553eaec0830d01f23810 (diff)
bxjscls (23aug18)
git-svn-id: svn://tug.org/texlive/trunk@48466 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def')
-rw-r--r--Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def23
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
index 4e783314989..aeea92baf96 100644
--- a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
+++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
@@ -21,9 +21,15 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesFile{bxjsja-pandoc.def}
- [2018/07/20 v1.9a BXJS document classes]
+ [2018/08/20 v1.9b BXJS document classes]
\input{bxjsja-standard.def}
\RequirePackage{bxjspandoc}
+\@onlypreamble\bxjs@endpreamble@hook
+\let\bxjs@endpreamble@hook\@empty
+\ifjsWitheTeX
+ \RequirePackage{etoolbox}[2010/08/21]% v2.0
+ \AtEndPreamble{\bxjs@endpreamble@hook}
+\fi
\@onlypreamble\bxjs@set@dupload@proc
\def\bxjs@set@dupload@proc#1{%
\expandafter\bxjs@set@dupload@proc@a\csname bxjs@dlp/#1\endcsname}
@@ -49,11 +55,13 @@
\def\bxjs@do@dupload@proc#1#2#3{%
\csname bxjs@dlp/#2.#1\endcsname{#3}%
\@firstoftwo}
+\newif\ifbxjs@lang@exists
\ifnum0\if x\jsEngine1\fi\if l\jsEngine1\fi>0
\pandocSkipLoadPackage{polyglossia}
\bxjs@set@dupload@proc{polyglossia.sty}{%
\ClassWarning\bxjs@clsname
- {Loading of polyglossia is blocked}}
+ {Loading of polyglossia is blocked}%
+ \bxjs@lang@existstrue}
\ifx\setmainlanguage\@undefined
\newcommand*\setmainlanguage[2][]{}
\newcommand*\setotherlanguage[2][]{%
@@ -66,14 +74,23 @@
\@for\bxjs@tmpa:={#2}\do{%
\setotherlangauge{\bxjs@tmpa}}}
\fi
+\g@addto@macro\bxjs@endpreamble@hook{%
+ \ifbxjs@lang@exists\else
+ \csundef{ver@polyglossia.sty}%
+ \fi}
\else
\pandocSkipLoadPackage{babel}
\bxjs@set@dupload@proc{babel.sty}{%
\ClassWarning\bxjs@clsname
- {Loading of babel is blocked}}
+ {Loading of babel is blocked}%
+ \bxjs@lang@existstrue}
\let\foreignlanguage\@secondoftwo
\let\otherlanguage\@gobble
\let\endotherlanguage\@empty
+\g@addto@macro\bxjs@endpreamble@hook{%
+ \ifbxjs@lang@exists\else
+ \csundef{ver@babel.sty}%
+ \fi}
\fi
\bxjs@set@dupload@proc{geometry.sty}{%
\setpagelayout*{#1}}