Trouble with conversion

Create issue
Issue #2 resolved
beemer_addict created an issue

The very simple example using the {{{convert}}} option

{{{ \documentclass[convert]{standalone}

\begin{document} Test \end{document} }}}

running this with {{{pdflatex -enable-write18 test.tex}}} results in: (Vista64 German, Miktex 2.9)

{{{ C:\temp>pdflatex -enable-write18 test.tex This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) entering extended mode (C:\temp\test.tex LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u senglishmax, welsh, loaded. ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\standalone\standalone.cls" Document Class: standalone 2011/12/21 v1.0 Class to compile TeX sub-files stand alone ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex" ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\standalone\standalone.cfg") ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) entering extended mode ! I can't find file `''. <to be read again> \def <*> ...fter \def \csname sa@internal@run\endcsname {1}\input {test}' Please type another input file name: }}}

Comments (6)

  1. Martin Scharrer repo owner
    • changed status to open

    The conversion option isn't very tested under Windows. Do you have Image Magick or Ghostscript installed and configured that they are in your PATH? Image Magick might also require renaming the convert executable into imgconvert.

  2. Martin Scharrer repo owner

    This is now fixed in v1.1. The reason was that MiKTeX or Windows interprets quotes (like " or ') different and requires double quotes instead the originally used single quotes. For some reason single quotes work well with the Windows version of TeX Live. The quotes are used for the job name and file name of the internal LaTeX run required for the conversion. I don't like to change it completely to double quotes, because single quotes support file names with spaces under Linux. While such should not be used, I like to support as much as possible.

    I now made the used quotes configurable using convert={quote={"},...} and added some automatic detection for MiKTeX which will set it to ", while keep it at ' for TeX Live.

    I tested the new version with MiKTeX 2.9 under Windows XP, as well as TeX Live 2011 under Windows XP and Ubuntu Linux.

  3. Log in to comment