tikz install has issue with "convert"

  • Follow


0) Run "texhash"

1) Here is the tex file example as tikz.tex:
%%%%%%%%%%
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{equation}
        \int_{x=1}^{\infty} \frac{1}{(1+x)^2} = \frac{1}{2}
\end{equation}
\begin{tikzpicture}
\draw  (-1.5,0)  --  (1.5,0);
\draw  (0,-1.5)  --  (0,1.5);
\draw  (0,0)  circle  (1cm);
\end{tikzpicture}
\end{document}
%%%%%%%%%%

2) Run "pdflatex tikz.tex"

3) Run this "dvips -o tikz.ps tikz.dvi"  >>>> produces right tikz.ps
(note that "ps2pdf tikz.ps" produces right pdf file as well)

4) Run this "convert tikz.ps tikz.png" >>>> creates very big file
(1021656 byte whereas correct file size should be  13272 byte) ...that
does not do the job either - this is the issue
0
Reply Sati 11/14/2010 5:05:05 AM

On Nov 13, 9:05=A0pm, Sati <satish.ku...@gmail.com> wrote:
> 0) Run "texhash"
>
> 1) Here is the tex file example as tikz.tex:
> %%%%%%%%%%
> \documentclass{article}
> \usepackage{tikz}
> \begin{document}
> \begin{equation}
> =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2}
> \end{equation}
> \begin{tikzpicture}
> \draw =A0(-1.5,0) =A0-- =A0(1.5,0);
> \draw =A0(0,-1.5) =A0-- =A0(0,1.5);
> \draw =A0(0,0) =A0circle =A0(1cm);
> \end{tikzpicture}
> \end{document}
> %%%%%%%%%%
>
> 2) Run "pdflatex tikz.tex"
>
> 3) Run this "dvips -o tikz.ps tikz.dvi" =A0>>>> produces right tikz.ps
> (note that "ps2pdf tikz.ps" produces right pdf file as well)
>
> 4) Run this "convert tikz.ps tikz.png" >>>> creates very big file
> (1021656 byte whereas correct file size should be =A013272 byte) ...that
> does not do the job either - this is the issue


In another instance, if I run "pdflatex tikz.tex" I get following ..
-------------------
(/usr/share/texmf/tex/generic/pgf/generic/pgf/frontendlayer/tikz/
tikz.code.tex
! Undefined control sequence.
l.15 \usepgflibrary
                   {plothandlers}
?
-------------------
0
Reply Sati 11/14/2010 5:10:27 AM


In article 
<879178d1-7211-4e28-92bc-c513421eff0d@o11g2000prf.googlegroups.com>,
 Sati <satish.kumar@gmail.com> wrote:

> 0) Run "texhash"
> 
> 1) Here is the tex file example as tikz.tex:
> %%%%%%%%%%
> \documentclass{article}
> \usepackage{tikz}
> \begin{document}
> \begin{equation}
>         \int_{x=1}^{\infty} \frac{1}{(1+x)^2} = \frac{1}{2}
> \end{equation}
> \begin{tikzpicture}
> \draw  (-1.5,0)  --  (1.5,0);
> \draw  (0,-1.5)  --  (0,1.5);
> \draw  (0,0)  circle  (1cm);
> \end{tikzpicture}
> \end{document}
> %%%%%%%%%%
> 
> 2) Run "pdflatex tikz.tex"
> 
> 3) Run this "dvips -o tikz.ps tikz.dvi"  >>>> produces right tikz.ps
> (note that "ps2pdf tikz.ps" produces right pdf file as well)
> 
> 4) Run this "convert tikz.ps tikz.png" >>>> creates very big file
> (1021656 byte whereas correct file size should be  13272 byte) ...that
> does not do the job either - this is the issue

Howdy,

I don't understand this. If you run pdflatex you end up with a pdf file, 
not a dvi file.

Good Luck,
Herb Schulz
0
Reply Herbert 11/14/2010 12:58:37 PM

On Nov 14, 4:58=A0am, Herbert Schulz <he...@wideopenwest.com> wrote:
> In article
> <879178d1-7211-4e28-92bc-c513421ef...@o11g2000prf.googlegroups.com>,
>
>
>
> =A0Sati <satish.ku...@gmail.com> wrote:
> > 0) Run "texhash"
>
> > 1) Here is the tex file example as tikz.tex:
> > %%%%%%%%%%
> > \documentclass{article}
> > \usepackage{tikz}
> > \begin{document}
> > \begin{equation}
> > =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2}
> > \end{equation}
> > \begin{tikzpicture}
> > \draw =A0(-1.5,0) =A0-- =A0(1.5,0);
> > \draw =A0(0,-1.5) =A0-- =A0(0,1.5);
> > \draw =A0(0,0) =A0circle =A0(1cm);
> > \end{tikzpicture}
> > \end{document}
> > %%%%%%%%%%
>
> > 2) Run "pdflatex tikz.tex"
>
> > 3) Run this "dvips -o tikz.ps tikz.dvi" =A0>>>> produces right tikz.ps
> > (note that "ps2pdf tikz.ps" produces right pdf file as well)
>
> > 4) Run this "convert tikz.ps tikz.png" >>>> creates very big file
> > (1021656 byte whereas correct file size should be =A013272 byte) ...tha=
t
> > does not do the job either - this is the issue
>
> Howdy,
>
> I don't understand this. If you run pdflatex you end up with a pdf file,
> not a dvi file.
>
> Good Luck,
> Herb Schulz

No - it outputs .dvi file as mentioned below. Please see if you have
any suggestions to fix the issue as per steps put above

http://www.math.rug.nl/~trentelman/jacob/pdflatex/pdflatex.html
latex file compiles the file.tex to file.dvi. Correspondingly
 pdflatex file
0
Reply Sati 11/14/2010 9:24:25 PM

On Nov 14, 12:05=A0am, Sati <satish.ku...@gmail.com> wrote:
> 0) Run "texhash"
>
> 1) Here is the tex file example as tikz.tex:
> %%%%%%%%%%
> \documentclass{article}
> \usepackage{tikz}
> \begin{document}
> \begin{equation}
> =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2}
> \end{equation}
> \begin{tikzpicture}
> \draw =A0(-1.5,0) =A0-- =A0(1.5,0);
> \draw =A0(0,-1.5) =A0-- =A0(0,1.5);
> \draw =A0(0,0) =A0circle =A0(1cm);
> \end{tikzpicture}
> \end{document}
> %%%%%%%%%%
>
> 2) Run "pdflatex tikz.tex"

i get a .pdf file (as suggested earlier).  however, if i run 'latex
tikz.tex' then i get a .dvi file as expected.

also: i think it is not a good idea to name the file after one of the
packages in the file.  it could lead to other problems in some cases.

> 3) Run this "dvips -o tikz.ps tikz.dvi" =A0>>>> produces right tikz.ps
> (note that "ps2pdf tikz.ps" produces right pdf file as well)

sure.

> 4) Run this "convert tikz.ps tikz.png" >>>> creates very big file
> (1021656 byte whereas correct file size should be =A013272 byte) ...that
> does not do the job either - this is the issue

not for me. tikz.png is only 6239 bytes.  you might want to try to get
some more information from 'convert'.

cheers,
jon.

0
Reply jon 11/14/2010 11:55:33 PM

On Nov 14, 3:55=A0pm, jon <jonwrobin...@gmail.com> wrote:
> On Nov 14, 12:05=A0am, Sati <satish.ku...@gmail.com> wrote:
>
>
>
> > 0) Run "texhash"
>
> > 1) Here is the tex file example as tikz.tex:
> > %%%%%%%%%%
> > \documentclass{article}
> > \usepackage{tikz}
> > \begin{document}
> > \begin{equation}
> > =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2}
> > \end{equation}
> > \begin{tikzpicture}
> > \draw =A0(-1.5,0) =A0-- =A0(1.5,0);
> > \draw =A0(0,-1.5) =A0-- =A0(0,1.5);
> > \draw =A0(0,0) =A0circle =A0(1cm);
> > \end{tikzpicture}
> > \end{document}
> > %%%%%%%%%%
>
> > 2) Run "pdflatex tikz.tex"
>
> i get a .pdf file (as suggested earlier). =A0however, if i run 'latex
> tikz.tex' then i get a .dvi file as expected.
>
> also: i think it is not a good idea to name the file after one of the
> packages in the file. =A0it could lead to other problems in some cases.
>
> > 3) Run this "dvips -o tikz.ps tikz.dvi" =A0>>>> produces right tikz.ps
> > (note that "ps2pdf tikz.ps" produces right pdf file as well)
>
> sure.
>
> > 4) Run this "convert tikz.ps tikz.png" >>>> creates very big file
> > (1021656 byte whereas correct file size should be =A013272 byte) ...tha=
t
> > does not do the job either - this is the issue
>
> not for me. tikz.png is only 6239 bytes. =A0you might want to try to get
> some more information from 'convert'.
>
> cheers,
> jon.

Hi Jon,
  I have tried with other names as well apart from "tikz.tex" and ran
into same issue. Do you have any pointer on how can I get the
information from 'convert' ?

Thanks
0
Reply Sati 11/15/2010 6:57:27 AM

pdflatex t
convert t.pdf t.png

works on my Mac 10.6.5, MacTex 2010 updated daily with the
TexLive Manager.

el

On 2010-11-14 07:05 , Sati wrote:
> 
> 0) Run "texhash"
> 
> 1) Here is the tex file example as tikz.tex:
> %%%%%%%%%%
> \documentclass{article}
> \usepackage{tikz}
> \begin{document}
> \begin{equation}
>         \int_{x=1}^{\infty} \frac{1}{(1+x)^2} = \frac{1}{2}
> \end{equation}
> \begin{tikzpicture}
> \draw  (-1.5,0)  --  (1.5,0);
> \draw  (0,-1.5)  --  (0,1.5);
> \draw  (0,0)  circle  (1cm);
> \end{tikzpicture}
> \end{document}
> %%%%%%%%%%
> 
> 2) Run "pdflatex tikz.tex"
> 
> 3) Run this "dvips -o tikz.ps tikz.dvi"  >>>> produces right tikz.ps
> (note that "ps2pdf tikz.ps" produces right pdf file as well)
> 
> 4) Run this "convert tikz.ps tikz.png" >>>> creates very big file
> (1021656 byte whereas correct file size should be  13272 byte) ...that
> does not do the job either - this is the issue


-- 
If you want to email me, replace nospam with el
0
Reply Dr 11/16/2010 4:47:44 AM

6 Replies
402 Views

(page loaded in 0.101 seconds)

Similiar Articles:













7/9/2012 2:03:03 PM


Reply: