]> git.lyx.org Git - features.git/commitdiff
tex2lyx: properly import \tikzset
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 24 Feb 2024 07:28:40 +0000 (08:28 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 24 Feb 2024 07:28:40 +0000 (08:28 +0100)
src/tex2lyx/text.cpp

index 5f2a620567a2ce9ab622df7efc432c831568cbcf..d50222a68b3a4a5244199608b644b91e72f9f574 100644 (file)
@@ -5580,6 +5580,16 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        continue;
                }
 
+               if (t.cs() == "tikzset") {
+                       context.check_layout(os);
+                       // we catch the argument and output it verbatim in an ERT
+                       string const arg = p.getArg('{', '}');
+                       output_ert_inset(os,
+                               "\\tikzset{" + arg + "}",
+                               context);
+                       continue;
+               }
+
                else if (t.cs() == "bibliography") {
                        context.check_layout(os);
                        string BibOpts;