Using the package psfig
- add the geom style in your source code i.e.,
\documentstyle[geom,12pt...]
- using the command
\fig
to import a ps file:
\fig[htbp]{b}{The title}{This is the caption}
- also remember to include a line before
\begin{document}
to tell
the geom.sty where the PS files locate:
\def\picpath{/u/nien/public_html/talk/latex/}
- For example, the code below includes the PS file b.ps:
\documentstyle[12pt,geom]{article}
\def\picpath{/u/nien/public_html/talk/latex/}
\begin{document}
Here is an example for importing graphs Using the Geom style.
\fig[htbp]{b_new}{The title}{This is the caption}
The position of bounding box was shown by the four corners.
\end{document}
View the example
- You can also have multi-graph in a row (no more three).
For example,
\documentstyle[geom,12pt]{article}
\def\picpath{/u/nien/public_html/talk/latex/}
\begin{document}
This example impors 3 graphs in a row using the style geom.sty.
\triplefig[htbp]{foo}{}{Three in a row}
\end{document}
Previous