最新版本 3.0.32 包含了一种增强功能,允许您将 PDF 文件精确地插入到前言(Front Matter)中所需的位置。以下是关于如何使用作为里程碑的 \zpdf 命令的一些说明:
此 \zpdf 代码可以放置在 SFM 文本的任何位置,包括您的 前言 (FRTlocal.sfm)中,并会插入指定的 PDF 文件。请注意,您必须使用正斜杠 /(而不是\back\slashes)作为路径分隔符;并且最好将 PDF 文件放置在项目的“shared”文件夹中 ,以便在 Paratext 中通过 send/recv 进行共享,并且无论用户是谁,PTXprint 都能在相同的位置找到它们。
该命令的最简单形式如下:
\zpdf|file="../../../shared/IntroPages.pdf"\*
或者,如果您确实需要硬编码路径(即相对于 PTXprint 设置的路径),您也可以这样做:
\zpdf|file="C:/Temp/IntroPages.pdf"\*
如果您需要缩放、旋转或仅从较长的 PDF 中选择一页,也可以通过额外参数实现:
\zpdf|file="../../../shared/Filename.pdf" page="3" scale="750" rotate="270"\*
请注意,对于缩放,1000 = 100%,因此 500 表示 50%,依此类推。因此,在上面的示例中,只会插入 Filename.pdf 中的第 3 页,缩放至 75% 大小,并旋转 270 度。
在您的前言材料上下文中,您可能希望像这样添加一个或多个介绍页:
...
\pc \zimagecopyrights
\rem ----------Page 3----------------
\periph Intro Matter|id="importedpdf"
\zpdf|file="../../../shared/IntroPages.pdf"\*
\rem ----------Page 4----------------
\periph Table of Contents|id="contents"
\mt3 \zvar|toctitle\*
\ip \ztoc|main\*
...
The latest version 3.0.32 includes an enhanced way of including PDFs exactly where you need them within Front Matter. Here are some notes on how to use this \zpdf command which functions as a milestone:
This \zpdf code can go anywhere within SFM text, including in your Front Matter (FRTlocal.sfm), and will insert the PDF file specified. Notice that you must use /forward/slashes (not\back\slashes) for your path separators; and it is ideal to place the PDFs in the project's "shared" folder so that they get shared using send/recv in Paratext and so that PTXprint can find them in the same place regardless of user.
The simplest form of the command is this:
\zpdf|file="../../../shared/IntroPages.pdf"\*
or if you really need a hardcoded path (which isn't relative to PTXprint's settings) you can also do this:
\zpdf|file="C:/Temp/IntroPages.pdf"\*
And if you need to scale, or rotate or select just one page from a longer PDF, then that's also possible with the extra parameters:
\zpdf|file="../../../shared/Filename.pdf" page="3" scale="750" rotate="270"\*
Note here that for scale, 1000 = 100%, so 500 would be 50% etc. So in the above example, only page 3 from the Filename.pdf will be inserted, scaled to 75% size, and rotated 270 degrees.
Within the context of your Front Matter material you may want to add one or more Intro Pages like this:
...
\pc \zimagecopyrights
\rem ----------Page 3----------------
\periph Intro Matter|id="importedpdf"
\zpdf|file="../../../shared/IntroPages.pdf"\*
\rem ----------Page 4----------------
\periph Table of Contents|id="contents"
\mt3 \zvar|toctitle\*
\ip \ztoc|main\*
...
机器翻译自 English