Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correct/add subgraph preamble comments (fixes #1194) #1198

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Mo-Gul
Copy link
Contributor

@Mo-Gul Mo-Gul commented Oct 8, 2022

Motivation for this change

Checklist

Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:


Remaining instances are

example
[[
\tikz {
\graph [FMMMLayout, node sep=1cm] { subgraph C_n[n=6]; };
\draw [red, ultra thick, |-|] (1.south) -- ++(down:1cm);
}
]]
example
[[
\tikz {
\graph [FMMMLayout, node sep=5mm] { subgraph C_n[n=6]; };
\draw [red, ultra thick, |-|] (1.south) -- ++(down:5mm);
}
]]

but since these are not part of the current manual and I couldn't make this part of the manual run, I decided not to fix them.

@Mo-Gul
Copy link
Contributor Author

Mo-Gul commented Oct 8, 2022

sorry, missed one file ...

"]]
examples = {
{
options = [["preamble={\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular}}"]],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether I merged the support for this new syntax yet. I have to check that before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you had. At least it seems to work in the currently available first example of

examples = {
{
options = [["preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}}"]],
code = [["
\tikz \graph [spring electrical layout, horizontal=0 to 1]
{ 0 [electric charge=1] -- subgraph C_n [n=10] };
"]]
},{
code = [["
\tikz \graph [spring electrical layout, horizontal=0 to 1]
{ 0 [electric charge=5] -- subgraph C_n [n=10] };
"]]
},{
code = [["
\tikz \graph [spring electrical layout, horizontal=0 to 1]
{ [clique] 1 [electric charge=5], 2, 3, 4 };
"]]
}
}

which shows as

https://pgf-tikz.github.io/pgf/pgfmanual.pdf#page=477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Example for subgraph C_n (page 268, version 3.1.9a) not reproducible
3 participants