![gnuplottex 및 쉘 탈출](https://rvso.com/image/328439/gnuplottex%20%EB%B0%8F%20%EC%89%98%20%ED%83%88%EC%B6%9C.png)
gnuplottex
이 MWE에서 실행 하려고 합니다 .
\documentclass[a4paper, 11pt]{article}
\usepackage[cm]{fullpage}
\usepackage{gnuplottex}
\begin{document}
\begin{figure}%
\centering%
\begin{gnuplot}[terminal=epslatex]
plot sin(x) w l
\end{gnuplot}
\caption{This is a simple example using the epslatex-terminal.}%
\end{figure}%
\end{document}
그림 환경이 나타나지만 줄거리가 없습니다!
이미 새로운 조판 옵션을 포함시켰습니다...
...그리고 로그 파일의 \write18 enabled
세 번째 줄에 나와 있습니다.
그럼에도 불구하고 로그 파일에는 다음과 같이 나와 있습니다.
이것은 pdfTeX, 버전 3.14159265-2.6-1.40.15(TeX Live 2014/W32TeX)(사전 로드된 형식=pdflatex 2014.9.22)입니다. 2016년 2월 18일 12:01
확장 모드 시작
\write18 활성화.[...]
패키지 gnuplottex 경고: 쉘 이스케이프가 활성화되지 않았습니다.
(gnuplottex) 그래프를 직접 변환해야 합니다.[...]
패키지 gnuplottex 경고: gnuplot-gnuplottex-fig1.gnuplot을 수동으로 변환하십시오.
[...]
gnuplot 소스 파일이 생성됩니다. 저는 TeX Live 2014, TeXworks, Windows 7(64비트) 및 gnuplot 5.0(경로 변수가 설정됨 - gnuplot
콘솔에 입력하면 gnuplot이 실행됨)을 사용하고 있습니다.
\gnuplotexe
편집: 실행 파일 을 직접 가리키기 위해 사용하는 방법이 다소 혼란스럽습니다 gnuplot
...
답변1
(댓글로 OP와 교환 후 업데이트)
소스를 읽으면 먼저 임시 파일을 생성하여 활성화되었는지 gnuplottex
테스트하는 것으로 보입니다 . -shell-escape
이를 위해 option 아래를 제외하고 unix 명령을 사용합니다 miktex
. 따라서 나는 당신이 MikTeX를 사용하지 않는다는 사실에도 불구하고 해당 옵션을 사용해 볼 것을 제안합니다. 손가락이 교차 ...
(해당 옵션에서 전역 범위를 사용하여 gnuplottex
true 부울로 설정된다는 점에 유의하세요.\ifmiktex
)
원래 답변:
쉘 이스케이프가 활성화된 상태에서만 작동하는지 확인하기 위한 것입니다. 저는 Windows가 아니기 때문에 더 이상 도움을 드릴 수 없습니다.
\documentclass[a4paper, 11pt]{article}
\usepackage[cm]{fullpage}
\usepackage{gnuplottex}
\begin{document}
\begin{figure}
\centering
\begin{gnuplot}[terminal=epslatex]
plot sin(x) w l
\end{gnuplot}
\caption{This is a simple example using the epslatex-terminal.}
\end{figure}
\end{document}