16 Jun 2024 |
some.knowit | Any reason why extract.lua it is located under doc/generic/pgf ? Is this necessary or just a historical accident? | 16:24:18 |
some.knowit | * Any reason why extract.lua needs to be located under doc/generic/pgf ? Is this necessary or just a historical accident? | 16:37:24 |
| kby joined the room. | 21:00:48 |
18 Jun 2024 |
some.knowit | The folding capture lpeg.Cf has been deprecated https://www.inf.puc-rio.br/~roberto/lpeg/#cap-f but the lpeg library bundled in texlua (which is still using lua 5.3 ) in the latest texlive doesn't support the recommended % operator.
Anyone knows if there is any plan of texlua to be upgraded to lua 5.4 ?
| 06:13:54 |
kby | Isn’t luatex using Lua 5.4 since 1.09? | 08:44:58 |
kby | * Isn’t luatex using Lua 5.4 since ver. 1.09? | 08:45:05 |
kby | oh no, it was frozen at Lua 5.3.6 | 08:48:37 |
kby | That was three years ago, and as far as I know, the project is active. Have you opened an issue at the LuaTeX repository? | 08:49:59 |
Norbert Preining | In reply to @6b6279:freiburg.social That was three years ago, and as far as I know, the project is active. Have you opened an issue at the LuaTeX repository? It is a well known state, there was a very recent email thread on tex-live list AFAIR about it. No big movement getting it to 5.4 | 12:58:35 |
Marcel Krüger | LuaMetaTeX is running with Lua 5.4, I think for LuaTeX there was an explicit decision to avoid it. | 17:18:55 |
19 Jun 2024 |
some.knowit | In reply to @marcel:2krueger.de LuaMetaTeX is running with Lua 5.4, I think for LuaTeX there was an explicit decision to avoid it. A completely different question - when do people find it more useful or prefer to use ConTeXt over, say, LuaLaTeX ? | 15:51:36 |
Norbert Preining | In reply to @some.knowit:matrix.org A completely different question - when do people find it more useful or prefer to use ConTeXt over, say, LuaLaTeX ? I never write ConTeXt, only LaTeX. Different, very different, formats. For Japanese text I use lualatex, other than that, mostly pdflatex. | 15:52:53 |
some.knowit | Indeed that's the reason I asked. Never used ConTeXt which seems to have it's own universe. | 15:58:55 |
some.knowit | My naive impression so far is that all these are built on top of TeX and Lua but people decided to build different macro packages in their own ways for different purposes. | 16:01:59 |
Norbert Preining | Yes, ConTeXt is built on top of TeX like LaTeX, but it is a very different system. | 16:02:43 |
some.knowit | I find the (highest score) answer in this post on LuaTex/ConTeXt quite funny :) | 16:17:11 |
some.knowit | * I find the (highest score) answer in this post on LuaTex/ConTeXt quite (perhaps brutally honest?) and funny :) | 16:18:19 |
some.knowit | * I find the (highest score) answer in this post on LuaTex/ConTeXt quite (perhaps brutally honest? and) funny :) | 16:18:39 |
some.knowit | Only 2 contributors to https://github.com/contextgarden/luametatex - indicative of a fringe project :) | 16:26:27 |
20 Jun 2024 |
kby | Is there a way to regenerate random shapes, e.g., starbursts in a tikzpicture? I don't know how but, despite deleting all intermediate files, LaTeX keeps generating the exact same starburst. | 00:22:48 |
some.knowit | In reply to @6b6279:freiburg.social Is there a way to regenerate random shapes, e.g., starbursts in a tikzpicture? I don't know how but, despite deleting all intermediate files, LaTeX keeps generating the exact same starburst. I think so. This seems to work:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfmath}
\usepackage{pgffor}
\begin{document}
\begin{tikzpicture}
% Seed the random number generator
\pgfmathsetseed{\pdfuniformdeviate256}
% Function to generate a starburst
\def\starburst{
\pgfmathsetmacro{\numrays}{int(5 + rand*6)} % Random number of rays between 5 and 10
\pgfmathsetmacro{\innerradius}{0.5 + rand*0.5} % Random inner radius between 0.5 and 1
\pgfmathsetmacro{\outerradius}{1.5 + rand*1.5} % Random outer radius between 1.5 and 3
\foreach \i in {1,...,\numrays}{
\pgfmathsetmacro{\angle}{\i * 360 / \numrays}
\pgfmathsetmacro{\nextangle}{(\i + 1) * 360 / \numrays}
\draw (0,0) -- (\angle:\outerradius) arc[start angle=\angle, end angle=\nextangle, radius=\outerradius] -- cycle;
}
}
% Draw multiple starbursts at random positions
\foreach \j in {1,...,5} {
\pgfmathsetmacro{\xpos}{rand*10} % Random x position
\pgfmathsetmacro{\ypos}{rand*10} % Random y position
\begin{scope}[shift={(\xpos,\ypos)}]
\starburst
\end{scope}
}
\end{tikzpicture}
\end{document}
| 01:51:36 |
some.knowit | In reply to @6b6279:freiburg.social Is there a way to regenerate random shapes, e.g., starbursts in a tikzpicture? I don't know how but, despite deleting all intermediate files, LaTeX keeps generating the exact same starburst. * I think so. This seems to work (ie different output across different compilations):
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfmath}
\usepackage{pgffor}
\begin{document}
\begin{tikzpicture}
% Seed the random number generator
\pgfmathsetseed{\pdfuniformdeviate256}
% Function to generate a starburst
\def\starburst{
\pgfmathsetmacro{\numrays}{int(5 + rand*6)} % Random number of rays between 5 and 10
\pgfmathsetmacro{\innerradius}{0.5 + rand*0.5} % Random inner radius between 0.5 and 1
\pgfmathsetmacro{\outerradius}{1.5 + rand*1.5} % Random outer radius between 1.5 and 3
\foreach \i in {1,...,\numrays}{
\pgfmathsetmacro{\angle}{\i * 360 / \numrays}
\pgfmathsetmacro{\nextangle}{(\i + 1) * 360 / \numrays}
\draw (0,0) -- (\angle:\outerradius) arc[start angle=\angle, end angle=\nextangle, radius=\outerradius] -- cycle;
}
}
% Draw multiple starbursts at random positions
\foreach \j in {1,...,5} {
\pgfmathsetmacro{\xpos}{rand*10} % Random x position
\pgfmathsetmacro{\ypos}{rand*10} % Random y position
\begin{scope}[shift={(\xpos,\ypos)}]
\starburst
\end{scope}
}
\end{tikzpicture}
\end{document}
| 01:54:54 |
some.knowit | In general, perhaps the Discord channel LaTeX Support is a better place to ask these questions. | 01:56:09 |
some.knowit | * In general, perhaps the Discord channel LaTeX Support is a better place to ask these questions. | 01:57:14 |
some.knowit | * In general, perhaps the Discord channel LaTeX support is a better place to ask these questions. | 01:57:28 |
21 Jun 2024 |
some.knowit | I see in Koerner2015.lua there exists an exaple that makes use of a simple pedigree layout :
\tikz \graph [simple pedigree layout, default edge operator=complete bipartite]
{
Eve -- [mate] Felix;
{ Eve, Felix } -> [child] { George, Hank };
Alice -- [mate] Bob;
{ Alice, Bob } -> [child] { Charly, Dave, Eve };
};
Does anyone know what preamble (eg \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{???} needs to be specified for this example to compile?
| 03:06:22 |
some.knowit | * I see in Koerner2015.lua there exists an example that makes use of a simple pedigree layout :
\tikz \graph [simple pedigree layout, default edge operator=complete bipartite]
{
Eve -- [mate] Felix;
{ Eve, Felix } -> [child] { George, Hank };
Alice -- [mate] Bob;
{ Alice, Bob } -> [child] { Charly, Dave, Eve };
};
Does anyone know what preamble (eg \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{???} needs to be specified for this example to compile?
| 03:06:40 |
some.knowit | In reply to @some.knowit:matrix.org
I see in Koerner2015.lua there exists an example that makes use of a simple pedigree layout :
\tikz \graph [simple pedigree layout, default edge operator=complete bipartite]
{
Eve -- [mate] Felix;
{ Eve, Felix } -> [child] { George, Hank };
Alice -- [mate] Bob;
{ Alice, Bob } -> [child] { Charly, Dave, Eve };
};
Does anyone know what preamble (eg \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{???} needs to be specified for this example to compile?
Got it - it's \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{pedigrees} | 03:28:56 |
some.knowit | I see there are BalloonLayout.lua and CircularLayout.lua. Are these actually in use or are they work in progress? The example code, for instance, involves a CircularLayout :
\tikz \graph [CircularLayout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
But as far as I understand to use a circular layout, we would do something like the following instead:
\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}
\begin{document}
\tikz \graph [simple necklace layout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
\end{document}
What am I missing?
| 05:56:16 |
some.knowit | * I see there are BalloonLayout.lua and CircularLayout.lua. Are these actually in use or are they work in progress? The example code in these files, for instance, involves a CircularLayout :
\tikz \graph [CircularLayout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
But as far as I understand to use a circular layout, we would do something like the following instead:
\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}
\begin{document}
\tikz \graph [simple necklace layout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
\end{document}
What am I missing?
| 05:56:46 |