Hello, I want to organize my book as follow: book/ env_book.tex prd_book.tex chapters/ chap_1.tex chap_1/ intro.tex chap_2.tex chap_2/ intro.tex chap_3.tex chap_3/ intro.tex chap_4.tex chap_4/ intro.tex Here is the contents of my texfiles: env_book.tex: \startenvironment env_book \usepath[{chapters}] \stopenvironment prd_book.tex: \environment env_book \startproduct book \startchapter[title=Chapter 1] \component chap_1 \stopchapter \startchapter[title=Chapter 2] \component chap_2 \stopchapter \startchapter[title=Chapter 3] \component chap_3 \stopchapter \startchapter[title=Chapter 4] \component chap_4 \stopchapter \stopproduct chap_1.tex \usepath[{chapters/chap_1}] \startcomponent chap_1 \component intro \stopcomponent chap_2.tex \usepath[{chapters/chap_2}] \startcomponent chap_2 \component intro \stopcomponent and so on. The problem is that only text of first introduction is used. I want to avoid renaming all introduction files to intro_1.tex intro_2.tex etc because they are already differentiated by their folder. Is it possible ? The aim is also to have folders for sections and images for each chapter. I attached the project structure. Thank you,
On 2014–02–05 pol stra wrote:
The problem is that only text of first introduction is used.
You can use \allinputpaths to see what's going on. The paths are indeed added and ConTeXt walks through the list and uses a matching file, if found. This happens to always be the file of the first chapter. I don't know know of a command which resets the custom set up paths. If none exists, I doubt it will be hard to implement.
I attached the project structure.
Thanks for that. Marco
Le jeudi 6 février 2014, 22:25:05 Marco Patzer a écrit :
On 2014–02–05 pol stra wrote:
The problem is that only text of first introduction is used.
You can use \allinputpaths to see what's going on. The paths are indeed added and ConTeXt walks through the list and uses a matching file, if found. This happens to always be the file of the first chapter.
I don't know know of a command which resets the custom set up paths. If none exists, I doubt it will be hard to implement.
I attached the project structure.
Thanks for that.
Marco
So, if I well understood, their is currently no solution but give a different name for each file?
participants (3)
-
Marco Patzer
-
pol stra
-
Pol Stra