LaTeX 파일 전처리(latex -E와 동일)

LaTeX 파일 전처리(latex -E와 동일)

가능한 중복:
\input{fileX}를 fileX의 내용으로 자동으로 대체합니다.

LaTeX 프로젝트의 종속성을 관리하기 위한 프레임워크를 개발 중이지만 전처리된 LaTeX 파일을 얻는 간단한 방법이 있는지 알 수 없습니다.

예를 들어, 내 main.tex모습이 다음과 같다면:

\documentclass{article}
...
\newcommand{\specialpath}[0]{../foo/}
\input{\specialpath extracommands}
...
\begin{document}
    \input{introduction}
    ...
\end{document}

가지고 싶다:

\documentclass{article}
...
% Content of ../foo/extracommands.tex
\usepackage{minted}
\newcommand{\whatever}
% end
...
\begin{document}
    % Content of introduction.tex
    \section{Introduction}
    \lipsum[1-4] % Or even the developpement of the command
    % end
    ...
\end{document}

즉, LaTeX에 대한 gcc플래그 와 동등한 것 -E(또는 이를 수행할 수 있는 유틸리티)이 있습니까?

답변1

사용하고 싶으신 것 같아요\목록파일.

관련 정보