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.texとをファイルsection2.texに追加することは可能ですかmain.tex?

関連情報