Math & Science ⇒ Problem with dvi file when drawing a circle
Problem with dvi file when drawing a circle
I have the following code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (2,2) circle (3cm);
\end{tikzpicture}
\end{document}
I compile this .tex file using latex to get a dvi file. The problem is when I run yap viewer I get some funny curves instead of a circle. I will appreciate any help.
Thank you
Panayoths Adam
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Problem with dvi file when drawing a circle
welcome to the forum!
You could use pdfLaTeX and compile to PDF directly. DVI is not your final format anyway, but PDF, right?
Stefan
Problem with dvi file when drawing a circle
Right, I have already done that but the problem is the circle printed is not accurate. It should have a radius of 3cm but is quite a bit smaller. Because this is a math exercise I want to give to my elementary students, (how to measure geometrical shapes), I would be happy to have an exact 3 cmm radius circle. The same problem happened drawing a simple straight line which was corrected when I printed my document through dvi format. This is the reason I am trying to print this circle through dvi format hoping that I will have the desired accuracy. I would be gratefull if you can help,
Thank you
Panayoths Adam
Problem with dvi file when drawing a circle
So everyting is OK, subject closed.
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Problem with dvi file when drawing a circle
Also I thought that it was a printer scaling setting, but I thought that would be the same then with DVI when printed. But ok, I guess you did not yet print DVI as the output was not ok there.
Stefan