diff options
author | Karl Berry <karl@freefriends.org> | 2022-06-10 22:53:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-06-10 22:53:41 +0000 |
commit | 2b0f234e83a1ec5a58255162b439c460fcf30a1a (patch) | |
tree | 6e726bb3059f654e438b66ddaaea308d218d37f8 /Master/texmf-dist/tex/generic | |
parent | a4bfec70790366571401554b420cce2886276e65 (diff) |
basic jats formatting, tex4ht r1146
git-svn-id: svn://tug.org/texlive/trunk@63542 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/jats.4ht | 310 |
1 files changed, 304 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/jats.4ht b/Master/texmf-dist/tex/generic/tex4ht/jats.4ht index f2a5fd28a62..c70312eb703 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/jats.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/jats.4ht @@ -1,5 +1,5 @@ -% jats.4ht (2020-06-13-15:33), generated from tex4ht-jats.tex -% Copyright 2020 TeX Users Group +% jats.4ht (2022-06-10-15:41), generated from tex4ht-jats.tex +% Copyright 2022 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -16,9 +16,14 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2020-06-13-15:33} +\immediate\write-1{version 2022-06-10-15:41} -\exit:ifnot{tex4ht} +\exit:ifnot{article,% +book,% +hyperref,% +latex,% +tex4ht,% +url} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -29,7 +34,7 @@ % select JATS version \NewConfigure{DtdVersion}{1} -\Configure{DtdVersion}{1.2} +\Configure{DtdVersion}{1.3} \Configure{DOCTYPE}{\HCode{<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v\a:DtdVersion\space 20130915//EN" "http://jats.nlm.nih.gov/archiving/\a:DtdVersion/JATS-archivearticle1-mathml3.dtd">\Hnewline}} @@ -61,13 +66,188 @@ % enable to configure contributors \def\JATS:Contributors{} \NewConfigure{Contributor}[1]{\concat:config\JATS:Contributors{#1}} -\NewConfigure{TitleGroup} +\NewConfigure{TitleGroup}{1} % insert metas into document header \Configure{@HEAD}{\a:JournalMeta} \Configure{@HEAD}{\a:ArticleMeta} +\Configure{HtmlPar} + {\EndP\HCode{<!--l. \the\inputlineno-->% +<p \csname a:!P\endcsname>}} + {\EndP\HCode{<!--l. \the\inputlineno-->% +<p \csname a:!P\endcsname>}} + {\Tg</p>}% + {\Tg</p>}% +\Configure{Link}{xref}{rid=}{id=}{\empty} +\LinkCommand\ExternalLink{ext-link,xlink:href,id} + +\Configure{htf}{0}{+}{<italic}{}{}{}{}{>}{</italic>} +\Configure{htf}{4}{+}{<sc}{}{}{}{}{>}{</sc>} +\Configure{htf}{6}{+}{<underline}{}{}{}{}{>}{</underline>} + +\Configure{mathml}{mml:} +\edef\math:type:inline{display="inline" } + +\ifdefined\AtBeginDocument +\AtBeginDocument{ + \Configure{DviMathML}{% + \ifx\a:@math\math:type:inline% + \PushStack\math:types{inline-formula}% + \HCode{<inline-formula>}% + \else% + \HCode{<disp-formula>}% + \PushStack\math:types{disp-formula}% + \fi% + }{\PopStack\math:types\:temp\HCode{</\:temp>}}% +}% +\fi + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{latex} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{textit}{\Protect\HCode{<italic>}\NoFonts}{\EndNoFonts\Protect\Tg</italic>} +\Configure{textbf}{\Protect\HCode{<bold>}\NoFonts}{\EndNoFonts\Protect\Tg</bold>} +\Configure{textsc}{\Protect\HCode{<sc>}\NoFonts}{\EndNoFonts\Protect\Tg</sc>} +\Configure{textrm}{\Protect\HCode{<roman>}\NoFonts} + {\EndNoFonts\Protect\HCode{</roman>}} +\Configure{textup}{\Protect\HCode{<span class="textup">}\NoFonts} + {\EndNoFonts\Protect\HCode{</span>}} +\Configure{textsf}{\Protect\HCode{<sans-serif>}\NoFonts} + {\EndNoFonts\Protect\HCode{</sans-serif>}} +\Configure{textsl}{\Protect\HCode{<italic>}\NoFonts} + {\EndNoFonts\Protect\HCode{</italic>}} +\Configure{texttt}{\Protect\HCode{<monospace>}\NoFonts} + {\EndNoFonts\Protect\HCode{</monospace>}} +\Configure{emph}{\Protect\HCode{<italic>}\NoFonts} + {\EndNoFonts\Protect\HCode{</italic>}} + +\Configure{underline} + {\HCode{<underline>}\:gobble} + {\HCode{</underline>}} + +\Configure{textsuperscript} + {\HCode{<sup>}} + {\HCode{</sup>}} + +\Configure{textsubscript} + {\HCode{<sub>}} + {\HCode{</sub>}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{book} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{chapter} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{chapter} + {\if@mainmatter + \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi} + +\Configure{likechapter} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\Configure{appendix} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{appendix}{\HCode{<label>}% + \appendixname\ \thechapter\HCode{</label>}} + + +\Configure{section} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{section} + {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble + \else + \HCode{<label>}\@seccntformat{section}% + \HCode{</label>}\fi } + +\Configure{likesection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\Configure{subsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{subsection} + {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble + \else + \HCode{<label>}\@seccntformat{section}% + \HCode{</label>}\fi } + +\Configure{likesubsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\Configure{subsubsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{subsubsection} + {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble + \else + \HCode{<label>}\@seccntformat{section}% + \HCode{</label>}\fi } + +\Configure{likesubsubsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\Configure{paragraph} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + + +\Configure{likeparagraph} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -76,6 +256,83 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{article} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\Configure{section} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{section} + {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble + \else + \HCode{<label>}\@seccntformat{section}% + \HCode{</label>}\fi } + +\Configure{likesection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\Configure{subsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{subsection} + {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble + \else + \HCode{<label>}\@seccntformat{section}% + \HCode{</label>}\fi } + +\Configure{likesubsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\Configure{subsubsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\TitleMark\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\ConfigureMark{subsubsection} + {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble + \else + \HCode{<label>}\@seccntformat{section}% + \HCode{</label>}\fi } + +\Configure{likesubsubsection} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + +\Configure{paragraph} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + + +\Configure{likeparagraph} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}} +{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}} + {\HCode{<title>}\space\HtmlParOff} + {\HCode{</title>}\HtmlParOn \ShowPar\par} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + @@ -131,6 +388,47 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{url} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{url}% + {\tmp:toks{#1}\ExternalLink[\noexpand\the\tmp:toks]{}{}{\let\UrlBigBreaks\empty + \let\UrlBreaks\empty #1}\EndExternalLink} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{hyperref} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + + + + + + + + + + |