Math & ScienceProblem with dvi file when drawing a circle

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
padam
Posts: 5
Joined: Fri Oct 26, 2018 2:56 pm

Problem with dvi file when drawing a circle

Post by padam »

Hi

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Problem with dvi file when drawing a circle

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

You could use pdfLaTeX and compile to PDF directly. DVI is not your final format anyway, but PDF, right?

Stefan
LaTeX.org admin
padam
Posts: 5
Joined: Fri Oct 26, 2018 2:56 pm

Problem with dvi file when drawing a circle

Post by padam »

Hi Stefan.
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
padam
Posts: 5
Joined: Fri Oct 26, 2018 2:56 pm

Problem with dvi file when drawing a circle

Post by padam »

Finally it was my fault. In the printer window dialog I should select Scalng page: None.
So everyting is OK, subject closed.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Problem with dvi file when drawing a circle

Post by Stefan Kottwitz »

Thanks for letting us know!

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
LaTeX.org admin
Post Reply