[pdftex] \pdfstringdef doesn't like newline code in Unicode document?

Roboco Sanchez roboco at gmail.com
Thu Jul 29 16:04:54 CEST 2004


Many thanks.

On Thu, 29 Jul 2004 14:43:41 +0200, Heiko Oberdiek
<oberdiek at uni-freiburg.de> wrote:
> On Thu, Jul 29, 2004 at 10:46:50AM +0100, Roboco Sanchez wrote:
> 
> > I'm trying to have multiple-line text in annotation box in unicode
> > document. I've tried this,
> >
> > \pdfstringdef\annot at text{LINE1\string\n LINE2}
> 
> hyperref.dtx:
> 
> % \paragraph{Newline}
> %    \cmd{\newline} or \cmd{\\} do not work in bookmarks, in text
> %    annotations they should expand to \cmd{\r}. In pdf strings
> %    \cmd{\\} stands for a backslash. Therefore the commands
> %    are disabled now. The user can redefine them for a result
> %    what he want:
> %    \begin{description}
> %    \item[backslash:]
> %      |\pdfstringdefDisableCommands{\let\\\textbackslash}|
> %    \item[new line:]
> %      |\pdfstringdefDisableCommands{\let\\\textCR}|
> %    \item[disabled:]
> %      |\pdfstringdefDisableCommands{\let\\\empty}|
> %    \end{description}
> %    At any case, however, the optional argument or the star
> %    cannot be scanned in a 100\% sure manner.
> 
> Yours sincerely
>   Heiko <oberdiek at uni-freiburg.de>
> --
> 
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex
>



More information about the pdftex mailing list