|
Document 684
PDFLaTeX format files
Version: 5.x - Scientific WorkPlace & Scientific Word
LaTeX format files contain information that defines LaTeX commands,
hyphenation patterns, and font metrics (.tfm) information for preloaded fonts.
TeX uses format files to create a precompiled memory image of LaTeX, thus
saving time when you compile your document. Format files are created
specifically for each different implementation of TeX.
This version of SWP and SW
includes two LaTeX format files created
for TrueTeX and these format files created for PDFLaTeX. All are in the
TCITeX/web2c directory of your program installation:
-
pdflatex.efmt
-
pdflatex_ml.efmt
Version 5.5 of SWP and SW
automatically defaults to pdflatex_ml.efmt.
New format files
Under some circumstances, you may need to create a new pdfLaTeX format file
for your program installation. For example, you may want to
Creating a new pdflatex format file involves working from a command prompt,
using an ASCII editor., and working directly with the pdfLaTeX formatter and
requires a knowledge of TeX and LaTeX.
ImportantUse
caution when working with format files. Changing format files or LaTeX source
files can cause irreparable damage to your installation.
Creating a new PDFLaTeX format file
These instructions describe how to create a new pdfLaTeX format file to add a
hyphenation pattern for a different language. Use these instructions as a
model.
-
Tailor the hyphenation patterns to your needs.
-
Generate a new format file:
-
Open a command prompt.
-
Using the cd command, set
the default directory of the command prompt to
TCITeX\TeX\LaTeX\base.
-
Enter this command line:
..\..\..\TrueTeX\runpdflatex -ini latex.ltx
The program creates the files latex.efmt and latex.log in the current
directory. The log file provides a record of how the .efmt file was created.
-
Rename the format file:
-
If you are regenerating the existing multilingual format file, rename
latex.efmt to pdflatex_ml.efmt.
-
If you are creating a format file for a specific hyphenation pattern, rename
the two files conveniently. For example, you might use pdflatex_hu.efmt and
pdflatex_hu.log for Hungarian hyphenation.
-
Move the files to the TCITeX\web2c directory of your program installation.
-
Add a new format file to the list of available format files that can be
selected:
-
Modify TrueTeX.ini:
-
Using an ASCII editor, open the TCITeX\TrueTeX\TrueTeX.ini file.
-
Find this group:
[LaTeX-PDG] TABS=pdfLaTeX/Process EXE="C:\swp55\TCITeX\web2c\pdfLaTeX.exe
&pdflatex_ml" TEXMF=C:\swp55\TCITeX TEXMFCNF=C:\swp55\TCITeX/web2c ARRANGE=maximize FINISHMSG="[pdfLaTeX
finished]"
The directory names for your installation may differ.
-
Copy the LaTeX-PDG lines to the clipboard.
-
Scroll to the end of the TrueTeX.ini file and press Enter to start a new line.
-
Paste the LaTeX-PDG lines to the end of the file.
-
Change the group name in the new section.
For example, you might use LaTeX-PDH.
-
In the third line of the new section, change the name of the format file to
the file you created in step 2.d, above.
Continuing our example, you would have these lines:
[LaTeX-PDH] TABS=pdfLaTeX/Process EXE="C:\swp55\TCITeX\web2c\pdfLaTeX.exe
&pdflatex_hu" TEXMF=C:\swp55\TCITeX TEXMFCNF=C:\swp55\TCITeX/web2c ARRANGE=maximize FINISHMSG="[pdfLaTeX
finished]"
-
Save TrueTeX.ini
-
Modify SWP or SW so that it
will use the new group in truetex.ini:
-
Open the program.
-
From the Typeset menu, choose
Expert Settings and then choose the
PDF Format Settings tab.
-
Set the formatter to TrueTeX pdfTeX Multilingual.
-
Choose Add/Modify.
-
In the Name for TeX to PDF formatter area, enter a new name.
In this example, you might choose TrueTeX pdfTeX Hungarian.
-
Change the entry in the Command line to invoke formatter area from
LaTeX-PDG %f
to
LaTeX-PDH %f
-
Choose OK and then choose
Yes when the program asks if you want to add a
new formatter.
-
Make sure the new formatter is selected in the
Typeset Options dialog box, and choose
OK.
-
Test the format file by creating and checking a PDF file.
Last revised 05/25/06
|