Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个很长的 lex 文件,并且厌倦了上下滚动。那么有谁知道是否有一种方法可以让我编写多个简短的 lex 文件并将它们组合起来生成一个 pdf 文件?
\input{sub_file}在主 tex 文件中使用以包含主文件中的乳胶内容sub_file:
\input{sub_file}
sub_file
主文件:
\documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \section{Section 1} \input{section1} \end{document}
子文件 {section1}:
\subsection{A subsection} Some \LaTeX{} to fill the section