Seite 1 von 1

Zeichnung mit tikzpicture erstellt leere Seiten

Verfasst: Di 10. Jul 2012, 19:01
von sonada
Hi,

ich bin neu hier.

Also ich habe mit Tikz eine Zeichnung erstellt. Nur irgendwie sieht das doof aus.
Bei der Ausgabe erhalte ich:
1. leere Seite
2. Zeichnung die komplett zu sehen ist, aber rechts unten ist.
3. leere Seite

Das Problem sind anscheinend die Pfeile die ich mit looseness vergrößert habe.

Wäre für jede Hilfe dankbar :D
\documentclass{article}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper]
\usepackage{pgf}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\usepackage[utf8]{inputenc}
\pagestyle{empty}

\documentclass{article}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper]
\usepackage{pgf}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\usepackage[utf8]{inputenc}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm,
                    semithick]
  \tikzstyle{every state}=[fill=red,draw=none,text=white]

  \node[initial,state] (A)                    		{$S_0$};

  \node[state]          (B) [right of=A] 		{$S_1$};

  \node[state]	(C) [above right of=B]	{$S_2$}; %LOAD
  \node[state]	(D) [right of=C]		{$S_3$ };

  \node[state]	(E) [below right of=B]	{$S_4$};%STORE
  \node[state]	(F) [right of=E]		{$S_5$};
  \node[state]	(G) [right of=F]		{$S_6$};
  
  \node[state]	(H) [above of=C]		{$S_7$};

  \node[state]	(I) [above of=H]		{$S_8$};

  \node[state]	(J) [below of=E]		{$S_9$};

  \node[state]	(K) [below of=J]		{$S_{10}$};

  \node[state]	(L) [below of=K]		{$S_{11}$};


  \path 	(A) edge              	node {Opcd=xxxx} (B)
	 	
		(B) edge	      	node {Opcd=0000} (C)
		(C) edge		node {Opcd=0000} (D)
		(D) edge [bend right,out=-99,in=-90,looseness=3.2]		node {Opcd=xxxx} (A)

		(B) edge	      	node {Opcd=0001} (E)
		(E) edge		node {Opcd=0001} (F)
		(F) edge		node {Opcd=0001} (G)
		(G) edge [bend left,looseness=3.5,out=90,in=80]		node {Opcd=xxxx} (A)

		(B) edge		node{Opcd=0010} (H)
		(H) edge [bend right]		node{Opcd=xxxx} (A)

		(B) edge		node{Opcd=0011} (I)
		(I) edge[bend right]		node{Opcd=xxxx} (A)
		
		(B) edge		node{Opcd=0100} (J)
		(J) edge [bend left]		node{Opcd=xxxx} (A)

		(B)edge		node{Opcd=0101,!ZeroFlag} (K)
		(K) edge [bend left]		node{Opcd=xxxx} (A)

		(B)edge		node{Opcd=0101,ZeroFlag} (L)
		(L) edge [bend left]		node{Opcd=xxxx} (A)
		
;
\end{tikzpicture}
\end{document}

Hinweise finden

Verfasst: Di 10. Jul 2012, 22:56
von localghost
Du hast sicherlich schon mal in die Log-Datei geschaut. Wenn nicht, nachholen.


Thorsten

Verfasst: Mi 11. Jul 2012, 08:15
von sonada
Okay...ich habe reingeschaut und bin ungefähr so schlau wie vorher:
Overfull \hbox (53.16553pt too wide) in paragraph at lines 63--64
[][]
[]


Underfull \hbox (badness 10000) in paragraph at lines 63--64

[]


Overfull \vbox (249.53648pt too high) has occurred while \output is active []


[2

]

Ich hab ein wenig gegooglet.
Ich habe jetzt nur noch eine Seite.
\begin{document}
\centering
\begin{figure}
\begin{tikzpicture}
....
\end{tikzpicture0
\end{figure}
\end{document}
Damit das Problem der leeren Seiten weg.
Und das Log sagt "nur" noch
Overfull \hbox (38.16553pt too wide) in paragraph at lines 65--66
[][]
[]

Danke für den Tip.