avatar
Question about latex.# TeX - TeX电子排版系统
a*e
1
I store my tex files for each chapter in different subdirectories,
and use \input to include all the chapters. Each chapter also use
\input to include several sections within each subdirectories.
But somehow it seems that latex always assume the current directory
is the one containing the topest module. Is there any macro to set
up the directory so that I can work with the files in a hierarchical
way? Thanks!
avatar
T*n
2
The search path for the \input command can be controlled by the
TEXINPUTS environment variable. If you say something like the
following (Linux/UNIX csh/tcsh syntax):
setenv TEXINPUTS './/:'
then LaTeX will search the current directory and all subdirectories
for the input file. If some of the files in different subdirectories
have the same name, you WILL run into problems.
You can also try putting the following code after \documentclass
but before \begin{document} (and don't mess around wit

【在 a*********e 的大作中提到】
: I store my tex files for each chapter in different subdirectories,
: and use \input to include all the chapters. Each chapter also use
: \input to include several sections within each subdirectories.
: But somehow it seems that latex always assume the current directory
: is the one containing the topest module. Is there any macro to set
: up the directory so that I can work with the files in a hierarchical
: way? Thanks!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。