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}
! Undefined control sequence. // l.108 \pgfkeyswithLuaLatex Version beta-0.76.0-2013122811 (TeX Live 2014/dev) (rev 4627). – alfC Apr 14 '14 at 05:38accsuppor byxe/lualatex? – alfC Apr 14 '14 at 05:40\usepackge{tikz}. There might be an issue with missing module dependencies of pgf/TIkZ, because the code only uses\pgfmathHex. – Heiko Oberdiek Apr 14 '14 at 05:46stringencandpdfescape,accsuppcould be updated to support "big chars". A clear and unambiguous specification for the support of "big chars" is probably the most difficult part. – Heiko Oberdiek Apr 14 '14 at 05:50ⅆa. Unfortunately Evince copiesda(it really convertⅆintod, I don't know how), but I guess that is beyond the scope of this question. A question by the way, why did you choose the syntax\BeginAccSupp{option} ...\EndAccSupp{}instead of\accsupp[options]{...}? Is there a techical reason for that. Can one make use of the last syntax by defining a new command? – alfC Apr 14 '14 at 05:59\verbinside an argument. The package just provides the basics, but onthe other hand, it supports different formats including plain TeX. Thus, just make a nice cozy command. e.g. something like\newcommmand{\accsupp}[2]{\BeginAccSupp{<options>,ActualText={#1}}#2\EndAccSupp{}}which hides the option settings from the user interface. – Heiko Oberdiek Apr 14 '14 at 10:31accsup? (it is for this http://tex.stackexchange.com/questions/194505/techniques-to-make-tabular-contents-copyable) – alfC Aug 11 '14 at 16:35accsupp. – Heiko Oberdiek Aug 11 '14 at 20:301.0.4 (TeX Live 2017)this needs\usepackage{lautex85}to workaround a bug https://github.com/ho-tex/oberdiek/issues/36. – alfC Aug 29 '18 at 18:59\usepackage{luatex85}. – Heiko Oberdiek Aug 29 '18 at 19:04