[OS X TeX] Problem with geometry/PSTricks
Peter Dyballa
Peter_Dyballa at Web.DE
Sun Jun 1 11:41:17 CEST 2008
Am 01.06.2008 um 01:34 schrieb Herbert Schulz:
> Therefore you should include a line to include the geometry package
> with its options (do you need to give the dvips option?).
I'm not sure what tried to express with this, but the dvips option is
needed since PDFTricks uses dvips to create the pictures that are
afterwards converted to clipped PDF and then simply included. My
experiments were made with this (in GNU Emacs with AUCTeX):
\documentclass[12pt,landscape,a4paper]{article}
\usepackage{times}
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks,pstricks-add,pst-math}
\end{psinputs}
\usepackage
[a4paper,landscape,textwidth=27cm,left=0cm,textheight=19cm,top=0cm]
{geometry}
\pagestyle{empty}
\begin{document}
Hier geht's los:
\begin{pdfpic}
\psset{unit=.875}
\begin{pspicture}(10,-5)(30,15)\psgrid
\newcommand{\f}{1/400*x^3-3/20*x^2+3*x-8}
\newcommand{\g}{1/400*x^3-3/20*x^2+3*x-22}
% \renewcommand{\f}{x 3 exp 400 div x dup mul 3 mul 20 div sub x
3 mul add 8 sub}
% \renewcommand{\g}{x 3 exp 400 div x dup mul 3 mul 20 div sub x
3 mul add 22 sub}
\psset{algebraic=true}
\psplot[linewidth=2\pslinewidth,linecolor=blue]{10}{30}{\f}
\psplot[linewidth=2\pslinewidth,linecolor=red]{10}{30}{\g}
% \psplot[linewidth=2\pslinewidth,linecolor=blue]{10}{30}{x 3 exp
400 div x dup mul 3 mul 20 div sub x 3 mul add 8 sub}
% \psplot[linewidth=2\pslinewidth,linecolor=red]{10}{30}{x 3 exp
400 div x dup mul 3 mul 20 div sub x 3 mul add 22 sub}
\end{pspicture}
\end{pdfpic}
What's this matter ?
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-command-default: "LaTeXesc"
%%% End:
Putting the line "\usepackage[...]{geometry}" inside the psinputs
environment creates scrap: the pictures are rotated on the landscape
page! The line is put into the file tmp.inputs. Taking the
"landscape" away from the geometry options restores their orientation
– but Holger's graphs are still clipped. And the place where the
picture is placed is *not* determined by geometry options.
--
Greetings
Pete
Every instructor assumes that you have nothing else to do except
study for that instructor's course.
– Fourth Law of Applied Terror
More information about the macostex-archives
mailing list