KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당

어제 본 패키지인데요, 한 문서 내에서 다른 텍엔진이나 프로그램을 실행하여 그 결과물을 본문에 삽입해주는 패키지입니다.

> texdoc hvextern
https://www.ctan.org/pkg/hvextern

기본적으로는 위 댓글의 김도현 교수님의 아이디어와 같은 것 같습니다.
주 문서는 lualatex으로 --shell-escape 옵션을 주어 컴파일하는데, 외부에서 컴파일할 내용은 \begin{externalDocument} ~ \end{externalDocument} 환경에 넣거나 단일 명령어 \runExtCmd로 지정하면 된다고 매뉴얼에 나와있네요

This package allows to write METAPOST, TEX, ConTEXt, LATEX, LuaTEX, LuaLATEX, XETEX, XELATEX, Lua, Perl, or Python source code into an external file, run that file via shell-escape to create PDF, PNG, or text output, and include that output automatically into the main LATEX document.

KTUG 한국 텍 사용자 그룹