!NuxCISwYQJuyWwNsEI:matrix.org

PGF/TikZ

52 Members
https://github.com/pgf-tikz11 Servers

Load older messages


SenderMessageTime
22 Jun 2024
@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
@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. See here if you want to replicate the extract-compile process from the main branch.)

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:32:29
@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. See here and scroll to the bottom if you want to replicate the extract-compile process from the main branch.)

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:33:22
@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. See here and scroll to the bottom if you want to replicate the extract-compile process from my main branch.)

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:33:41
19 Sep 2024
@hmenke:matrix.orghmenke muzimuzhi: Thanks for cleaning up after me. 07:11:06
@northface:matrix.orgNorbert Preining Only two \expandafter is a funny case, most of the times it is 2^n-1 or so. 07:19:23

There are no newer messages yet.


Back to Room ListRoom Version: 6