單獨編譯 LaTeX 部分並將編譯版本包含在主文檔中

單獨編譯 LaTeX 部分並將編譯版本包含在主文檔中

考慮以下文檔結構:

Project
├── Sections
│   ├── section1.tex
│   └── section2.tex
└── main.tex

這是文件的內容:

內容main.tex

\documentclass{article}

\begin{document}

    \input{Sections/section1.tex}
    
    \input{Sections/section2.tex}
    
\end{document}

內容section1.tex

\section{Section 1}
bla bla bla

內容section2.tex

\section{Section 2}
bla bla bla

問題:是否可以將文件section1.tex和分別進行編譯,以節省編譯時的電腦資源,並將編譯後的和section2.tex版本添加到文件中?section1.texsection2.texmain.tex

相關內容