Using figPac figures in TeX documents
[Introduction to figPac  |   figPac API  ]


# Using figPac figures in TeX documents

figPac figures may be inserted in TeX documents. Follow these steps.
• First create one or more figPac .java files, for example using figEdit or the figPac Template. For illustrative purposes I will assume that you have created a figPac .java file named myfig.java.
• Compile the .java file using
    javac myfig.java

and then execute it as an application using
    java myfig

This creates two files named myfig.ps and myfig.lbl. The latter contains labelling and sizing information about the figure that can be read by TeX.
• Select the directory in which you wish to keep the .ps and .lbl files. Typically this will be the same directory as your TeX document or, if there are many figures in the TeX document, a subdirectory named something like fig. Copy or move the files myfig.lbl and myfig.ps into the desired directory.
• Insert the line
    \input figMac

near the beginning of your TeX document. (Of course the file figMac.tex had better be either in the same directory as your TeX document or in a directory on your TEXINPUTS path.) In the event that the .ps and .lbl files are in a subdirectory (of the directory containing your TeX document) named fig also insert the line
       \def\figdir{fig/}

near the beginning of your TeX document.
• Finally insert the figures in the TeX document. The macro package figMac.tex provides two principal figure insertion macros:
• \figput{<figure name>}
• \figplace{<figure name>}{<horizontal shift>}{<vertical shift>}
The first just inserts the figure at the current location. The second inserts the figure at the current location but then shifts horizontally by the second argument and vertically by the third.
Here is a sample TeX file containing two figures, named "anomalous" and "Si2A". For this example, it is assumed that the files anomalous.ps, anomalous.lbl, Si2A.ps and Si2A.lbl are contained in the subdirectory fig of the directory that contains the TeX file.
\input figMac
\def\figdir{fig/}

%%%%%%
%%%%%% This paragraph uses \figput{<figure name>} to put a figure in the
%%%%%% centre of an otherwise blank line.
%%%%%%

One such diagram that they considered explicitly was

\centerline{\figput{anomalous}}

\noindent
They concluded that such diagrams vanish if one holds the
spatial volume fixed and finite and takes ....

%%%%%%
%%%%%% This paragraph contains a figure embedded in text. This time we
%%%%%% use \figplace{<figure name>}{<horizontal shift>}{<vertical shift>}
%%%%%% to allow ourselves to fine tune the positioning of the figure.
%%%%%%

We first review their argument, using $\Omega_{2A}$ as an
illustration. Denote by $\Sigma_{2A}(k)$ the unrenormalized value of
\figplace{Si2A}{0 in}{-0.05 in}.
We are assuming that the interaction $\left<k_1,k_2|{\rm V}|k_3,k_4\right>$
is given by a two--body potential $u(k_1-k_3)$ so that $\Sigma_{2A}$
is independent of $k_0$.

\end
[Introduction to figPac  |   figPac API  ]