In the following example, I can't manage to make accsupp
store the unicode alternative text. The resulting PDF looks as expected but the copyable text is not the correct one. I tried this with different accsupp
options: method=plain
,...=escape
, ...=pdfstringdef
, and unicode
. (accsupp
manual is here). I tried with Acrobat 9.4.1 (Linux) and Evince. I am using LuaLaTeX to compile.
The idea is that when I select the equation in the next document the text ⅆa
is copied. (In most cases only a
gets copied.)
\documentclass{article}
\usepackage{fontspec}
\usepackage{accsupp}
\begin{document}
\BeginAccSupp{unicode,ActualText=ⅆa} %method=plain, ...=escape, ...=pdfstringdef
$da$
\EndAccSupp{}
\end{document}