[tex4ht-commits] [SCM] tex4ht updated: r471 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Dec 27 22:01:13 CET 2018


Author: michal_h21
Date: 2018-12-27 23:01:13 +0200 (Thu, 27 Dec 2018)
New Revision: 471

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added basic support for the scrjura package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-12-27 20:43:48 UTC (rev 470)
+++ trunk/lit/ChangeLog	2018-12-27 21:01:13 UTC (rev 471)
@@ -5,6 +5,8 @@
 	* tex4ht-options.tex (tex4ht.4ht): use svg-option.4ht instead of svg.4ht.
 	* tex4ht-4ht.tex (svg.4ht): added basic support for the svg.sty package.
 	* tex4ht-4ht.tex (tabu.4ht): added basic support for the tabu package.
+	* tex4ht-4ht.tex (scrjura.4ht),
+	tex4ht-html4.tex (html4.4ht): added basic support for the scrjura package.
 
 2018-12-20  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2018-12-27 20:43:48 UTC (rev 470)
+++ trunk/lit/Makefile	2018-12-27 21:01:13 UTC (rev 471)
@@ -49,13 +49,14 @@
     framed.4ht frenchb.4ht \
   geometry.4ht graphics.4ht graphicx.4ht \
   hyperref.4ht \
+	jurabibib.4ht \
   latex.4ht lettrine.4ht listings.4ht \
   magyar.4ht mdframed.4ht memoir.4ht multicol.4ht multirow.4ht \
   nameref.4ht \
   pstricks.4ht \
   quoting.4ht \
   reading.4ht \
-  scrartcl.4ht scrbook.4ht scrreprt.4ht sectionbreak.4ht \
+  scrartcl.4ht scrbook.4ht scrreprt.4ht scrjura.4ht sectionbreak.4ht \
 	skak.4ht spanish.4ht subscript.4ht svg.4ht \
   tabu.4ht titlesec.4ht tocloft.4ht tuenc-luatex.4ht tuenc-xetex.4ht \
   usepackage.4ht usepackage-fontspec.4ht \

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2018-12-27 20:43:48 UTC (rev 470)
+++ trunk/lit/mktex4ht-cnf.tex	2018-12-27 21:01:13 UTC (rev 471)
@@ -127,6 +127,7 @@
 \AddFile{9}{overcite}
 \AddFile{9}{harvard}
 \AddFile{9}{jurabib}
+\AddFile{9}{scrjura}
 \AddFile{7}{natbib}
 \AddFile{5}{babel}
 \AddFile{7}{CJK}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2018-12-27 20:43:48 UTC (rev 470)
+++ trunk/lit/tex4ht-4ht.tex	2018-12-27 21:01:13 UTC (rev 471)
@@ -21706,6 +21706,78 @@
 >>>
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{scrjura}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<scrjura.4ht\><<< 
+% sample.4ht (|version), generated from |jobname.tex 
+% Copyright 2018 TeX Users Group 
+|<TeX4ht license text|> 
+|<scrjura configure|>
+\Hinput{scrjura} 
+\endinput 
+>>> \AddFile{9}{scrjura}
+
+Why is needed the \Verbatim\:qtchr\EndVerbatim instead of quotes? I don't know :(
+But quotes don't work
+
+\<scrjura configure\><<<
+\def\:qtchr{\expandafter\@gobble\string\"}
+
+\pend:def\contract at paragraph@font{\a:contract at paragraph@font} 
+\append:def\contract at paragraph@font{\b:contract at paragraph@font\gdef\end:prevpara{}} 
+
+\NewConfigure{contract at paragraph@font}{2}
+
+% \end:prevpara is needed to correctly handle paragraphs
+\def\end:prevpara{}
+\pend:def\parformat{\end:prevpara\a:parformat} 
+\append:def\parformat{\b:parformat\global\let\end:prevpara\c:parformat} 
+
+\NewConfigure{parformat}{3}
+
+
+% this is a modified version of original macro from scrjura.sty
+\renewcommand*{\ref at Par}[2]{%
+  \expandafter\ifx\csname r@#2\endcsname\relax
+    \ref#1{#2}%
+  \else
+    \begingroup
+      % this definitions are needed to get correct content from the \csname r@#2\endcsname
+      \def\rEfLiNK##1##2{##2}
+      \expandafter\expandafter\expandafter\expandafter
+      \expandafter\expandafter\expandafter\def
+      \expandafter\expandafter\expandafter\expandafter
+      \expandafter\expandafter\expandafter\@tempb
+      \expandafter\expandafter\expandafter\expandafter
+      \expandafter\expandafter\expandafter{%
+        \expandafter\expandafter\expandafter\@gobble\csname r@#2\endcsname}%
+      \def\@tempc##1##2\@nil{##1}%
+      \let\scrjura at separator\@gobble
+      \protected at edef\@tempa{\expandafter\expandafter\expandafter\@tempc
+        \csname r@#2\endcsname\noexpand\@nil}%
+      \def\@tempc##1##2##3\@nil{##2}%
+      \protected at edef\@tempa{\expandafter\expandafter\expandafter\@tempc
+        \@tempa{%
+          \protect\G at refundefinedtrue
+          \nfss at text{\reset at font\bfseries ??}%
+          \@latex at warning{Reference `#2' on page \thepage \space
+            with undefined par number}%
+        }\noexpand\@nil}%
+      \let\@@protect\protect
+      \let\protect\noexpand
+      \expandafter\edef\csname r@#2\endcsname{{\@tempa}\@tempb}%
+      \let\protect\@@protect
+      \ref#1{#2}%
+    \endgroup
+  \fi
+}
+ \Css{.sentence{margin-left:2em; padding-top: .5em;}}
+ \Css{.paragraph{margin: 1em;}}
+ \Css{.para{margin: .5em;}}
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Section{natbib.sty}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2018-12-27 20:43:48 UTC (rev 470)
+++ trunk/lit/tex4ht-html4.tex	2018-12-27 21:01:13 UTC (rev 471)
@@ -15545,7 +15545,26 @@
        border-bottom: 1px solid black; margin-bottom:1pt; }}
 >>>
 
+%%%%%%%%%%%%%%%%%%
+\section{scrjura}
+%%%%%%%%%%%%%%%%%%
 
+\<configure html4 scrjura\><<<
+\ConfigureEnv{contract}
+{\ifvmode\IgnorePar\fi\EndP\HCode{<div class=\:qtchr contract\:qtchr>}}
+{\ifvmode\IgnorePar\fi\end:prevpara\HCode{</div>}}
+{}{}
+
+\Configure{contract at paragraph@font}
+  {\ifvmode\IgnorePar\fi\end:prevpara\HCode{<div class=\:qtchr paragraph\:qtchr>}}
+  {\Tg</div>}
+
+\Configure{parformat}
+{\EndP\HCode{<p class=\:qtchr para\:qtchr>\Hnewline
+<span class=\:qtchr sentence\:qtchr>}}
+    {\Tg</span>}{\Tg</p>}
+>>>
+
 %%%%%%%%%%%%%%%%%%%
 \section{Bibliography}
 %%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list