獨立包 -> 錯誤訊息:不可行的參數

獨立包 -> 錯誤訊息:不可行的參數

我嘗試使用以下行轉換 tex2png 並使用

pdflatex -shell-escape test.tex

以下幾行位於 text.tex 中

\documentclass[
  preview,
  convert
 ]{standalone}
 \begin{document}
   Hello. This is a test.
 \end{document}

如果我嘗試編譯,我會收到訊息:

“不可行的參數300”

我沒有找到任何關於這個問題的提示,希望有人以前遇到過這個問題。

更新:

我的作業系統是windows 7。

答案1

你應該慶幸你收到了一條錯誤訊息而不是轉換運行..

該軟體包正在嘗試運行 imagemagicconvert來轉換圖像格式。在 Windows 上,您需要確保 imagemagic 領先於標準 Windows 實用程序,因為它們包含 ypu 確實不想執行的轉換命令。

C:\Users\davidc>convert /?
Converts a FAT volume to NTFS.

CONVERT volume /FS:NTFS [/V] [/CvtArea:filename] [/NoSecurity] [/X]


  volume      Specifies the drive letter (followed by a colon),
              mount point, or volume name.
  /FS:NTFS    Specifies that the volume will be converted to NTFS.
  /V          Specifies that Convert will be run in verbose mode.
  /CvtArea:filename
              Specifies a contiguous file in the root directory
              that will be the place holder for NTFS system files.
  /NoSecurity Specifies that the security settings on the converted
              files and directories allow access by all users.
  /X          Forces the volume to dismount first if necessary.
              All open handles to the volume will not be valid.

也就是說,它想要重新格式化您的磁碟;-)

如果你給它一些圖像檔案名,你會得到(英文)一個錯誤,例如

C:\Users\davidc>convert a.ps a.pdf
Invalid Parameter - a.pdf

因此,您需要確保已安裝 imagemagic,並且convert發現它不是標準的 Windows 轉換實用程式。

相關內容