Skip navigation.

Paradise Lost

土法炼钢:tex中写入pdf 文件信息

, , ,

如何在tex中写入pdf信息~by \special

这些只能被dvipdfm,dvipdfmx支持
pdftex 和 dvips 都会忽略掉这些\special 指令

将这些加入到tex文档中
\special{pdf: docinfo << 
/Title (XXXX)%标题
/Author (XXXX)%作者
/Subject (XXXX)%主题
/Keywords (XXXX)%关键字
/Creator (XXXX)%指的是从其他文档格式转换到pdf时,创建原始文档所用的软件名称,比如pdftex
/Producer (XXXX)%指的是从其他文档格式转换到pdf时所用的软件名称,比如dvipdfmx
/CreationDate (XXXX)%创建日期
%格式(D:YYYYMMDDHHmmSSOHH'mm')O is the relationship of local time to Universal Time (UT), denoted by one of the characters +, −, or Z 
%HH followed by ' is the absolute value of the offset from UT in hours (00–23)
%mm followed by ' is the absolute value of the offset from UT in minutes (00–59)
%就不翻译了啊 
/ModDate (XXXX)%修改日期,同上
/Trapped (XXXX)%牵扯到排版的术语,俺是行外就不多说了
>>} 


\special{pdf: docview << /ViewerPreferences << 
/HideToolbar true %隐藏工具栏
/HideMenubar true %隐藏菜单栏
/HideWindowUI true %隐藏所有窗口UI元素
/FitWindow true %打开时适应页面大小
/CenterWindow true %打开时页面居中
/DisplayDocTitle true %需要pdf版本1.4;在acrobat窗口标题栏显示此pdf的 metadata信息,即/Author,/Title等
/NonFullScreenPageMode UseNone %UseOutlines %UseThumbs %仅当PageMode 设为FullScreen时,此选项才生效
/PageLayout SinglePage %OneColumn %TwoColumnLeft %TwoColumnRight %页面布局,单页,一页一列,双列奇数页在左,双列奇数页在右
>> >>}

\special{pdf: docview << /PageMode /FullScreen >>}
%PageMode UseNone %UseOutlines %UseThumbs %FullScreen  %是默认的显示模式,Outlines就是左侧显示书签,Thumbs就是显示页面缩略图,Fullcreen自然就是全屏


可能有些pdf选项仅适用于Acrobat,Adobe Reader
当然kpdf也支持/Pagemode FullScreen
不过称为“展示模式”

如果同时使用了hyperref宏包设定pdf文件的meta data,
则优先使用\special命令

对中文的支持请参考李果正先生的讨论
http://blog.bs2.to/post/EdwardLee/4776

本文参考了dvipdfm文档
以及PDFReference

ubuntu下面安装tetex+cjkxmame on ubuntu Q&A

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31