Graphics, Figures & TablestikZ | Generate an Ellipsis

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

tikZ | Generate an Ellipsis

Post by Singularity »

Is there a way to make an ellipsis (you know, three dots) in Tikz? (If yes, how?)

What I really want to do is add three dots connecting the two halves of this graph:

Code: Select all

\begin{document}
\begin{tikzpicture}
\tikzstyle{every node}=[draw,shape=circle];

\node (v4) at (0,0) {};
\node (v3) at (2,0) {};
\node (v1) at (0,-2) {};
\node (v2) at (2,-2) {};
\draw  (v1) edge (v2);
\draw  (v1) edge (v3);
\draw  (v1) edge (v4);
%\draw  (v2) edge (v3);
\draw  (v2) edge (v4);
\draw  (v4) edge (v3);
\node (v8) at (4,-2) {};
\node (v7) at (6,-2) {};
\node (v6) at (6,0) {};
\node (v5) at (4,0) {};
\draw  (v5) edge (v6);
\draw  (v5) edge (v7);
\draw  (v8) edge (v7);
% \draw  (v7) edge (v6);
\draw  (v3) edge (v5);
\draw  (v2) edge (v8);
\draw  (v8) edge (v6);
\node (v12) at (8,-2) {};
\node (v11) at (10,-2) {};
\node (v10) at (10,0) {};
\node (v9) at (8,0) {};
\draw  (v9) edge (v10);
\draw  (v9) edge (v11);
\draw  (v12) edge (v11);
\draw  (v12) edge (v10);
\draw  (v10) edge (v11);
% \draw  (v6) edge (v9);
% \draw  (v7) edge (v12);
\end{tikzpicture}
\end{document}

Thanks.
Last edited by Singularity on Sun Nov 20, 2011 11:07 pm, edited 1 time in total.

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
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

tikZ | Generate an Ellipsis

Post by Stefan Kottwitz »

You could use a TeX ellipsis in a node, such as

Code: Select all

\node[draw=none] (ellipsis1) at (7,0) {$\cdots$};
\node[draw=none] (ellipsis1) at (7,-2) {$\cdots$};
Stefan
LaTeX.org admin
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

Re: tikZ | Generate an Ellipsis

Post by Singularity »

OK, I get the method. It worked perfectly.
Danke.
Post Reply