Versi terbaru 3.0.32 mencakup cara yang ditingkatkan untuk menyertakan PDF tepat di tempat yang Anda butuhkan dalam Front Matter. Berikut adalah beberapa catatan tentang cara menggunakan perintah \zpdf ini yang berfungsi sebagai penanda:
Kode \zpdf ini dapat ditempatkan di mana saja dalam teks SFM, termasuk di Front Matter Anda (FRTlocal.sfm), dan akan menyisipkan file PDF yang ditentukan. Perhatikan bahwa Anda harus menggunakan /forward/slashes (bukan\back\slashes) untuk pemisah jalur Anda; dan idealnya menempatkan PDF di folder "shared" proyek sehingga mereka dibagikan menggunakan send/recv di Paratext dan sehingga PTXprint dapat menemukannya di tempat yang sama terlepas dari pengguna.
Bentuk paling sederhana dari perintah ini adalah:
\zpdf|file="../../../shared/IntroPages.pdf"\*
atau jika Anda benar-benar membutuhkan jalur yang di-hardcode (yang tidak relatif terhadap pengaturan PTXprint) Anda juga dapat melakukan ini:
\zpdf|file="C:/Temp/IntroPages.pdf"\*
Dan jika Anda perlu menskalakan, atau memutar atau memilih hanya satu halaman dari PDF yang lebih panjang, maka itu juga mungkin dengan parameter tambahan:
\zpdf|file="../../../shared/Filename.pdf" page="3" scale="750" rotate="270"\*
Perhatikan di sini bahwa untuk skala, 1000 = 100%, jadi 500 akan menjadi 50% dst. Jadi dalam contoh di atas, hanya halaman 3 dari Filename.pdf yang akan disisipkan, diskalakan ke ukuran 75%, dan diputar 270 derajat.
Dalam konteks materi Front Matter Anda, Anda mungkin ingin menambahkan satu atau beberapa Halaman Pengantar seperti ini:
...
\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\*
...
Diterjemahkan secara otomatis dari English