% \subsection{SageMath support} % Load Sage\TeX\ if it exists. % \begin{macrocode} %<*classXimera> \IfFileExists{sagetex.sty}{\RequirePackage{sagetex}}{} % % \end{macrocode} % \DescribeEnv{sageCell}{Create an interactive SageMath widget.} % \begin{macrocode} %<*classXimera> \DefineVerbatimEnvironment{sageCell}{Verbatim}{numbers=left,frame=lines,label=SAGE,labelposition=topline} % % \end{macrocode} % \begin{macrocode} %<*htXimera> \renewenvironment{sageCell}{\NoFonts}{\EndNoFonts} \ScriptEnv{sageCell}{\ifvmode \IgnorePar\fi \EndP\HCode{
}} % % \end{macrocode} % \DescribeEnv{sageOutput}{Execute SageMath code and output the result.} % \begin{macrocode} %<*classXimera> \DefineVerbatimEnvironment{sageOutput}{Verbatim}{numbers=left,frame=lines,label=SAGE-Output,labelposition=topline} % % \end{macrocode} % \begin{macrocode} %<*htXimera> \renewenvironment{sageOutput}{\NoFonts}{\EndNoFonts} \ScriptEnv{sageOutput}{\ifvmode \IgnorePar\fi \EndP\HCode{}} % % \end{macrocode} % \DescribeEnv{sageSilent}{Execute SageMath code without outputing the result.} % \begin{macrocode} %<*htXimera> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \renewenvironment{sagesilent}{\NoFonts}{\EndNoFonts} \ScriptEnv{sagesilent}{\ifvmode \IgnorePar\fi \EndP\HCode{}} % % \end{macrocode}