Underleaf Logo
Underleaf
BlogPricing
Log InTry Free

Learn TikZ

Getting Started

  • What is TikZ?
  • TikZ for Beginners
  • Basic Setup

Nodes and Labels in TikZ

Master adding text, labels, and styled nodes to your TikZ diagrams.

Basic Nodes

Nodes are the primary way to add text to TikZ drawings:

Node Shapes

Use different shapes for nodes (requires shapes.geometric library):

Node Size Options

Node Positioning

Position nodes relative to other elements:

Positioning Library

The positioning library enables powerful relative positioning:

Node Anchors

Each node has anchor points for precise positioning and connections:

AnchorDescription
centerCenter of the node
northTop center
southBottom center
eastRight center
westLeft center
north eastTop right corner
north westTop left corner
south eastBottom right corner
south westBottom left corner

Labels on Paths

Add labels along lines and paths:

Node Styling

Multi-line Text

Custom Node Styles

Next Steps

Continue learning TikZ:

  • Text Positioning - Advanced label placement
  • Flowcharts - Apply nodes to diagrams
  • Block Diagrams - System architecture diagrams

Try it free

Sketch it — AI draws the TikZ.

Upload a photo of a hand-drawn diagram, flowchart, or plot and Underleaf generates the TikZ code for you. 10 free credits every month, no credit card required.

Convert your diagram
A hand-drawn sketch converted into a clean TikZ diagram

Nodes and Labels in TikZ

Master adding text, labels, and styled nodes to your TikZ diagrams.

Basic Nodes

Nodes are the primary way to add text to TikZ drawings:

Node Shapes

Use different shapes for nodes (requires shapes.geometric library):

Node Size Options

Node Positioning

Position nodes relative to other elements:

Positioning Library

The positioning library enables powerful relative positioning:

Node Anchors

Each node has anchor points for precise positioning and connections:

AnchorDescription
centerCenter of the node
northTop center
southBottom center
eastRight center
westLeft center
north eastTop right corner
north westTop left corner
south eastBottom right corner
south westBottom left corner

Labels on Paths

Add labels along lines and paths:

Node Styling

Multi-line Text

Custom Node Styles

Next Steps

Continue learning TikZ:

Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorLaTeX Table GeneratorCitation GeneratorThesis GeneratorChrome ExtensionAll Tools

© 2026 Underleaf. All rights reserved.