summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/axessibility/axessibility.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/axessibility/axessibility.sty')
-rw-r--r--Master/texmf-dist/tex/latex/axessibility/axessibility.sty125
1 files changed, 125 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/axessibility/axessibility.sty b/Master/texmf-dist/tex/latex/axessibility/axessibility.sty
new file mode 100644
index 00000000000..6c13a24eb55
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/axessibility/axessibility.sty
@@ -0,0 +1,125 @@
+%%
+%% 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 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}
+\pdfcompresslevel=0
+\pdfoptionpdfminorversion=6
+\input{glyphtounicode}
+\pdfgentounicode=1
+
+
+\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
+\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
+
+
+\endinput
+%%
+%% End of file `axessibility.sty'.