From 19f1b4ffa5b80d27638e14bba5b49d2ad3764f70 Mon Sep 17 00:00:00 2001 From: Hanson Char Date: Thu, 20 Jun 2024 20:30:45 -0700 Subject: [PATCH] Fix missing preamble in Koerner2015.lua --- .../lua/pgf/gd/pedigrees/Koerner2015.lua | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/tex/generic/pgf/graphdrawing/lua/pgf/gd/pedigrees/Koerner2015.lua b/tex/generic/pgf/graphdrawing/lua/pgf/gd/pedigrees/Koerner2015.lua index 32927530a..1736df2d7 100644 --- a/tex/generic/pgf/graphdrawing/lua/pgf/gd/pedigrees/Koerner2015.lua +++ b/tex/generic/pgf/graphdrawing/lua/pgf/gd/pedigrees/Koerner2015.lua @@ -73,16 +73,19 @@ declare { documentation = [[" ... "]], - examples = [[" - \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 }; - }; - "]] + examples = { + options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{pedigrees} ]], + [[ + \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 }; + }; + ]] + } }