1

I would like to draw small (although visible) vertices with package tkz-graph. I tried with MinSize, but this is a lower bound on the size, and I am looking for an upper bound. In the following example, it seems that when MinSize is below the lower bound that is in the package, no further reducction occurs.

\documentclass{article}
\usepackage{tkz-graph}
\begin{document}
     \foreach \x in {10,...,1}{\SetVertexSimple[MinSize=\x pt] \tikz \Vertex{A};}
\end{document}
ASdeL
  • 4,925

1 Answers1

1

The idea is to override the default inner sep and make it 0pt. For this, there are two options:

  • Redefining \VertexInnerSep to make it 0pt as suggested in a comment.

  • Using the VertexStyle style to append there the option.

An example showing both options:

\documentclass{article}
\usepackage{tkz-graph}
\begin{document}

{% to keep the change local
\renewcommand\VertexInnerSep{0pt}
     \foreach \x in {10,...,1}{\SetVertexSimple[MinSize=\x pt] \tikz \Vertex{A};}
}

\foreach \x in {10,...,1}{\SetVertexSimple[MinSize=\x pt] \tikz[VertexStyle/.append style={inner sep=0pt}
] \Vertex{A};}

\end{document}

enter image description here

Gonzalo Medina
  • 505,128
  • What if I don't want to use the Simple style? As soon as I use \SetVertexSimple, it seems to invoke the simple style, and, in particular, I cannot specify the color of edges and such. – Máté Wierdl Feb 06 '17 at 19:05