summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-11-29 14:31:57 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-11-29 14:31:57 (GMT)
commitfd91442bcc5a20ba298a024ee2cc375ec4f1714d (patch)
tree64bf2ef54067018960ed07cde8a3b363b1e36498 /src/doxygen.cpp
parent200b828ead9f6bb5b2f6f99919837d5828a250e4 (diff)
downloadDoxygen-fd91442bcc5a20ba298a024ee2cc375ec4f1714d.zip
Doxygen-fd91442bcc5a20ba298a024ee2cc375ec4f1714d.tar.gz
Doxygen-fd91442bcc5a20ba298a024ee2cc375ec4f1714d.tar.bz2
Bug 687576 - Add support for LATEX_EXTRA_STYLESHEET
Added the possibility for LATEX_EXTRA_STYLESHEET analogous to HTML_EXTRA_STYLESHEET. Special attention has been paid to the extension as ".sty" is automatically added by the \usepackage
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 821ebc5..f0a8719 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -9162,6 +9162,33 @@ static void readTagFile(Entry *root,const char *tl)
}
//----------------------------------------------------------------------------
+static void copyLatexStyleSheet()
+{
+ QStrList latexExtraStyleSheet = Config_getList("LATEX_EXTRA_STYLESHEET");
+ for (uint i=0; i<latexExtraStyleSheet.count(); ++i)
+ {
+ QCString fileName(latexExtraStyleSheet.at(i));
+ if (!fileName.isEmpty())
+ {
+ QFileInfo fi(fileName);
+ if (!fi.exists())
+ {
+ err("Style sheet '%s' specified by LATEX_EXTRA_STYLESHEET does not exist!\n",fileName.data());
+ }
+ else
+ {
+ QCString destFileName = Config_getString("LATEX_OUTPUT")+"/"+fi.fileName().data();
+ if (!checkExtension(fi.fileName().data(), latexStyleExtension))
+ {
+ destFileName += latexStyleExtension;
+ }
+ copyFile(fileName, destFileName);
+ }
+ }
+ }
+}
+
+//----------------------------------------------------------------------------
static void copyStyleSheet()
{
QCString &htmlStyleSheet = Config_getString("HTML_STYLESHEET");
@@ -11365,6 +11392,7 @@ void generateOutput()
g_outputList->add(new LatexGenerator);
LatexGenerator::init();
+ copyLatexStyleSheet();
// copy static stuff
copyExtraFiles("LATEX_EXTRA_FILES","LATEX_OUTPUT");
}