You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if there is spacing (whatever that is) between the arguments of "\Edge[h local options i](Vertex i)" as shown below:
\documentclass{article}
\usepackage{tikz-network}
\thispagestyle {empty}
\begin {document}
\begin {tikzpicture}
\Vertex {A} \Vertex [x = 2] {B} \Vertex [x = 2, y = -1] {C}
% Case 1: space between <[lw = 3pt]> and <(A)(B)>
\Edge [lw = 3pt] (A)(B)
% Case 2 (below): or even if there is a space between <(A)> and <(C)> as below
\Edge[lw = 5pt](A) (C)
\end {tikzpicture}
\end {document}
I get the following errors in their order as is the spacing in the code above:
Case 1 - Space between <[lw = 3pt]> and <(A)(B)> returns the following error:
Runaway argument?
(A)(B) \ end {tikzpicture} \ end {document}
! File ended while scanning use of \ @edge.
<inserted text>
\pair
<*> 17.tex
?
Case 2 - Space between <[lw = 5pt] (A)> and <(C)> returns the following error:
Note 1: Putting spacing between <\Edge> and <[h local options i](Vertex i)(Vertex j)> returns no error.
Note 2: Examples taken from Section 2.2, page 15 of https://ctan.org/pkg/tikz-network.
Note 3: Command latexmk and Zathura viewer were used.
Apparently everything is related to using the lw (\Edge line width size) option.
Note 4: As advised at https://tex.stackexchange.com/a/501300/178949 by user TeXnician there is apparently a guideline in the code script preventing the inclusion of spacing.
The text was updated successfully, but these errors were encountered:
Thank you for pointing that out. As TeXnician already mentioned in his answer on https://tex.stackexchange.com/a/501300/178949, this is a property of the \def command. As long as this space between (A) and (B) has not been defined, LaTeX expects the following command chain: \Edge[#1](#2)(#3) (without spaces).
To adjust the command to your preferences, you would have to change your tikz-network.sty file as follows:
Change line 585 from:
\def\@edge[#1](#2)(#3){
to
\def\@edge[#1] (#2) (#3){
It is not planned to add this feature in the near future, but I will add it to the enhancement list. If time permits, I will include it in the next version of tikz-network.
Writing the code with no spaces between the arguments of "
\Edge[h local options i](Vertex i)(Vertex j)
" normally handles processing:But if there is spacing (whatever that is) between the arguments of "
\Edge[h local options i](Vertex i)
" as shown below:I get the following errors in their order as is the spacing in the code above:
Case 1 - Space between <
[lw = 3pt]
> and <(A)(B)
> returns the following error:Case 2 - Space between <
[lw = 5pt] (A)
> and <(C)
> returns the following error:Note 1: Putting spacing between <
\Edge> and <[h local options i](Vertex i)(Vertex j)
> returns no error.Note 2: Examples taken from
Section 2.2
, page 15 of https://ctan.org/pkg/tikz-network.Note 3: Command latexmk and Zathura viewer were used.
Apparently everything is related to using the
lw
(\Edge
line width size) option.Note 4: As advised at https://tex.stackexchange.com/a/501300/178949 by user TeXnician there is apparently a guideline in the code script preventing the inclusion of spacing.
The text was updated successfully, but these errors were encountered: