Graphics, Figures & TablesGraphics not appearing

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
teotjunk
Posts: 18
Joined: Fri Sep 19, 2008 5:28 pm

Graphics not appearing

Post by teotjunk »

Code: Select all

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,snakes}
\usepackage{verbatim}
\usepackage{graphicx}

\begin{document}

\pagestyle{empty}

\begin{tikzpicture}[scale=2]
\node (A) at (0,1) {circle};
\end{tikzpicture}


\end{document}


This is my code but the the node picture is not appearing when I compile it. Only the text circle appears


teotjunk

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphics not appearing

Post by localghost »

You have to draw the node literally.

Code: Select all

\documentclass[11pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{tikz}

\begin{document}
  \begin{tikzpicture}
    \node[draw,circle] (A) at (0,1) {circle};
  \end{tikzpicture}
\end{document}

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

Graphics not appearing

Post by Stefan Kottwitz »

Hi teotjunk,

by the way, as I see your scaling: nodes are not scaled by default. If you would like to scale the node(s) as well, you could add the option transform shape, either to the tikzpicture environment or to the node:

Code: Select all

\begin{tikzpicture}[scale=2,transform shape]
or

Code: Select all

\node[draw,transform shape] (A) at (0,1) {circle};
Stefan
LaTeX.org admin
Post Reply