diff options
author | Karl Berry <karl@freefriends.org> | 2018-07-10 21:07:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-07-10 21:07:14 +0000 |
commit | 1060c0ec4ed0c2403d13f6886ff1227c5fd40b5f (patch) | |
tree | 4ddffdbe485e820203479ff62d2a87f2c49b4fac /Master/texmf-dist/tex | |
parent | 4bbc008e81df7ec54a401548c1403201a26488b2 (diff) |
axessibility (10jul18)
git-svn-id: svn://tug.org/texlive/trunk@48179 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/axessibility/axessibility.sty | 125 |
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'. |