I am trying to plot a graph G= on a slide and write some text under and over it but the graph is on its own page(and that page is much smaller then a normal one)
How can I get the graph flow in the text?
My document:
% Drawing a graph using the PG 3.0 graphdrawing library
% Author: Mark Wibrow
\documentclass[tikz,border=10pt]{standalone}
%%%<
\usepackage{verbatim}
%%%>
\usetikzlibrary{graphdrawing}
\usetikzlibrary{graphs}
\usegdlibrary{trees}
\begin{document}
hekejehjejhjkhejkhhjke
\begin{tikzpicture}[>=stealth, every node/.style={circle, draw, minimum size=0.75cm}]
\graph [tree layout, grow=down, fresh nodes, level distance=0.5in, sibling distance=0.5in]
{
A -> {
B -> { A -> {C}, C -> {D} ,D },
C -> { A, B -> {C ,D} },
D -> { C }
}
};
\end{tikzpicture}
ijklsjjkkjdkljkjl
\end{document}
compile with
lualatex filename.tex
standalone
class by a standard class (article
for example). That implies not keeping the optionstikz
andborder=10pt
, of course.tikz
as a separate package now:\usepackage{tikz}
.