Graphics, Figures & Tables ⇒ Drawing a lattice/grid
Drawing a lattice/grid
I wish to visualize a lattice in my document (i.e. a grid). What I am searching for is something like the attached picture.
I've been toying a little with Tikz, but I did not get a useful result. Mainly because I think the text inside the circles is too big. I have tried using [font=\small], but it' still a little too big.
Do you have any suggestion on how I should create this?
Sincerely,
Niles.
- Attachments
-
- grid.PNG (3.79 KiB) Viewed 5877 times
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Drawing a lattice/grid
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix [
matrix of math nodes,
nodes={circle,draw},
minimum size=1.2cm,
inner sep=1mm,
column sep=5mm,
row sep=5mm
]
{
1 & 2 & \vphantom{1}\ldots & N_x \\
N_{x+1} & N_{x+2} & \vphantom{1}\ldots & \vphantom{1}\ldots \\
\phantom{1} & \vphantom{1}\ldots & \vphantom{1}\ldots & \phantom{1} \\
};
\end{tikzpicture}
\end{document}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Drawing a lattice/grid
Have a nice day.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Drawing a lattice/grid
There's not much left of the day. It's 11:25pm here.niles wrote:[...] Have a nice day.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Drawing a lattice/grid
localghost wrote:There's not much left of the day. It's 11:25pm here.niles wrote:[...] Have a nice day.

Well, in that case have a nice evening