summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-03-04 18:00:01 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-03-04 18:00:01 (GMT)
commit1c47dd436358ffc7bc76901cddc559b2d8ce233d (patch)
tree38c1ac16e3eb153d30e9e25b164615555efefbdb /src
parentad53cbab6474e11692f2ca1018a821d042df28e6 (diff)
downloadDoxygen-1c47dd436358ffc7bc76901cddc559b2d8ce233d.zip
Doxygen-1c47dd436358ffc7bc76901cddc559b2d8ce233d.tar.gz
Doxygen-1c47dd436358ffc7bc76901cddc559b2d8ce233d.tar.bz2
Bug 659590 - EXTRA_PACKAGES can't handle package options
Create the possibility to specify options with the EXTRA_PACKAGES command. It is possible to specify the package by just its name or in the syntax as required by the LaTeX \usepackage command ([<package-option-list>]{<package-list>}[<version>])
Diffstat (limited to 'src')
-rw-r--r--src/latexgen.cpp5
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";