LaTeX Layer support started

This commit is contained in:
Mario Hüttel 2018-05-30 23:56:38 +02:00
parent 37a561115a
commit f2c58e4520

View File

@ -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);
}