Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/theorems.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@
% On the web, a theorem is emitted as a special |<div>|.
% \begin{macrocode}
%<*htXimera>
\newcommand{\thmheadlevel}{%
\ifnum\value{subsubsection}>0 6%
\else\ifnum\value{subsection}>0 5%
\else 4%
\fi\fi}
\newcommand{\ConfigureTheoremEnv}[1]{%
\renewenvironment{#1}[1][]{\refstepcounter{problem}%
\ifthenelse{\equal{##1}{}}{}{%
\HCode{<span class="theorem-like-title">}##1\HCode{</span>}%
\HCode{<span class="theorem-like problem-environment">}##1\HCode{</span>}%
}}{}
\ConfigureEnv{#1}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{<div class="theorem-like problem-environment #1" id="problem\arabic{identification}" titletext=" \GetTranslation{#1}">}}{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}\IgnoreIndent}{}{}%
\ConfigureEnv{#1}
{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP
\HCode{<div class="theorem-like problem-environment" id="problem\arabic{identification}"><section>\Hnewline<h\thmheadlevel>}\GetTranslation{#1}\HCode{</h\thmheadlevel>}}
{\ifvmode\IgnorePar\fi\EndP\HCode{</section></div>}\IgnoreIndent}
{}{}%
}
%</htXimera>
%<classXimera>\theoremstyle{definition} % No italic (because this makes also text in TikZ italic !!!)
Expand Down
13 changes: 11 additions & 2 deletions ximera.4ht
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,21 @@
\ifdefined\xmNotHintAsExpandable
\ConfigureQuestionEnv{hint}{hint} % 2024: hint is no longer a 'question-environment'.
\fi
\newcommand{\thmheadlevel}{%
\ifnum\value{subsubsection}>0 6%
\else\ifnum\value{subsection}>0 5%
\else 4%
\fi\fi}
\newcommand{\ConfigureTheoremEnv}[1]{%
\renewenvironment{#1}[1][]{\refstepcounter{problem}%
\ifthenelse{\equal{##1}{}}{}{%
\HCode{<span class="theorem-like-title">}##1\HCode{</span>}%
\HCode{<span class="theorem-like-problem-environment">}##1\HCode{</span>}%
}}{}
\ConfigureEnv{#1}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{<div class="theorem-like problem-environment #1" id="problem\arabic{identification}" titletext=" \GetTranslation{#1}">}}{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}\IgnoreIndent}{}{}%
\ConfigureEnv{#1}
{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP
\HCode{<div class="theorem-like-problem-environment" id="problem\arabic{identification}"><section>\Hnewline<h\thmheadlevel>}\GetTranslation{#1}\HCode{</h\thmheadlevel>}}
{\ifvmode\IgnorePar\fi\EndP\HCode{</section></div>}\IgnoreIndent}
{}{}%
}


Expand Down
Binary file modified ximera.pdf
Binary file not shown.