!NuxCISwYQJuyWwNsEI:matrix.org

PGF/TikZ

54 Members
https://github.com/pgf-tikz12 Servers

Load older messages


SenderMessageTime
22 Jun 2024
@some.knowit:matrix.orgsome.knowitScreenshot 2024-06-21 at 10.33.41 PM.png
Download Screenshot 2024-06-21 at 10.33.41 PM.png
05:34:05
@some.knowit:matrix.orgsome.knowit *

Turns out I was overly pessimistic - the ogdf simple demo appears to be working!

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {ogdf.c.SimpleDemoOGDF}
\begin{document}
\tikz \graph [fast simple demo layout ogdf, my radius ogdf=1cm]
  { a -> b -> c -> d -> e -> a };
\end{document}
05:34:19
@some.knowit:matrix.orgsome.knowit *

Good news: the C demo is working as expected (after putting the *.so files to the right location):

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
  { a -> b -> c -> d -> e -> a };
\end{document}

Bad news: the C++ demo is crashing:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoCPlusPlus}
\begin{document}
\tikz \graph [fast simple demo layout c++, fast simple demo radius c++=1.25cm]
  { a -> b -> c -> d -> e -> a };
\end{document}
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
	[C]: in function 'assert'
	...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
	...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
	[\directlua]:1: in main chunk.

which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class:

      local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]

I suspect somehow my C++ build was not done correctly. Since ogdf is built on top of the C++ interface/layer, it probably won't work either :(

05:35:15
@some.knowit:matrix.orgsome.knowit

I found two examples in SugiyamaLayout.lua that specifies something like:

\tikz \graph [SugiyamaLayout]

but the key SugiyamaLayout is never registered with the graph drawing system. I suspect it should be replaced by "layered layout" instead. SugiyamaLayout appears to be only used internally for some other purposes (such as documentation generation).

What do you think?

18:46:12
@some.knowit:matrix.orgsome.knowit *

I found some examples in SugiyamaLayout.lua that specifies something like:

\tikz \graph [SugiyamaLayout]

but the key SugiyamaLayout is never registered with the graph drawing system. I suspect it should be replaced by "layered layout" instead. SugiyamaLayout appears to be only used internally for some other purposes (such as documentation generation).

What do you think?

18:46:23
@some.knowit:matrix.orgsome.knowit *

I found some examples in SugiyamaLayout.lua that specifies something like:

\tikz \graph [SugiyamaLayout]

but the key SugiyamaLayout is never registered with the graph drawing system. I suspect it should be replaced by layered layout instead. SugiyamaLayout appears to be only used internally for some other purposes (such as documentation generation).

What do you think?

18:46:45
23 Jun 2024
@some.knowit:matrix.orgsome.knowit

Under section 28.9 Hyperedges, it says "Currently, there is no default renderer for hyper edges." and then shows an example

\graph {
% The nodes: a, b, c, d;
% The edges:
  {[hyper] a,b,c};
  {[hyper] b,c,d};
  {[hyper] a,c};
  {[hyper] d}
};

Does this mean this example would not work. If so, why provide the example?

18:22:19
@some.knowit:matrix.orgsome.knowit *

Under section 28.9 Hyperedges, it says "Currently, there is no default renderer for hyper edges." and then shows an example

\graph {
% The nodes: a, b, c, d;
% The edges:
  {[hyper] a,b,c};
  {[hyper] b,c,d};
  {[hyper] a,c};
  {[hyper] d}
};

Does this mean this example would not work? If so, why provide the example?

18:22:36
@some.knowit:matrix.orgsome.knowit *

Under section 28.9 Hyperedges, it says "Currently, there is no default renderer for hyper edges." and then shows an example

\graph {
% The nodes: a, b, c, d;
% The edges:
  {[hyper] a,b,c};
  {[hyper] b,c,d};
  {[hyper] a,c};
  {[hyper] d}
};

Does this mean this example would not work? If so, why provide the example?

18:23:21
24 Jun 2024
@some.knowit:matrix.orgsome.knowit

I tried out the 36.2.1 The Hello World of Graph Drawing at https://tikz.dev/gd-algorithm-layer with:

\documentclass{standalone}
\usepackage{fp,pgf,tikz,xcolor}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{simpledemo}
\begin{document}
\tikz [very simple demo layout]
  \graph { f -> c -> e -> a -> {b -> {c, d, f}, e -> b}};
\end{document}

which didn't compile. Digging into the code, it seems to me the culprit is because the actual implementation in Simple.lua$L25-L39 differs from that in the documentation. Specifically,

  1. Instead of declaring the key "very simple demo layout", the existing implementation declares "simple demo layout".
  2. Instead of calculating the (x,y) coordinates linearly as claimed in the doc, the existing implementation multiply each with an seemingly spurious "radius" which always have a zero value thus causing incorrect rendering.

Does this sound right?

22:35:14
@some.knowit:matrix.orgsome.knowit *

I tried out the 36.2.1 The Hello World of Graph Drawing at https://tikz.dev/gd-algorithm-layer with:

\documentclass{standalone}
\usepackage{fp,pgf,tikz,xcolor}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{simpledemo}
\begin{document}
\tikz [very simple demo layout]
  \graph { f -> c -> e -> a -> {b -> {c, d, f}, e -> b}};
\end{document}

which didn't compile. Digging into the code, it seems to me the culprit is because the actual implementation in Simple.lua#L25-L39 differs from that in the documentation. Specifically,

  1. Instead of declaring the key "very simple demo layout", the existing implementation declares "simple demo layout".
  2. Instead of calculating the (x,y) coordinates linearly as claimed in the doc, the existing implementation multiply each with an seemingly spurious "radius" which always have a zero value thus causing incorrect rendering.

Does this sound right?

22:35:37
@some.knowit:matrix.orgsome.knowit *

I tried out the 36.2.1 The Hello World of Graph Drawing at https://tikz.dev/gd-algorithm-layer with:

\documentclass{standalone}
\usepackage{fp,pgf,tikz,xcolor}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{simpledemo}
\begin{document}
\tikz [very simple demo layout]
  \graph { f -> c -> e -> a -> {b -> {c, d, f}, e -> b}};
\end{document}

which didn't compile. Digging into the code, it seems to me the culprit is because the actual implementation in Simple.lua#L25-L39 differs from that in the documentation. Specifically,

  1. Instead of declaring the key "very simple demo layout", the existing implementation declares "simple demo layout".
  2. Instead of calculating the (x,y) coordinates linearly as claimed in the doc, the existing implementation multiplies further with an seemingly spurious "radius" which always have a zero value thus causing incorrect rendering.

Does this sound right?

22:36:29
@some.knowit:matrix.orgsome.knowit *

I tried out the 36.2.1 The Hello World of Graph Drawing at https://tikz.dev/gd-algorithm-layer with:

\documentclass{standalone}
\usepackage{fp,pgf,tikz,xcolor}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{simpledemo}
\begin{document}
\tikz [very simple demo layout]
  \graph { f -> c -> e -> a -> {b -> {c, d, f}, e -> b}};
\end{document}

which didn't compile. Digging into the code, it seems to me the culprit is because the actual implementation in SimpleDemo.lua#L25-L39 differs from that in the documentation. Specifically,

  1. Instead of declaring the key "very simple demo layout", the existing implementation declares "simple demo layout".
  2. Instead of calculating the (x,y) coordinates linearly as claimed in the doc, the existing implementation multiplies further with an seemingly spurious "radius" which always have a zero value thus causing incorrect rendering.

Does this sound right? (Once I fixed the code in SimpleDemo.lua, it started to work as expected.)

22:37:20
@some.knowit:matrix.orgsome.knowit *

I tried out the 36.2.1 The Hello World of Graph Drawing at https://tikz.dev/gd-algorithm-layer with:

\documentclass{standalone}
\usepackage{fp,pgf,tikz,xcolor}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{simpledemo}
\begin{document}
\tikz [very simple demo layout]
  \graph { f -> c -> e -> a -> {b -> {c, d, f}, e -> b}};
\end{document}

which didn't compile. Digging into the code, it seems to me the culprit is because the actual implementation in SimpleDemo.lua#L25-L39 differs from that in the documentation. Specifically,

  1. Instead of declaring the key "very simple demo layout", the existing implementation declares "simple demo layout".
  2. Instead of calculating the (x,y) coordinates linearly as claimed in the doc, the existing implementation multiplies further with a seemingly spurious "radius" which always have a zero value thus causing incorrect rendering.

Does this sound right? (Once I fixed the code in SimpleDemo.lua, it started to work as expected.)

22:38:08
@some.knowit:matrix.orgsome.knowit *

I tried out the 36.2.1 The Hello World of Graph Drawing at https://tikz.dev/gd-algorithm-layer with:

\documentclass{standalone}
\usepackage{fp,pgf,tikz,xcolor}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{SimpleDemo}
\begin{document}
\tikz [very simple demo layout]
  \graph { f -> c -> e -> a -> {b -> {c, d, f}, e -> b}};
\end{document}

which didn't compile. Digging into the code, it seems to me the culprit is because the actual implementation in SimpleDemo.lua#L25-L39 differs from that in the documentation. Specifically,

  1. Instead of declaring the key "very simple demo layout", the existing implementation declares "simple demo layout".
  2. Instead of calculating the (x,y) coordinates linearly as claimed in the doc, the existing implementation multiplies further with a seemingly spurious "radius" which always have a zero value thus causing incorrect rendering.

Does this sound right? (Once I fixed the code in SimpleDemo.lua, it started to work as expected.)

22:50:55
25 Jun 2024
@some.knowit:matrix.orgsome.knowitLet me try to submit a pull request on this.02:09:41
@some.knowit:matrix.orgsome.knowit
In reply to @some.knowit:matrix.org
Let me try to submit a pull request on this.
https://github.com/pgf-tikz/pgf/pull/1342
04:31:44
27 Jun 2024
@some.knowit:matrix.orgsome.knowit It seems to me the existing macro \pgfalternateextension described at 110.3 Using Image does not work at all. Furthermore, the image displayed on the website differs from that in the official pdf manual wrt the brave-gnu-world-logo. Any idea what's going on? 06:19:54
28 Jun 2024
@muzzi:matrix.orgmuzimuzhiProbably a poppler issue, see https://github.com/DominikPeters/tikz.dev-issues/issues/42.12:45:01
@some.knowit:matrix.orgsome.knowit
In reply to @muzzi:matrix.org
Probably a poppler issue, see https://github.com/DominikPeters/tikz.dev-issues/issues/42.
I don't think so. I suspect the underlying\def\pgf@@tryextension macro (among others) may not be working as expected. I've been locally modifing and experimenting with these macros; and now reading up on how best to fix them. Stay tuned.
17:40:05
29 Jun 2024
@some.knowit:matrix.orgsome.knowitBelated happy Tau day, everyone!02:26:17
@some.knowit:matrix.orgsome.knowit

This is kind of like a fun quiz. Suppose:

\def\foo#1{\textbf{#1}}
\def\abc{Hello}
\def\xyz{, World!}
\def\bar{\abc\xyz}

What do you expect to see in the following cases:

Case 1: \foo\bar

Case 2: \expandafter\foo\bar

Case 3: \expandafter\expandafter\foo\bar

Case 4: \expandafter\expandafter\expandafter\foo\bar
05:49:30
1 Jul 2024
@some.knowit:matrix.orgsome.knowit

After fixing all the missing preamble and extending the existing extractor.lua (in my local branch), it extracted 2,503 tex document. I managed to compile them all successfully. The generated pgfmanual.pdf also looking good.

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

I've got other things fixed as well, but I'll delay those to future pull requests.

20:02:10
@some.knowit:matrix.orgsome.knowit *

After fixing all the missing preambles and extending the existing extractor.lua (in my local branch), it extracted 2,503 tex documents. I managed to compile them all successfully. The generated pgfmanual.pdf is also looking good.

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

I've got other things fixed as well, but I'll delay those to future pull requests.

20:02:40
@some.knowit:matrix.orgsome.knowit *

After fixing all the missing preambles and extending the existing extractor.lua (in my local branch), it extracted 2,503 tex documents. I managed to compile them all successfully. The generated pgfmanual.pdf is also looking good.

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

I've got other things fixed as well, but I'll delay those to future pull requests.

However, these changes presume the fix in pull request #1339 has been merged. Any chance that can be done any time soon?

20:06:53
@some.knowit:matrix.orgsome.knowit *

After fixing all the missing preambles and extending the existing extractor.lua (in my local branch), it extracted 2,503 tex documents. I managed to compile them all successfully. The generated pgfmanual.pdf is also looking good.

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

(I've got other miscellaneous things fixed as well, but I'll delay those to future pull requests.)

However, these changes presume the fix in pull request #1339 has been merged. Any chance that can be done any time soon?

20:08:00
@some.knowit:matrix.orgsome.knowit *

After fixing all the missing preambles and extending the existing extractor.lua (in my local branch), it extracted 2,503 tex documents. I managed to compile them all successfully. The generated pgfmanual.pdf is also looking good. (You should be able to download the updated pdf from https://github.com/hansonchar/pgf/actions/runs/9750355245 once the workflow has completed.)

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

(I've got other miscellaneous things fixed as well, but I'll delay those to future pull requests.)

However, these changes presume the fix in pull request #1339 has been merged. Any chance that can be done any time soon?

20:10:43
@some.knowit:matrix.orgsome.knowit *

After fixing all the missing preambles and extending the existing extractor.lua (in my local branch), it extracted 2,503 tex documents. I managed to compile them all successfully. The generated pgfmanual.pdf is also looking good. (You should be able to download the updated pdf from https://github.com/hansonchar/pgf/actions/runs/9750355245 once the workflow has completed.)

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

(I've got other miscellaneous things fixed as well, but I'll delay those to future pull requests.)

However, these changes presume the fixes in pull request #1339 has been merged. Any chance that can be done any time soon?

20:11:29
@some.knowit:matrix.orgsome.knowit *

After fixing all the missing preambles and extending the existing extractor.lua (in my local branch), it extracted 2,503 tex documents. I managed to compile them all successfully. The generated pgfmanual.pdf is also looking good. (You should be able to download the updated pdf from https://github.com/hansonchar/pgf/actions/runs/9750355245 once the workflow has completed.)

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

(I've got other miscellaneous things fixed as well, but I'll delay those to future pull requests.)

However, these changes presume the fixes in pull request #1339 have been merged. Any chance that can be done any time soon?

20:11:40
@some.knowit:matrix.orgsome.knowit *

After fixing all the missing preambles and extending the existing extractor.lua (in my forked main branch), it extracted 2,503 tex documents. I managed to compile them all successfully. The generated pgfmanual.pdf is also looking good. (You should be able to download the updated pdf from https://github.com/hansonchar/pgf/actions/runs/9750355245 once the workflow has completed.)

I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts.

(I've got other miscellaneous things fixed as well, but I'll delay those to future pull requests.)

However, these changes presume the fixes in pull request #1339 have been merged. Any chance that can be done any time soon?

20:12:06

Show newer messages


Back to Room ListRoom Version: 6