Underleaf Logo
Underleaf
Blog
Log InTry Free

Learn TikZ

Getting Started

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

Circuit Diagrams in TikZ

Draw professional electronic circuit diagrams using CircuiTikZ.

circuits.logic.US vs CircuiTikZ flip-flops

These are different libraries. TikZ's circuits.logic.US library provides American-style AND, OR, NAND, NOR, XOR, XNOR, NOT, and buffer gates. The flipflop D node and its numbered pin anchors come from CircuiTikZ, not circuits.logic.US.

NeedLoadTypical node
US-style logic gates\usetikzlibrary{circuits.logic.US}and gate US
D, JK, or T flip-flops\usepackage{circuitikz}flipflop D

CircuiTikZ exposes lateral anchors pin 1 through pin 6, border variants such as bpin 1, and the top/bottom anchors up, down, bup, and bdown. Use the exact pin mapping shown by the flip-flop style you select.

Basic Setup

Basic Components

Simple RC Circuit

Voltage Divider

Op-Amp Circuits

Transistor Circuits

Logic Gates

Diode Circuits

Component Labels and Values

555 Timer Circuit

Common Component Symbols

  • R - Resistor
  • C - Capacitor
  • L - Inductor
  • D - Diode
  • V - Voltage source
  • I - Current source
  • npn, pnp - Transistors
  • op amp - Operational amplifier
  • and port, or port - Logic gates

Next Steps

Continue learning TikZ:

  • TikZ Positioning Library - Place gates and components relative to named nodes
  • TikZ Arrows - Connect logic blocks with modern arrow tips
  • Block Diagrams - System-level diagrams
  • PGFPlots - Plot data and graphs
  • Flowcharts - Process 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

Circuit Diagrams in TikZ

Draw professional electronic circuit diagrams using CircuiTikZ.

circuits.logic.US vs CircuiTikZ flip-flops

These are different libraries. TikZ's circuits.logic.US library provides American-style AND, OR, NAND, NOR, XOR, XNOR, NOT, and buffer gates. The flipflop D node and its numbered pin anchors come from CircuiTikZ, not circuits.logic.US.

NeedLoadTypical node
US-style logic gates\usetikzlibrary{circuits.logic.US}and gate US
D, JK, or T flip-flops\usepackage{circuitikz}flipflop D

CircuiTikZ exposes lateral anchors pin 1 through pin 6, border variants such as bpin 1, and the top/bottom anchors up, down, bup, and bdown. Use the exact pin mapping shown by the flip-flop style you select.

Basic Setup

Basic Components

Simple RC Circuit

Voltage Divider

Op-Amp Circuits

Transistor Circuits

Logic Gates

Diode Circuits

Component Labels and Values

555 Timer Circuit

Common Component Symbols

  • R - Resistor
  • C - Capacitor
  • L - Inductor
  • D - Diode
  • V - Voltage source
  • I - Current source
  • npn, pnp - Transistors
  • op amp - Operational amplifier
  • and port, or port - Logic gates

Next Steps

Continue learning TikZ:

Underleaf Logo
Underleaf

Practical tools for academic writing, document conversion, and research workflows.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

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

Ask AI about Underleaf

Ask ChatGPTAsk ClaudeAsk Perplexity

© 2026 Underleaf. All rights reserved.