summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1dd0eb6)
raw | patch | inline | side by side (parent: 1dd0eb6)
author | Johan Engelen <goejendaagh@zonnet.nl> | |
Wed, 24 Feb 2010 21:19:52 +0000 (22:19 +0100) | ||
committer | Johan Engelen <goejendaagh@zonnet.nl> | |
Wed, 24 Feb 2010 21:19:52 +0000 (22:19 +0100) |
src/extension/internal/latex-text-renderer.cpp | patch | blob | history |
diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp
index 6c09a7396d66656230cd7c8b197669b09552c06a..6a57f71e66ed8b6b64e09befbf031b5f6f6369b2 100644 (file)
@@ -404,6 +404,10 @@ LaTeXTextRenderer::setupDocument(SPDocument *doc, bool pageBoundingBox, SPItem *
// write the info to LaTeX
Inkscape::SVGOStringStream os;
+ // also write original width to LaTeX
+ // TODO: add \ifdef statements to be able to choose between specifying width or not to specify it!
+ os << " %\\setlength{\\unitlength}{" << d->width() * PT_PER_PX << "pt}\n";
+
os << " \\begin{picture}(" << _width << "," << _height << ")%\n";
// strip pathname, as it is probably desired. Having a specific path in the TeX file is not convenient.
os << " \\put(0,0){\\includegraphics[width=\\unitlength]{" << _filename << "}}%\n";