[OS X TeX] Setting up PDFtricks on MacOS10.4
Christopher Allen
Christopher.T.Allen.95 at Alum.Dartmouth.ORG
Mon Nov 28 19:36:54 CET 2005
> If you open up the figure files (file-fig1.pdf, etc.) are they
> properly cropped? If they are still taking up the whole page there
> is a problem.
They look fine there. Could it have to do with the file being saved
with \documentclass and \begin{document} lines? Here's the file-
fig1.pdf for the first example below:
\documentclass[10pt]{article}
\input tmp.inputs
\pagestyle{empty}
\begin{document}
\begin{pspicture}(5,2)
\psframe[fillcolor=gray,fillstyle=solid,linecolor=gray](5,2)
\rput(2.5,1){\textbf{TEST}}
\end{pspicture}
\end{document}
> If they properly cropped but are large-ish figures you may have to
> use some of the options in the figure environment to ``suggest''
> where you want them placed or one of the figure packages that allow
> you to ``force'' figures into a location.
They're not particularly large:
\begin{pdfpic}
\begin{pspicture}(5,2)
\psframe[fillcolor=gray,fillstyle=solid,linecolor=gray](5,2)
\rput(2.5,1){\textbf{TEST}}
\end{pspicture}
\end{pdfpic}
Even the original test file I was using did this. I get "1 Hallo
Welt." on the first page. The second page has the figure and its
caption.
\documentclass[a4paper]{article}
\usepackage{ifpdf}
\ifpdf%
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks}
\end{psinputs}
\else
\usepackage{pstricks}
\newenvironment{pdfpic}{}{}
\fi
\begin{document}
\section{Hallo}
Welt.
\begin{figure}[htb]
\centering
\caption{The image, converted with \texttt{pdftricks}}
\begin{pdfpic}
\begin{pspicture}(5,2)
\psline{|<->|}(0,0.3)(4,1.9)
\end{pspicture}
\end{pdfpic}
\end{figure}
\end{document}
Thanks!
Chris
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list