From f2c58e45209c5664533653eb2d64994020fc681c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Wed, 30 May 2018 23:56:38 +0200 Subject: [PATCH] LaTeX Layer support started --- latex-output/latex-output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/latex-output/latex-output.c b/latex-output/latex-output.c index ac0fdff..c1cc80c 100644 --- a/latex-output/latex-output.c +++ b/latex-output/latex-output.c @@ -70,7 +70,7 @@ static gboolean write_layer_env(FILE *tex_file, GdkRGBA *color, int layer, GList color->red = inf->color.red; color->green = inf->color.green; color->blue = inf->color.blue; - g_string_printf(buffer, "\\begin{pgfonlayer}{l%d}\n", layer); + g_string_printf(buffer, "\\begin{pgfonlayer}{l%d}\n\\begin{scope}[ocg={ref=%d, status=visible,name=%d}]\n", layer, layer, layer); WRITEOUT_BUFFER(buffer); return TRUE; } @@ -110,7 +110,7 @@ static void generate_graphics(FILE *tex_file, GList *graphics, GList *linfo, GSt WRITEOUT_BUFFER(buffer); } - g_string_printf(buffer, "\\end{pgfonlayer}\n"); + g_string_printf(buffer, "\\end{scope}\n\\end{pgfonlayer}\n"); WRITEOUT_BUFFER(buffer); }