%% %% This is file `ximera.4ht', %% generated with the docstrip utility. %% %% The original source files were: %% %% ximera.dtx (with options: `htXimera') %% src/pagesetup.dtx (with options: `htXimera') %% src/title.dtx (with options: `htXimera') %% src/problem.dtx (with options: `htXimera') %% src/macros.dtx (with options: `htXimera') %% src/theorems.dtx (with options: `htXimera') %% src/image.dtx (with options: `htXimera') %% src/dialogue.dtx (with options: `htXimera') %% src/foldable.dtx (with options: `htXimera') %% src/interactives/video.dtx (with options: `htXimera') %% src/xkcd.dtx (with options: `htXimera') %% src/link.dtx (with options: `htXimera') %% src/interactives/graph.dtx (with options: `htXimera') %% src/answer.dtx (with options: `htXimera') %% src/choice.dtx (with options: `htXimera') %% src/freeresponse.dtx (with options: `htXimera') %% src/interactives/javascript.dtx (with options: `htXimera') %% src/interactives/include.dtx (with options: `htXimera') %% src/interactives/geogebra.dtx (with options: `htXimera') %% src/interactives/desmos.dtx (with options: `htXimera') %% src/interactives/google.dtx (with options: `htXimera') %% src/feedback.dtx (with options: `htXimera') %% src/leash.dtx (with options: `htXimera') %% src/labels.dtx (with options: `htXimera') %% src/interactives/sagemath.dtx (with options: `htXimera') %% src/ungraded.dtx (with options: `htXimera') %% src/footnotes.dtx (with options: `htXimera') %% src/ending.dtx (with options: `htXimera') %% ------------:| ------------------------------------------------------------ %% ximera:| Simultaneously writing print and online interactive materials %% Author:| Jim Fowler and Oscar Levin and Jason Nowell and Wim Obbels and Hans Parshall and Bart Snapp %% E-mail:| bart.snapp@gmail.com %% License:| Released under the LaTeX Project Public License v1.3c or later %% See:| http://www.latex-project.org/lppl.txt %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{microtype} \DisableLigatures[f]{encoding=*} \NewEnviron{html}{\HCode{\BODY}} \Configure{@HEAD}{\HCode{\Hnewline}} \def\and{and } \renewcommand{\maketitle}{} \newcounter{identification} \setcounter{identification}{0} \newcommand{\ConfigureQuestionEnv}[2]{% \renewenvironment{#1}{\refstepcounter{problem}}{}% \ConfigureEnv{#1}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}}{\ifvmode \IgnorePar\fi \EndP\HCode{
}\IgnoreIndent}{}{}% } \ConfigureQuestionEnv{problem}{problem} \ConfigureQuestionEnv{exercise}{exercise} \ConfigureQuestionEnv{question}{question} \ConfigureQuestionEnv{exploration}{exploration} \ConfigureQuestionEnv{hint}{hint} %%%%\ConfigureQuestionEnv{shuffle}{shuffle} \newcommand{\ConfigureTheoremEnv}[1]{% \renewenvironment{#1}[1][]{\refstepcounter{problem}% \ifthenelse{\equal{##1}{}}{}{% \HCode{}##1\HCode{}% }}{} \ConfigureEnv{#1}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}}{\HCode{
}\IgnoreIndent}{}{}% } \ConfigureTheoremEnv{theorem} \ConfigureTheoremEnv{algorithm} \ConfigureTheoremEnv{axiom} \ConfigureTheoremEnv{claim} \ConfigureTheoremEnv{conclusion} \ConfigureTheoremEnv{condition} \ConfigureTheoremEnv{conjecture} \ConfigureTheoremEnv{corollary} \ConfigureTheoremEnv{criterion} \ConfigureTheoremEnv{definition} \ConfigureTheoremEnv{example} \ConfigureTheoremEnv{explanation} \ConfigureTheoremEnv{fact} \ConfigureTheoremEnv{lemma} \ConfigureTheoremEnv{formula} \ConfigureTheoremEnv{idea} \ConfigureTheoremEnv{notation} \ConfigureTheoremEnv{model} \ConfigureTheoremEnv{observation} \ConfigureTheoremEnv{proposition} \ConfigureTheoremEnv{paradox} \ConfigureTheoremEnv{procedure} \ConfigureTheoremEnv{remark} \ConfigureTheoremEnv{summary} \ConfigureTheoremEnv{template} \ConfigureTheoremEnv{warning} \newcounter{imagealt} \setcounter{imagealt}{0} \renewenvironment{image}[1][]{\stepcounter{imagealt}% \ifvmode \IgnorePar\fi \EndP% \HCode{}} \renewcommand{\alt}[1]{\HCode{}} \newcommand{\pgfsyspdfmark}[3]{} \renewenvironment{dialogue}{\begin{description}}{\end{description}} \ConfigureList{dialogue}% {\EndP\HCode{
}% \PushMacro\end:itm \global\let\end:itm=\empty} {\PopMacro\end:itm \global\let\end:itm \end:itm \EndP\HCode{
}\ShowPar} {\end:itm \global\def\end:itm{\EndP\Tg}\HCode{
}\bgroup \bf} {\egroup\EndP\HCode{
}} \renewenvironment{foldable}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}}{\HCode{
}\IgnoreIndent} \renewenvironment{expandable}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
} }{\HCode{
}\IgnoreIndent} \renewcommand{\unfoldable}[1]{\HCode{}#1\HCode{}} \renewcommand{\youtube}[1]{\ifvmode \IgnorePar\fi \EndP\HCode{
_
}} \renewcommand{\xkcd}[1]{\ifvmode \IgnorePar\fi \EndP\HCode{}} \renewcommand*{\link}[2][]{% \ifthenelse{\equal{#1}{}}% {\url{#2}} {\href{#2}{#1}}} \AtBeginDocument{\renewcommand{\ref}[1]{\HCode{#1}}} \renewcommand{\graph}[2][]{\HCode{
}#2\HCode{
}} \renewcommand{\answer}[2][false]{\HCode{}#2\HCode{}} \def\validator[#1]{\stepcounter{identification}\HCode{
}} \def\endvalidator{\HCode{
}} \newcounter{choiceId} \renewcommand{\choice}[2][]{% \setkeys{choice}{correct=false}% \setkeys{choice}{#1}% \stepcounter{choiceId}\IgnorePar% \HCode{}% #2\HCode{}} \let\inlinechoice\choice \renewenvironment{multipleChoice}[1][] {\setkeys{multipleChoice}{#1}% \stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}% }{\HCode{
}\IgnoreIndent} \ConfigureEnv{multipleChoice}{}{}{}{} \renewenvironment{multipleChoice@}{\refstepcounter{problem}}{}% \ConfigureEnv{multipleChoice@}{\stepcounter{identification}\IgnorePar\HCode{}}{\HCode{}\IgnoreIndent}{}{} \renewenvironment{selectAll}{\refstepcounter{problem}}{}% \ConfigureEnv{selectAll}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}}{\HCode{
}\IgnoreIndent}{}{} \renewenvironment{freeResponse}{\refstepcounter{problem}}{}% \ConfigureEnv{freeResponse}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}}{\HCode{
}\IgnoreIndent}{}{}% \renewenvironment{javascript}{\NoFonts}{\EndNoFonts} \ScriptEnv{javascript}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}} \def\js#1{\stepcounter{identification}\HCode{}} \renewcommand{\includeinteractive}[2][]{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{
}\HCode{}\IgnoreIndent} \define@key{geogebra}{rc}[true]{\def\geo@rc{#1}} \define@key{geogebra}{sdz}[true]{\def\geo@sdz{#1}} \define@key{geogebra}{smb}[true]{\def\geo@smb{#1}} \define@key{geogebra}{stb}[true]{\def\geo@stb{#1}} \define@key{geogebra}{stbh}[true]{\def\geo@stbh{#1}} \define@key{geogebra}{ld}[true]{\def\geo@ld{#1}} \define@key{geogebra}{sri}[true]{\def\geo@sri{#1}} \setkeys{geogebra}{rc=false,sdz=false,smb=false,stb=false,stbh=false,ld=false,sri=false} \renewcommand{\geogebra}[4][]{% \setkeys{geogebra}{#1}% Set new keys \HCode{}} \renewcommand{\desmos}[3]{\HCode{}} \renewcommand{\desmosThreeD}[3]{\HCode{}} \renewcommand{\googleSheet}[5]{% \ifthenelse{\equal{#4}{}}% {\HCode{}}% {\ifthenelse{\equal{#5}{}}% {\HCode{}}% {\HCode{}}% }% }% \def\feedback{\@ifnextchar[{\@feedbackcode}{\@feedbackattempt}} \def\@feedbackattempt{\@feedbackcode[attempt]} \def\@feedbackcode[#1]{\stepcounter{identification}% \ifvmode \IgnorePar\fi \EndP% \ifthenelse{\equal{#1}{attempt}}{\HCode{
}}% {\ifthenelse{\equal{#1}{correct}}{\HCode{}} \renewenvironment{ungraded}{% \ifvmode \IgnorePar\fi \EndP\HCode{
}\IgnoreIndent% }{ \ifvmode \IgnorePar\fi \EndP\HCode{
}\IgnoreIndent% } \newcounter{footnoteNum}% This will track footnote numbering for the superscript and for the ID. \colorlet{fncolor}{red!30!blue}% This is the footnote text coloring. This will allow users to renew this coloring to their own preference if they want to. The default here is a blue coloring. NOTE: Currently; trying to use `footnotecolor' (as a more descriptive color name) breaks everything on my system pretty spectacularly for some reason. This may be just mine or a clash somewhere in the ximera package, so for now I'm leaving it as `fncolor'. \renewcommand{\footnote}[1]{\ifvmode\ShowPar\fi \stepcounter{footnoteNum}% Step the counter to make a new footnote %% The following HCode should setup the javascript function that shows or hides the footnote. If you want to change the footnote location, you may want to change the 'inline' part of x.style.display = 'inline'; to another CSS display type, like 'block' or 'inherit'. Current the `x.display.color' seems to not be working. \HCode{ } %% The next command needs \expandafter in order to expand the counter footnoteNum into a roman character for the footnote ID. These seem to work better than arabic numerals in some cases, although why is not clear. %% The next HCode controls the formatting for the actual footnote reference number (ie the superscript), but not the footnote itself. \expandafter\HCode{ } %% The next command needs \expandafter in order to expand the counter footnoteNum into a roman character for the footnote ID. These seem to work better than arabic numerals in some cases, although why is not clear. Note that the ID counter style choice (roman vs arabic etc) needs to match the previous HCode choice. %% Currently most of the formatting doesn't seem to work as intended, so that still needs to be figured out and fixed. Ideally we would have the footnote appear as a bubble above the footnote superscript when the footnote superscript is clicked. \expandafter\HCode{ } }% End of footnote definition. \Hinput{ximera} %% %% Copyright (C) 2024 by Bart Snapp and Jim Fowler %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License (LPPL), either %% version 1.3c of this license or (at your option) any later %% version. The latest version of this license is in the file: %% %% http://www.latex-project.org/lppl.txt %% %% This work is "maintained" (as per LPPL maintenance status) by %% Bart Snapp. The source code can be found at: %% %% https://github.com/XimeraProject/ximeraLatex %% %% This work consists of the file ximera.dtx, the associated files %% under src/, and a Makefile. %% %% Running "make" generates the derived files README, ximera.pdf, ximera.cls, xourse.cls. %% %% Running "make inst" installs the files in the user's TeX tree. %% %% Running "make install" installs the files in the local TeX tree. %% %% %% End of file `ximera.4ht'.