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 would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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}
?