I am using a code that prints Latex code on a file. Specificaly that code is about to print some segments so i can present a computational geometry project.
The code that is printed by my programm is this:
Code: Select all
\documentclass{article}
\usepackage{fullpage}
\special{landscape}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1.0]
\draw[step=1cm,help lines] (0,0) grid (170,60);
\draw (341/2,0) node{$x$};
\draw [<->,very thick] (-1/10,0) -- (1701/10,0);
\draw (0,121/2) node{$y$};
\draw [<->,very thick] (0,-1/10) -- (0,601/10);
\foreach \x/\xtext in {0,2,...,170}
\draw (\x,-2/5) node{$\xtext$};
\foreach \y/\ytext in {0,2,...,60}
\draw (-3/5,\y) node{$\ytext$};
\draw (90,10) -- (100,0) (40,30) -- (50,20) (120,40) -- (130,30) (150,50) -- (170,60) (50,20) -- (54,18) (130,30) -- (150,50) (100,0) -- (120,40) (20,30) -- (40,30) (10,10) -- (20,30) (0,40) -- (10,10) ;
\filldraw (100,0) circle (2pt) (150,50) circle (2pt) (54,18) circle (2pt) (20,30) circle (2pt) (90,10) circle (2pt) (120,40) circle (2pt) (10,10) circle (2pt) (40,30) circle (2pt) (50,20) circle (2pt) (170,60) circle (2pt) (130,30) circle (2pt) (0,40) circle (2pt) ;
\end{tikzpicture}
\end{document}
It only prints a partition of the grid. And i get 2 pages. The first page is empty.
When I compile it and try to open it via Yap I get invalid argument(miktex).
What's the problem here?
Thank you in advance