[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Cirkuit] c90a17d: Added possibility to export to TeX source from Gnu
From: agostinelli <agostinelli () gmail ! com>
Date: 2010-12-12 19:05:30
Message-ID: 20101212190530.8731EA60B0 () git ! kde ! org
[Download RAW message or body]
commit c90a17dfc4c0ccfb590d410ce54d5a7af38d1f73
branch source-export
Author: agostinelli <agostinelli@gmail.com>
Date: Sun Dec 12 20:03:29 2010 +0100
Added possibility to export to TeX source from Gnuplot
diff --git a/src/gnuplotbackend.cpp b/src/gnuplotbackend.cpp
index 341c6ea..ba94454 100644
--- a/src/gnuplotbackend.cpp
+++ b/src/gnuplotbackend.cpp
@@ -56,7 +56,7 @@ bool GnuplotGenerator::convert(GraphicsGenerator::Format in, GraphicsGenerator::
QStringList origFileNames;
QStringList lines = m_source.split("\n");
- QString gnuplotOutputFile = m_tempFileInfo->baseName() + ".lua";
+ QString gnuplotOutputFile = m_tempFileInfo->baseName() + ".tex";
stream << "set output '" + gnuplotOutputFile + "'\n";
foreach (QString line, lines) {
@@ -82,6 +82,10 @@ bool GnuplotGenerator::convert(GraphicsGenerator::Format in, GraphicsGenerator::
m_tempFile->close();
execute(gnuplot);
+
+ if (out == Tex) {
+ return true;
+ }
DocumentTemplate gpTemplate(CirkuitSettings::gptemplateurl().path());
QString latexDoc = gpTemplate.insert(gnuplotOutputFile);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic