%% %% This is file `axessibility.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% axessibility.dtx %% %% This is a generated file. %% %% Copyright (C) 2018, 2019 by %% Anna Capietto, Sandro Coriasco, Tiziana Armano, %% Nadir Murru, Alice Ruighi, Eugenia Taranto, %% Dragan Ahmetovic, Cristian Bernareggi, Michele Berra. %% %% This work consists of the main source file axessibility.dtx %% and the derived files %% axessibility.ins, axessibility.sty, axessibility.pdf, README, %% axessibilityExampleGoldenMean.tex %% %% The Current Maintainer of this work is %% Sandro Coriasco %% %% This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License %% http://creativecommons.org/licenses/by-nc/4.0/ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{axessibility} \RequirePackage{accsupp} \RequirePackage{amsmath} \RequirePackage{amssymb} \RequirePackage{xstring} \pdfcompresslevel=0 \pdfoptionpdfminorversion=6 \input{glyphtounicode} \pdfgentounicode=1 \newtoks\@mltext \newtoks\@mltexttmp \makeatletter \renewcommand*{\BeginAccSupp}[1]{% \begingroup \setkeys{ACCSUPP}{#1}% \edef\ACCSUPP@span{% /S/Span<<% \ifx\ACCSUPP@Lang\relax \else /Lang\ACCSUPP@Lang \fi \ifx\ACCSUPP@Alt\relax \else /Alt\ACCSUPP@Alt \fi \ifx\ACCSUPP@ActualText\relax \else /ActualText\ACCSUPP@ActualText \fi \ifx\ACCSUPP@E\relax \else /E\ACCSUPP@E \fi >>% }% \ACCSUPP@bdc \ACCSUPP@space \endgroup } \makeatother \newcommand{\auxiliaryspace}{ } \makeatletter \long\def\wrap#1{ \BeginAccSupp{method=escape,ActualText=\detokenize\expandafter{#1}} #1 \EndAccSupp{}% } \makeatother \makeatletter \long\def\wrapml#1{ \def\@mltext{\detokenize\expandafter{#1}} \def\@mltexttmp{} \StrBehind[5]{\@mltext}{ }[\@mltexttmp] \StrGobbleRight{\@mltexttmp}{1}[\@mltext] \BeginAccSupp{method=escape,ActualText=\auxiliaryspace\@mltext} #1 \EndAccSupp{}% } \makeatother \makeatletter \renewenvironment{equation}{% \incr@eqnum \mathdisplay@push \st@rredfalse \global\@eqnswtrue \mathdisplay{equation}% \collect@body\wrap\auxiliaryspace}{% \endmathdisplay{equation}% \mathdisplay@pop \ignorespacesafterend } \makeatother \makeatletter \renewenvironment{equation*}{% \mathdisplay@push \st@rredtrue \global\@eqnswfalse \mathdisplay{equation*}% \collect@body\wrap\auxiliaryspace}{% \endmathdisplay{equation*}% \mathdisplay@pop \ignorespacesafterend } \makeatother \makeatletter \protected\def\[#1\]{\begin{equation*}#1\end{equation*}} \makeatother \makeatletter \newenvironment{tempenv}{% \relax\ifmmode\@badmath\else$\fi% \collect@body\wrap}{% \relax\ifmmode\ifinner$\else\@badmath\fi\else \@badmath\fi} \protected\def\(#1\){\begin{tempenv}#1\end{tempenv}} \makeatother \makeatletter \renewenvironment{alignat}{% \collect@body\wrapml\auxiliaryspace \start@align\z@\st@rredfalse }{% \endalign } \renewenvironment{alignat*}{% \collect@body\wrapml\auxiliaryspace \start@align\z@\st@rredtrue }{% \endalign } \renewenvironment{xalignat}{% \collect@body\wrapml\auxiliaryspace \start@align\@ne\st@rredfalse }{% \endalign } \renewenvironment{xalignat*}{% \collect@body\wrapml\auxiliaryspace \start@align\@ne\st@rredtrue }{% \endalign } \renewenvironment{xxalignat}{% \collect@body\wrapml\auxiliaryspace \start@align\tw@\st@rredtrue }{% \endalign } \renewenvironment{align}{% \collect@body\wrapml\auxiliaryspace \start@align\@ne\st@rredfalse\m@ne }{% \math@cr \black@\totwidth@ \egroup \ifingather@ \restorealignstate@ \egroup \nonumber \ifnum0=`{\fi\iffalse}\fi \else $$% \fi \ignorespacesafterend } \renewenvironment{align*}{% \collect@body\wrapml\auxiliaryspace \start@align\@ne\st@rredtrue\m@ne }{% \endalign } \renewenvironment{flalign}{% \collect@body\wrapml\auxiliaryspace \start@align\tw@\st@rredfalse\m@ne }{% \endalign } \renewenvironment{flalign*}{% \collect@body\wrapml\auxiliaryspace \start@align\tw@\st@rredtrue\m@ne }{% \endalign } \renewenvironment{gather}{% \collect@body\wrapml\auxiliaryspace\auxiliaryspace \start@gather\st@rredfalse }{% \math@cr \black@\totwidth@ \egroup $$\ignorespacesafterend } \renewenvironment{gather*}{% \collect@body\wrapml\auxiliaryspace\auxiliaryspace \start@gather\st@rredtrue }{% \endgather } \makeatother \endinput %% %% End of file `axessibility.sty'.