Now we add eps files of latex entries to saved worksheet (cws file) and load this prepared images, it they exists, when load worksheet.
Details
Details
Diff Detail
Diff Detail
- Repository
- R55 Cantor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/latexentry.cpp | ||
---|---|---|
120 | can be declared const QString& dir. | |
122 | const QString& imagePath = dir + QDir::separator() + imageFile->name(); This should be faster than your variant. | |
160 | will this logic always work? What happens if the temporary file was deleted in between? I think it would be more safer to save the rendered image in LatexEntry::evaluate() to a private member of LatexEntry and to use it in LatexEntry::toXml() (save it first to a temporary file and add it to archive). |
src/latexentry.cpp | ||
---|---|---|
160 | Add code for rerendering eps file, if the file don't exists |