tikz-network icon indicating copy to clipboard operation
tikz-network copied to clipboard

Bug: Vertex labels systematically prepended by "center:"

Open nonsns opened this issue 7 years ago • 2 comments

Giving tikz-network ( c21bb81 ) a try, all the examples in the manual to be plagued with this bug

I suspect some default code useful for label alignment ends up intepreted prepended to the label (escaping, missing parens or whatever reason)

nonsns avatar Jun 06 '18 05:06 nonsns

Thank you for this information,

unfortunately, I could not reproduce this bug. Please, can you give a small code example or the log files?

Please also note, that per default the vertex labels are centred (see Table 2.1 in the manual) to change the position, this option has to be enabled:

\documentclass{standalone}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
  \Vertex[position=above,label=a]{A}
  \Vertex[x=1,y=.7,position=below,label=b]{B}
  \Vertex[x=2,y=1,position=left,label=c]{C}
  \Vertex[x=2,position=right,label=d]{D}
  \Vertex[x=.2,y=1.5,position=75,label=e]{E}
\end{tikzpicture}
\end{document}

Thank you in advance!

hackl avatar Jun 12 '18 06:06 hackl

Seems like there is an interference with \usepackage[french]{babel} ! It worked for me when I turned it to English

Victorchareyron avatar Dec 09 '21 14:12 Victorchareyron