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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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: 10348
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