Wolfgang Schuster 写道:
Text in component files are not included in the attached example. I also put the log file in it. The log shows that the component files were found and complied but their texts were not present in the generated pdf file.
I'm not sure whether I did anything wrong in the example or not. I checked many time and didn't find anything.
Works OK for me but I found a few you could/should change.
1. Don't use project files as top level file for your document, use product and components (which can be nested) files only, projects are meta file when you have many document with the same topic (e.g. a magazine etc.)
A magazine is really one of my purposes. :)
2. You can write \usepath[kaka,leasure] in your environment files and write in test.tex
\component leasure \component kaka
ConTeXt looks now in both directories for the files leasure.tex and kaka.tex but take care to use unique filenames.
After adding \usepath[kaka,leasure], the texts in \component present, but, as the caution you mentioned, since I have two files with the same name, i.e. mytime.tex, only the file in kaka/ is added and is added twice. Although \usepath can partly solve my problem, it limits flexibility. Best wishes, Wei-Wei