Graphics, Figures & Tables ⇒ Dots in a Circle Diagram
-
- Posts: 7
- Joined: Sun Jan 29, 2012 11:27 pm
Dots in a Circle Diagram
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
Dots in a Circle Diagram
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Dots in a Circle Diagram
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikz\foreach \i in {1,...,8}
\node (\i) at (45*\i:1.6) {\textbullet};
\end{document}
Stefan
-
- Posts: 7
- Joined: Sun Jan 29, 2012 11:27 pm
Re: Dots in a Circle Diagram
The Latex commands that you have supplied are just what I want. I would also like to write a letter next to each dot. How do I do that? ( I have no idea how to do this, so cannot provide any example.)
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Dots in a Circle Diagram
Yes, I mean a LaTeX example. If you would have a specific problem, try to post complete code, but as minimal as possible, so we could check a problem or improve your code, providing specific help.Latexcommunity1000 wrote:Not sure what a code is. Do you mean LaTeX commands.
In this case, I give an example for a start.
For example, a bit longer:Latexcommunity1000 wrote:I would also like to write a letter next to each dot. How do I do that? ( I have no idea how to do this, so cannot provide any example.)
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[every node/.style={node distance=2ex}]
\foreach \i in {1,...,8}
\node (\i) at (45*\i:1.6) {\textbullet};
\node[right of=1] {L};
\node[right of=2] {T};
\node[right of=3] {X};
\end{tikzpicture}
\end{document}
For learning TikZ, type at the command prompt
Code: Select all
texdoc pgf
Stefan
-
- Posts: 7
- Joined: Sun Jan 29, 2012 11:27 pm