% \subsubsection{Images} % \DescribeEnv{image}{Place images inside an |image| environment. On paper, this centers the image. On the web, this provides additional benefits.} % \begin{macrocode} %<*classXimera> %\newenvironment{image}[1][]{\begin{center}}{\end{center}} \NewEnviron{image}[1][3in]{% \begin{center}\resizebox{#1}{!}{\BODY}\end{center}% resize and center } % % \end{macrocode} % \DescribeMacro{\alt}{Inside an |image| environment, |\alt| provides alt-text for assistive technology like screenreaders.} % \begin{macrocode} %<*classXimera> \newcommand{\alt}[1]{} % % \end{macrocode} % The |image| environment doesn't actually work in tex4ht as defined % with NewEnviron; so this renewenvironment is needed. % image-environment also gets formatted in a well, and when the user % clicks on the image, it zooms in. % \begin{macrocode} %<*htXimera> \newcounter{imagealt} \setcounter{imagealt}{0} \renewenvironment{image}[1][]{\stepcounter{imagealt}% \ifvmode \IgnorePar\fi \EndP% \HCode{