summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 761845f..00f12e9 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -249,21 +249,10 @@ static void writeDefaultHeaderPart1(QTextStream &t)
if (!sLanguageSupportCommand.isEmpty())
{
- // The command is not empty. The language does
- // not want to use the babel package. Use this
- // command instead.
+ // The command is not empty. Put it to the output.
+ // if the command is empty, no output is needed.
t << sLanguageSupportCommand;
}
- else
- {
- if (!theTranslator->latexBabelPackage().isEmpty())
- {
- // The result of the LatexLanguageSupportCommand()
- // is empty, which means that the language prefers
- // the babel package, or no package is needed at all.
- t << "\\usepackage[" << theTranslator->latexBabelPackage() << "]{babel}\n";
- }
- }
QStrList &extraPackages = Config_getList("EXTRA_PACKAGES");
const char *s=extraPackages.first();
@@ -280,7 +269,6 @@ static void writeDefaultHeaderPart1(QTextStream &t)
"\\vspace*{7cm}\n"
"\\begin{center}\n"
"{\\Large ";
-
}
static void writeDefaultHeaderPart2(QTextStream &t)