diff options
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index de2ed22..a9613ac 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -421,7 +421,10 @@ static void writeDefaultHeaderPart1(FTextStream &t) const char *pkgName=extraPackages.first(); while (pkgName) { - t << "\\usepackage{" << pkgName << "}\n"; + if ((pkgName[0] == '[') || (pkgName[0] == '{')) + t << "\\usepackage" << pkgName << "\n"; + else + t << "\\usepackage{" << pkgName << "}\n"; pkgName=extraPackages.next(); } t << "\n"; |