Scaling in LaTeX




Hi, I was searching the documentation for information about resizing an
exported .tex file, and found this question on the dia-list archives...

http://mail.gnome.org/archives/dia-list/2001-June/msg00159.html

I tried to implement the solution worked out there, namely...

\documentclass{report}

\usepackage{
  pstricks,
  graphicx
}

\begin{document}

\resizebox{5cm}{!}{\input{my-exported-tex-file}}

\end{document}

However, when I try to compile the above latex complains,

! Illegal unit of measure (pt inserted).
<to be read again>
                   -
l.202 }
       \endpspicture


I can hapily compile the following...

\documentclass{report}

\usepackage{
  pstricks,
}

\begin{document}

\input{my-exported-tex-file}

\end{document}


But (funnily enough) the scaling is all wrong (the dia image is too big).

Something happens to the syntax of the "\input{}" file
(my-exported-tex-file) when I "\usepackage{graphicx}". This happens
regardless of weather I try to resize the file or not.

Seems as though the 'work in progress' stuff at the end of the above
thread may have created the error I am seeing now?

Please let me know how to send better information on this problem :)

Dan.

latex test.tex
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/share/texmf/tex/generic/pstricks/pstricks.sty
(/usr/share/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v97 patch 10  <1999/03/24> (tvz)
(/usr/share/texmf/tex/generic/pstricks/pstricks.con)))
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.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/dvips.def))) (test.aux) (1d4x-1.tex
! Illegal unit of measure (pt inserted).
<to be read again>
                   -
l.202 }
       \endpspicture
?







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]