[XeTeX] Whitespace in input

Ulrike Fischer news3 at nililand.de
Sat Nov 19 14:52:38 CET 2011


Am Sat, 19 Nov 2011 00:30:58 +0100 schrieb Zdenek Wagner:

>> /ActualText is your friend here.
>> You tag the content and provide the string that you want to appear
>> with Copy/Paste as the value associated to a dictionary key.

> I do not know whether the PDF specification has evolved since I read
> it the last time. /ActualText allows only single-byte characters, ie
> those with codes between 0 and 255, not arbitrary Unicode characters.

This here works fine with pdflatex + xetex:

\documentclass{article}
\usepackage{accsupp}
\begin{document}
\BeginAccSupp{method=hex,unicode,ActualText=20AC}%
 Euro%
\EndAccSupp{}%

\BeginAccSupp{method=hex,unicode,ActualText=03B1}%
 alpha%
\EndAccSupp{}%
\end{document}

-- 
Ulrike Fischer 



More information about the XeTeX mailing list