
다음 줄로 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
실행을 변환하는 대신 오류 메시지를 받은 것에 감사해야 합니다..
패키지가 convert
이미지 형식을 변환하기 위해 imagemagic을 실행하려고 합니다. Windows에서는 imagemagic이 실제로 실행하고 싶지 않은 변환 명령을 포함하므로 표준 Windows 유틸리티보다 앞서 있는지 확인해야 합니다.
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
convert
따라서 imagemagic이 설치되어 있고 표준 Windows 변환 유틸리티가 아닌지 확인해야 합니다 .