Re: texorpdfstring not working?

Erwan Le Pennec <[email protected]>
Newsgroups gmane.comp.tex.latex.prosper.user
Message-ID <[email protected]>
	Hello,

	I've an answer for this....
On Tue, 23 Dec 2003, Tobias Hilbricht wrote:

> Dear readers of this list,
[snip] 
> How do I get the macro \texorpdfstring to work, or what else can I do to get 
> proper bookmarks?
> I am using prosper and hyperref from the TeX Collection 2003 (that is prosper 
> v1.5), ghostscript v. 7.07, dvips 5.94a and Acrobat Reader 5.08.
> 
> Thanks a lot for helpful hints in advance
> 
> Yours sincerely 
> 
> Tobias Hilbricht

	You could modify prosper.cls itself and the macro 
\@addBookmarkOnSlide. some \def are modified as \pdfstringdef and it 
works...

-------
% Add a bookmark for each master slide
\def\@addBookmarkOnSlide#1#2{%
  \ifnum#1=0
  \pdfstringdef\Hy@temp{#2}%
    \pdfmark{pdfmark=/OUT,
      Raw={/Page \thetrueSlideCounter
        /View [ /XYZ null null null ]
        /Title (\Hy@temp)}
    }%
  \else
  \@tempoLimit=#1%
  \advance \@tempoLimit by -1
  \ifcollapsedBookmarks
    \@tempoLimit=-\@tempoLimit
  \fi
  \pdfstringdef\Hy@temp{#2}%
    \pdfmark{pdfmark=/OUT,
      Raw={/Count \number\@tempoLimit /Page \thetrueSlideCounter
        /View [ /XYZ null null null ]
        /Title (\Hy@temp)}
    }%
  \fi
}

------

	Erwan



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.