[XeTeX] XeTeX and Figures with Captions = No Document properties in Acrobat
joe tex
joetex1 at gmail.com
Wed Nov 26 19:19:23 CET 2008
Akira,
Thank you for that excellent solution.
- Joe
On Tue, Nov 25, 2008 at 8:11 PM, Akira Kakuto <kakuto at fuk.kindai.ac.jp> wrote:
>>I am trying to compile a document using Xetex with 'figures' within MikTeX.
>>When I add a caption to my figure it removes the PDF document
>>properties.(Please check File->properties within Acrobat 8.0)
>>Please note the document properties stays fine if there is no caption.
>>Did anyone experience this?
>>Please Compile the following in Xetex and check whether its happening to you.
>>
>>
>>%!TEX TS-program = xelatex
>>%!TEX encoding = UTF-8 Unicode
>>\documentclass{article}
>>\special{pdf: docinfo <<
>> /Author (Joe Python)
>> /Title (My figure)
>> /Keywords (docinfo,xetex, figures)
>> /Subject (Unable to view PDF properties in Adobe acrobat when
>>using figure with CAPTION)
>> >>}
>>%/Title (Pdf document info within xetex using figures)
>>\usepackage{fontspec}
>>\usepackage{xunicode,xltxtra}
>>
>>\begin{document}
>>\begin{figure}
>>% using \caption will clear document properties
>>\caption{My figure}
>>\end{figure}
>>\end{document}
>
> Experiment:
> PDF document properties are not removed if enclosed by
> \AtBeginDvi{ ... }
>
>
> %!TEX TS-program = xelatex
> %!TEX encoding = UTF-8 Unicode
> \documentclass{article}
> \AtBeginDvi{% ------------ Added
> \special{pdf: docinfo <<
> /Author (Joe Python)
> /Title (My figure)
> /Keywords (docinfo,xetex, figures)
> /Subject (Unable to view PDF properties in Adobe acrobat when
> using figure with CAPTION)
> >>}
> %/Title (Pdf document info within xetex using figures)
> }% ----------------------- Added
> \usepackage{fontspec}
> \usepackage{xunicode,xltxtra}
>
> \begin{document}
> \begin{figure}
> % using \caption will clear document properties
> \caption{My figure}
> \end{figure}
> \end{document}
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
--
- Joe
More information about the XeTeX
mailing list