Debian Codegraph @

texmf-dist/tex/generic/tex4ht/scrjura.4ht

raw
1 % scrjura.4ht (2018-12-30-09:37), generated from tex4ht-4ht.tex
2 % Copyright 2018 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <http://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2018-12-30-09:37}
20
21 \def\:qtchr{\expandafter\@gobble\string\"}
22
23 \pend:def\contract@paragraph@font{\a:contract@paragraph@font}
24 \append:def\contract@paragraph@font{\b:contract@paragraph@font\gdef\end:prevpara{}}
25
26 \NewConfigure{contract@paragraph@font}{2}
27
28 % \end:prevpara is needed to correctly handle paragraphs
29 \def\end:prevpara{}
30 \pend:def\parformat{\end:prevpara\a:parformat}
31 \append:def\parformat{\b:parformat\global\let\end:prevpara\c:parformat}
32
33 \NewConfigure{parformat}{3}
34
35
36 % this is a modified version of original macro from scrjura.sty
37 \renewcommand*{\ref@Par}[2]{%
38 \expandafter\ifx\csname r@#2\endcsname\relax
39 \ref#1{#2}%
40 \else
41 \begingroup
42 % this definitions are needed to get correct content from the \csname r@#2\endcsname
43 \def\rEfLiNK##1##2{##2}
44 \expandafter\expandafter\expandafter\expandafter
45 \expandafter\expandafter\expandafter\def
46 \expandafter\expandafter\expandafter\expandafter
47 \expandafter\expandafter\expandafter\@tempb
48 \expandafter\expandafter\expandafter\expandafter
49 \expandafter\expandafter\expandafter{%
50 \expandafter\expandafter\expandafter\@gobble\csname r@#2\endcsname}%
51 \def\@tempc##1##2\@nil{##1}%
52 \let\scrjura@separator\@gobble
53 \protected@edef\@tempa{\expandafter\expandafter\expandafter\@tempc
54 \csname r@#2\endcsname\noexpand\@nil}%
55 \def\@tempc##1##2##3\@nil{##2}%
56 \protected@edef\@tempa{\expandafter\expandafter\expandafter\@tempc
57 \@tempa{%
58 \protect\G@refundefinedtrue
59 \nfss@text{\reset@font\bfseries ??}%
60 \@latex@warning{Reference `#2' on page \thepage \space
61 with undefined par number}%
62 }\noexpand\@nil}%
63 \let\@@protect\protect
64 \let\protect\noexpand
65 \expandafter\edef\csname r@#2\endcsname{{\@tempa}\@tempb}%
66 \let\protect\@@protect
67 \ref#1{#2}%
68 \endgroup
69 \fi
70 }
71 \Css{.sentence{margin-left:2em; padding-top: .5em;}}
72 \Css{.paragraph{margin: 1em;}}
73 \Css{.para{margin: .5em;}}
74
75 \Hinput{scrjura}
76 \endinput
77