Hi Karl,
please let me come back to the problem which I can now reproducibly create and explain better.
Sorry for the initial unclear explanations.
WINEDT 6, Build 20110315
- the text is organized within WINEDT as a project "main.prj"
- main.tex is the MAIN file in the \MAIN directory and includes all chapter files using "include{}"
- the chapters are in \MAIN\CHAP1\chap1.tex, ..., \MAIN\CHAP9\chap9.tex
- I am editing usually in 2-3 chapters and then compile
If is save chap1.tex into \MAIN\CHAP1\chap1.tex using "save as" and then 'pdftexify'
THEN
a new directory with one (.aux) file is created
\MAIN\CHAP1\CHAP1\chap1.aux
and in addition the files
main.bbl
main.aux
main.blg
main.idx
main.ilg
main.log
main.pdf
are placed under \MAIN\CHAP1
while I expected them to appear under the \MAIN directly.
The reason obviously is that by doing "save as" under \MAIN\CHAP1 this saving directory assignment is valid for all files in the project.
I finally also found the New dropdown button as you suggested.
I succeeded to do the steps 1) to 4), but not 5)
1) from the New dropdown button in the toolbar, choose 'WinEdt Macro'
2) paste this code in that file:
ListFolderFiles(0,"C:\MAIN","",1,0);
WriteFile("C:\MAIN\result.txt","%!0");
i.e.
ListFolderFiles(0,"V:","",1,0);
WriteFile("V:result.txt","%!0");
V is a virtual disk. The main file is directly there.
3) substitute C:\MAIN with the full path to your main tex file (in both lines)
4) save it as test.edt (wherever)
5) open result.txt (it must be where your main file is)
... then result.txt is NOT written to V:
Searching it on either C not V failed too.
Norbert
On Jan 10, 2012, at 9:09 AM, Norbert Wermes wrote:
Hi, thanks, however ... see below
Your explanation is not very clear...
Do the following:
1) from the New dropdown button in the toolbar, choose 'WinEdt Macro'
I fail to find this, sorry ... a scree shot of my display is attached
Anyway, as I already told you, when you include subdocuments in
subfolders, the corresponding .aux files are put in corresponding
subfolders by TeX itself!!!!!!!!! Nothing to do with WinEdt!!!!!
If you don't like this behavior, you can use \input instead of
\include.
I know this, but the .aux file is included in a NEW subdirectory, i.e.
rather than in \CHAP1\chap1.aux
it is included in
\MAIN\CHAP2\CHAP1\chap1.aux
this is the weird thing, the new SUBdirectories !!!!