diff options
author | Karl Berry <karl@freefriends.org> | 2019-01-08 21:54:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-01-08 21:54:02 +0000 |
commit | d421b1378f94e4aade6069fe421d3e186898cba2 (patch) | |
tree | aab6c13904aa2696d52666830c618ee5d4607fc3 /Master/texmf-dist/tex/latex/axessibility | |
parent | 3eec52e2f37fb5ad2e6de4ec20cb26ff280777a1 (diff) |
axessibility (8jan19)
git-svn-id: svn://tug.org/texlive/trunk@49642 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/axessibility')
-rw-r--r-- | Master/texmf-dist/tex/latex/axessibility/axessibility.sty | 113 |
1 files changed, 112 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/axessibility/axessibility.sty b/Master/texmf-dist/tex/latex/axessibility/axessibility.sty index 6c13a24eb55..e7b7210dbff 100644 --- a/Master/texmf-dist/tex/latex/axessibility/axessibility.sty +++ b/Master/texmf-dist/tex/latex/axessibility/axessibility.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2018 by +%% Copyright (C) 2018, 2019 by %% Anna Capietto, Sandro Coriasco, Tiziana Armano, %% Nadir Murru, Alice Ruighi, Eugenia Taranto, %% Dragan Ahmetovic, Cristian Bernareggi, Michele Berra. @@ -26,17 +26,25 @@ %% + \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 @@ -81,6 +89,19 @@ \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 @@ -111,6 +132,7 @@ \protected\def\[#1\]{\begin{equation*}#1\end{equation*}} \makeatother + \makeatletter \newenvironment{tempenv}{% \relax\ifmmode\@badmath\else$\fi% @@ -120,6 +142,95 @@ \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'. |