Is there any solution for drawing simple graphs in LaTeX like the following? I came across tikz but couldn't figure out how to do it. Are there also possibilities to extend such graphs without caring too much about node distances etc?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this community
\documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,positioning} \tikzset{ myell/.style={ draw, ellipse } } \begin{document} \begin{tikzpicture}[node distance=1cm and 2cm] \node[myell] (sub) {Subject}; \node[myell,right=of sub] (obj) {Object}; \draw[->] (sub) -- node[above]{Predicate} (obj); \end{tikzpicture} \end{document}
.\documentclass{...}
and ending with\end{document}
.