COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### tikz install has issue with "convert"

• Email
• Follow

0) Run "texhash"

1) Here is the tex file example as tikz.tex:
%%%%%%%%%%
\documentclass{article}
\usepackage{tikz}
\begin{document}
$$\int_{x=1}^{\infty} \frac{1}{(1+x)^2} = \frac{1}{2}$$
\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

See related articles to this posting

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}
> $$> =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2} >$$
> \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

In article
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}
> $$> \int_{x=1}^{\infty} \frac{1}{(1+x)^2} = \frac{1}{2} >$$
> \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

On Nov 14, 4:58=A0am, Herbert Schulz <he...@wideopenwest.com> wrote:
> In article
>
>
>
> =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}
> > $$> > =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2} > >$$
> > \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

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}
> $$> =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2} >$$
> \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

cheers,
jon.


 0

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}
> > $$> > =A0 =A0 =A0 =A0 \int_{x=3D1}^{\infty} \frac{1}{(1+x)^2} =3D \frac{1}{2} > >$$
> > \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
>
> 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

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}
> $$> \int_{x=1}^{\infty} \frac{1}{(1+x)^2} = \frac{1}{2} >$$
> \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

6 Replies
427 Views

Similar Articles

12/19/2013 9:39:36 PM
page loaded in 65576 ms. (0)

Similar Artilces:

tikz install has issue with "convert"
0) Run "texhash" 1) Here is the tex file example as tikz.tex: %%%%%%%%%% \documentclass{article} \usepackage{tikz} \begin{document} $$\int_{x=1}^{\infty} \frac{1}{(1+x)^2} = \frac{1}{2}$$ \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 fi...

How to convert /tmp to memfs after install
I am installing Openserver 6.0 for the first time on my test system and blew through the file system configuration during installation so that /tmp is on the root file system. I have searched the documentation without finding a solution on how to set up /etc/vfstab to create and mount /tmp as memfs How do I do that without resorting to a re-installation? -- Steve Fabac S.M. Fabac & Associates 816/765-1670 "Steve M. Fabac, Jr." <smfabac@att.net> wrote ...

issue converting of std_logic_vectors into integers
i am having troubles to convert std_logic_vectors into unsigned integers. std_logic_vectors comes from a DUT i got for verification (no question to use signed or unsiged instad) I would like that 0x4b8 (11 bit std_logic vector, with MSB set to 1) will be converted into an integer as 0x4b8 BUT the following code (please consider that i use std_logic_unsigned instead of std_logic_signed) integer cordic_complex_int_o cordic_complex is a std_logic_vector (11 downto 0) cordic_complex_int <= ieee.std_logic_unsigned.conv_integer(cordic_complex_out); i get cordic_complex_int_o 0xfffffcb8, i.e....

having issues using awk and/or converting to perl
Hi, I am not a strong awk user and have little to no experience with perl. I was reading a thread about how to use awk in a perl script (cause I haven't figured out how to do the same in perl) Here is my awk command awk '$1 ~ /^F/ {print$0 }' /tmp/frhtest/ADDC.bak > /tmp/frhtest/ADDC.$date this works fine at the command line. I tried to do this to run inside my perl script.$call = awk '$1 ~ /^F/ {print$0 }' /tmp/frhtest/ADDC.bak > /tmp/frhtest/ADDC.$date; system("$call"); and I get this result syntax error The source line is 1. The error context ...

Converting from RIP to EIGRP
Hi All, We have three sites which have been routing via RIP. There are netware servers on each site handling e-mail and other server tasks. When I convert the routing to EIGRP everything converges nicely, all the routes are in place, and everything looks good except the netware servers can no longer respond to pings remotely across the wan. Each server at each site DOES respond to pings and logins only if the workstation is on the same side of the wan. Even though there is a static route already in place to the remote netware server. The server will not respond but other workstations on the sa...

What major issues with converting 2000 to 2010?
This has been put off for too long, but now I have to convert a 2000 application to 2010. The database comprises multiple front-ends and multiple back-end, references a couple of library MDE files of code, has no macros all code, many many queries, forms and reports. It is installed as MDE files linking to the multiple back-ends. User level security is used and I know that has to change, as well as custom toolbars and menus. Would like to know from anybody that has done this what problems you may have encountered. On 22/07/2011 05:10:53, "JeffP" wrote: > This has been...

Beginner User having issue with converting char to ASCII
I am working on this assignment and this is the first class I have used ruby with so please forgive if some of these questions seem elementary. Basically the job is to take a string with characters "a-zA-Z0-9" and then turn it into an array using the .split method. Then do an "each do" loop that will run through each array of the character array and find the ASCII value. my issue is I dont know how to take the character and convert it into ASCII. Here is a copy of what i got so far::? #set up first array characters = 'a b c d e f g h i j k l m n o p q r s t u v w x ...

Conversion Issue in Converting code of 2.7 to 3
--047d7b675b8cb2ff3a04e4a80af1 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am trying to run the following piece of code: https://greyhat.gatech.edu/wiki/index.php?title=Java_Bytecode_Tutorial/Getting_Started python Krakatau/assemble.py minimal.j. The scripts are written for 2.7. I want to convert them to 3.3. I am struck with the following error: []\$ python Krakatau/assemble.py minimal.j Traceback (most recent call last): File "Krakatau/assemble.py", line 4, in <module> from Krakatau.assembler import tokenize, parse, assembler File "...

Problem converting TikZ/PGF generated graphics to XAML
For use in a shared whiteboard I am trying to convert graphics (that may also include some formulas and text) to XAML (a XAML canvas object, to be more precise). It works great with PDFs that I create with a combination of Metapost and pdflatex, but I have a problem with fonts if I try to go the same route with PDFs generated with the help of TikZ/PGF, for in the later case, the conversion of the PDF file to XAML (done with Microsoft's XPS Document Writer) produces tags like this one: <Glyphs Fill="#ffc95a44" Clip="M 97.28,73.6 L 97.28,84 108,84 108,73.6 z" F...

Convert from text string "Hello" to floating-point number issue
Hi there,My java lecturer has given us an assignment related to casting andtype conversion etc.One of the conversions he wan't is convert "Hello" to a float.I suspect this is a trick question on his part as "Hello" is not aparsible value.This is the code I have: //Convert String object "s" to a Float object //then convert Float object to float value try { System.out.println("String is "+s+" float is"+Float.valueOf(s).floatValue()); } catch (NumberFormatException NFE) { System.out.println("NumberFormatException: "+ NFE.getMes...