[pstricks] DIA output and scaling (again)
Dan Bolser
dmb at mrc-dunn.cam.ac.uk
Fri Jun 10 13:42:08 CEST 2005
On Fri, 10 Jun 2005, Herbert Voss wrote:
>On Fri, 10 Jun 2005, Dan Bolser wrote:
>
>> `PSTricks' v97 patch 14 <1999/12/23> (tvz)
>>
>> *File List*
>> minimal.cls 2001/05/25 Standard LaTeX minimal class
>> pstricks.sty 1997/03/25 package wrapper for PSTricks pstricks.tex
>
>sorry, I just saw, that you should update PSTricks, otherwise
>the \scalebox macro isn't redefined (done by the latest pstricks.sty)
That is my problem :)
I didn't understand your previous solution because (as you say) the
\scalebox macro isn't redefined!
I will pass this information back to the dia-list mailing list :)
I just had a look at the results (after replacing all "\scalebox" with
"\psscalebox" in the dia output) and it looks great.
The
\psset{unit=0.5} % Scaling
is much better looking than the
\scalebox{0.5}{
\input{1d4x-1}
}
Version (the latter dosn't apper to scale the fonts correctly.
However, I found the following code makes a scrambled diagram...
\listfiles
\documentclass{report}
\usepackage{ pstricks, lscape, graphicx }
%\psset{unit=0.5} % Scaling
\begin{document}
\begin{landscape}
\pscustom[unit=0.5]{
\input{1d4x-1}
}
%\scalebox{0.5}{
% \input{1d4x-1}
%}
%\input{1d4x-1}
\end{landscape}
\end{document}
Where "1d4x-1.tex" is the (modified) output from dia.
However this isn't a problem for me.
One last observation is that the following code also fails,
\listfiles
\documentclass{report}
\usepackage{ pstricks, lscape, graphicx }
%\psset{unit=0.5} % Scaling
\begin{document}
\begin{landscape}
%\pscustom[unit=0.5]{
% \input{1d4x-1}
%}
\scalebox{5cm}{% Not sure why?
\input{1d4x-1}
}
% or
%\input{1d4x-1}
\end{landscape}
\end{document}
Here is the output from running the above...
$ latex test
This is TeX, Version 3.14159 (Web2C 7.3.1)
(test.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german,
ngerman, i
talian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/report.cls
Document Class: report 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/local/share/texmf/tex/latex/pstricks/latex/pstricks.sty
(/usr/local/share/texmf/tex/latex/pstricks/generic/pstricks.tex
`PSTricks' v1.07 <2005/05/06> (tvz)
(/usr/local/share/texmf/tex/latex/pstricks/generic/pstricks.con))
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def)))
(/usr/share/texmf/tex/latex/graphics/lscape.sty
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)))
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)) (test.aux) (1d4x-1.tex)
! Missing = inserted for \ifdim.
<to be read again>
\p@
l.19 }
?
! Missing = inserted for \ifdim.
<to be read again>
\p@
l.19 }
?
! Missing number, treated as zero.
<to be read again>
\box
l.19 }
?
! Illegal unit of measure (pt inserted).
<to be read again>
\box
l.19 }
?
[1] (test.aux)
*File List*
report.cls 2001/04/21 v1.4e Standard LaTeX document class
size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2005/05/06 v1.07 `PSTricks' (tvz)
color.sty 1999/02/16 v1.0i Standard LaTeX Color (DPC)
color.cfg
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
lscape.sty 2000/10/22 v3.01 Landscape Pages (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
1d4x-1.tex
***********
)
Output written on test.dvi (1 page, 9756 bytes).
Transcript written on test.log.
Final (dumb) question... I see the pstricks-add package at CTAN, should I
install this too? Why isn't it a part of the regular pstricks package?
How should I generate the documents for the pstricks package? (I am not
very familiar with the 'underbelly' of tex (so far it just works))
Thanks very much for your help,
Dan.
More information about the PSTricks
mailing list