[pdftex] [texhax] making pdf document accessible using LaTeX

Victor Ivrii vivrii at gmail.com
Mon Nov 12 01:18:05 CET 2007

On Nov 11, 2007 6:03 PM, Sauro Cesaretti <me at saurocesaretti.com> wrote:
>
> Hello everyone,
>
> I'd like to ask some information to create accessibile pdf documents using
> LaTeX.
> I have known that there are some guidelines to create as such, how can I use
> these guidelines in LaTeX?
> In particular, I'd like to make mathematical expressions accessible and
> I'd like to do giving one alternate output using LaTeX notation.
> Example, reading a pdf document and will encounter
> a formula that for screen readers tools  is a graphical element,  I'd like
> to read it driving the information with LaTeX notation.
>
> Could you help me with some information to do these things?
> are there some LaTeX packages for this?
>
>

This is an example posted by someone more knowledgeable than me. You
can put the text to speak in
/ActualText (sum with i from to n .....  )
\documentclass[12pt]{article}

\begin{document}

\bgroup
\lccode!=\\
\lowercase{\gdef\esc{!!}}
\egroup

You can easily write equations such as
\pdfliteral direct {%
/Span <<
/ActualText ($\esc sum_{i=1}^{n}i = \esc frac{1}{2}n \esc cdot (n+1)$)
>>
BDC
}
$\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)$
\pdfliteral direct {%
EMC
}
in \LaTeX.

\end{document}

--
========================
Victor Ivrii, Professor, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii