diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2010-06-29 21:50:45 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2010-06-29 21:50:45 +0000 |
| commit | 62dc9985efff58d201f5272baebfcbeed8de8c82 (patch) | |
| tree | d265d2c8b67330b0597c93ea52b012ec2e0fc90c /src/extension/internal/latex-text-renderer.cpp | |
| parent | minor fix in Dutch translation of win32 installer (diff) | |
| download | inkscape-62dc9985efff58d201f5272baebfcbeed8de8c82.tar.gz inkscape-62dc9985efff58d201f5272baebfcbeed8de8c82.zip | |
pdf/ps/eps+latex: output tex code to ".pdf_tex" instead of to ".tex"
Fixed bugs:
- https://launchpad.net/bugs/595312
(bzr r9547)
Diffstat (limited to 'src/extension/internal/latex-text-renderer.cpp')
| -rw-r--r-- | src/extension/internal/latex-text-renderer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp index bebc21f2f..0d98f6b9c 100644 --- a/src/extension/internal/latex-text-renderer.cpp +++ b/src/extension/internal/latex-text-renderer.cpp @@ -51,7 +51,7 @@ namespace Internal { /** * This method is called by the PDF, EPS and PS output extensions. - * @param filename This should be the filename without extension to which the tex code should be written. Output goes to <filename>.tex. + * @param filename This should be the filename without '_tex' extension to which the tex code should be written. Output goes to <filename>_tex, note the underscore instead of period. */ bool latex_render_document_text_to_file( SPDocument *doc, gchar const *filename, @@ -132,7 +132,7 @@ LaTeXTextRenderer::setTargetFile(gchar const *filename) { _filename = g_path_get_basename(filename); - gchar *filename_ext = g_strdup_printf("%s.tex", filename); + gchar *filename_ext = g_strdup_printf("%s_tex", filename); Inkscape::IO::dump_fopen_call(filename_ext, "K"); FILE *osf = Inkscape::IO::fopen_utf8name(filename_ext, "w+"); if (!osf) { @@ -176,12 +176,12 @@ LaTeXTextRenderer::setTargetFile(gchar const *filename) { static char const preamble[] = "%% To include the image in your LaTeX document, write\n" -"%% \\input{<filename>.tex}\n" +"%% \\input{<filename>.pdf_tex}\n" "%% instead of\n" "%% \\includegraphics{<filename>.pdf}\n" "%% To scale the image, write\n" "%% \\def{\\svgwidth}{<desired width>}\n" -"%% \\input{<filename>.tex}\n" +"%% \\input{<filename>.pdf_tex}\n" "%% instead of\n" "%% \\includegraphics[width=<desired width>]{<filename>.pdf}\n" "%%\n" @@ -190,7 +190,7 @@ static char const preamble[] = "%% installed) using\n" "%% \\usepackage{import}\n" "%% in the preamble, and then including the image with\n" -"%% \\import{<path to file>}{<filename>.tex}\n" +"%% \\import{<path to file>}{<filename>.pdf_tex}\n" "%% Alternatively, one can specify\n" "%% \\graphicspath{{<path to file>/}}\n" "%% \n" |
