From 707f629e14e56b9e7b47522033f588c210c34cbb Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 17 Oct 2020 21:02:14 +0000
Subject: bxjscls (17oct20)

git-svn-id: svn://tug.org/texlive/trunk@56686 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def | 50 +++++++++++++++++++++-
 1 file changed, 49 insertions(+), 1 deletion(-)

(limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def')

diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
index fe9b67dd698..72ec49d667f 100644
--- a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
+++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
@@ -21,7 +21,7 @@
 %% same distribution. (The sources need not necessarily be
 %% in the same archive or directory.)
 \ProvidesFile{bxjsja-pandoc.def}
-  [2020/10/10 v2.3  BXJS document classes]
+  [2020/10/16 v2.4  BXJS document classes]
 \input{bxjsja-standard.def}
 \RequirePackage{bxjspandoc}
 \@onlypreamble\bxjs@endpreamble@hook
@@ -46,6 +46,25 @@
 \def\bxjs@kv@strong@boldsans{\chardef\bxjs@jp@strong=2 }
 \define@key{bxjsPan}{strong}{%
   \bxjs@set@keyval{strong}{#1}{}}
+\newif\ifbxjs@jp@or@indent \bxjs@jp@or@indenttrue
+\newif\ifbxjs@jp@or@secnumdepth \bxjs@jp@or@secnumdepthtrue
+\newif\ifbxjs@jp@or@block@heading \bxjs@jp@or@block@headingtrue
+\define@key{bxjsPan}{_plus}[]{%
+  \bxjs@jp@or@indentfalse
+  \bxjs@jp@or@secnumdepthfalse
+  \bxjs@jp@or@block@headingfalse}
+\let\bxjs@kv@orindent@true\bxjs@jp@or@indenttrue
+\let\bxjs@kv@orindent@false\bxjs@jp@or@indentfalse
+\define@key{bxjsPan}{or-indent}[true]{%
+  \bxjs@set@keyval{orindent}{#1}{}}
+\let\bxjs@kv@orsecnumdepth@true\bxjs@jp@or@secnumdepthtrue
+\let\bxjs@kv@orsecnumdepth@false\bxjs@jp@or@secnumdepthfalse
+\define@key{bxjsPan}{or-secnumdepth}[true]{%
+  \bxjs@set@keyval{orsecnumdepth}{#1}{}}
+\let\bxjs@kv@orblockheading@true\bxjs@jp@or@block@headingtrue
+\let\bxjs@kv@orblockheading@false\bxjs@jp@or@block@headingfalse
+\define@key{bxjsPan}{or-block-heading}[true]{%
+  \bxjs@set@keyval{blockheading}{#1}{}}
 \def\bxjs@next#1{\bxjs@safe@setkeys{bxjsPan}{#1}}
 \expandafter\bxjs@next\expandafter{\jsJaParam}
 \@onlypreamble\bxjs@set@dupload@proc
@@ -172,6 +191,35 @@
   \expandafter\g@addto@macro\csname opt@xeCJK.sty\endcsname{%
     ,space}
 \fi
+\ifjsWitheTeX
+\@onlypreamble\bxjs@info@or@ban
+\def\bxjs@info@or@ban#1{%
+  \PackageInfo\bxjs@clsname
+   {Freeze layout on '#1',\MessageBreak detected}}
+\unless\ifbxjs@jp@or@indent
+  \bxjs@info@or@ban{indent}
+  \IfFileExists{parskip.sty}{%
+    \pandocSkipLoadPackage{parskip}%
+  }{%else
+    \eappto\bxjs@endpreamble@hook{%
+      \parindent=\the\parindent\relax
+      \parskip=\the\parskip\relax}}
+\fi
+\ifbxjs@jp@or@secnumdepth\else
+  \bxjs@info@or@ban{secnumdepth}
+  \eappto\bxjs@endpreamble@hook{%
+    \c@secnumdepth=\the\c@secnumdepth\relax}
+\fi
+\ifbxjs@jp@or@block@heading\else
+  \let\bxjs@frozen@paragraph\paragraph
+  \let\bxjs@frozen@subparagraph\subparagraph
+  \bxjs@info@or@ban{block-heading}
+  \appto\bxjs@endpreamble@hook{%
+  \let\oldparagraph\@undefined
+  \let\paragraph\bxjs@frozen@paragraph
+  \let\subparagraph\bxjs@frozen@subparagraph}
+\fi
+\fi
 \g@addto@macro\bxjs@begin@document@hook{%
   \@tempswafalse
   \ifx\oldparagraph\@undefined\else
-- 
cgit v1.2.3

