bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-AUCTeX] 11.84; LaTeX documents organized in a subdirectories tree


From: Pierre Lorenzon
Subject: [Bug-AUCTeX] 11.84; LaTeX documents organized in a subdirectories tree
Date: Sat, 14 Jul 2007 22:14:28 +0200 (CEST)

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

Be sure to consult the FAQ section in the manual before submitting
a bug report.  If the bug (or problem) is triggered by a specific
(La)TeX file, you should try to produce a minimal sample file
showing the problem and include it in your report.

Your bug report will be posted to the AUCTeX bug reporting list.
------------------------------------------------------------------------

Hi,

I like complexe LaTeX documents to be organized in directories
and subdirectories but it seem to generate problems with
auctex. Anyway I particularly like functionalities provided by
auctex that's why I am very disappointed that something goes
wrong in this case. The problems appear in style loading.

Let's take an example : The master directory (let's  name it
..../MyDoc) contains the master file MyDoc.tex. 

It contains as well a directory Chapter-1 containing all files
corresponding to chapter one of the document and in particular
a file Chapter-1.tex. Hence there is an input command
\input{Chapter-1/Chapter-1} in the MyDoc.tex file. 

In the subdirectory Chapter-1 lives a file Section-1-1.tex as
well. The latter is called by Chapter-1.tex by the input
command \input{<fullpath>/MyDoc/Chapter-1/Section-1-1} Indeed
it seems that LaTeX does not understand relative pathes in such
circumstances. 

In Chapter-1.tex as weel as in Section-1-1.tex the TeX-master local
variable is set to "../MyDoc"  And in MyDoc it is obviously set
to t !

All style file (.el) created by auctex are placed in the
.../MyDoc/auto subdirectory i.e. MyDoc.el Chapter-1.el and
Section-1-1.el. 

When loading MyDoc.tex into emacs, MyDoc.el will correctly be
loaded. Since the latter requires Chapter-1 style the system
will try to load (somewhere) a Chapter-1.el file and will
success. But then Chapter-1 requires
"<fullpath>/MyDoc/Chapter-1/Section-1-1" style which will be
resolved and auctex will try to load (somewhere) a
Section-1-1.el file ! But it won't be able to determine where
to find it. 

After having investigate the code I found that the point is in
the TeX-load-style method where and expand-file-name command
does not return the suitable path ! Indeed it seems that this
command behave as if the current directory were
<fullpath>/MyDoc/Chapter-1 and then try to locate the auto
subdirectory in it and not in <fulpath>/MyDoc. 

To sum up, it looks like to me as if the way auctex stores the
.el file is not consistant with the way it tries to retrieve
them : anyway it might simpply append that I misunderstood
something ... If it is the case simply tell me ! (or let me
discover it !) otherwise if there is really a sort of bug I can
work to try to solve it but simply tell me again ! 


Joined a tar.bz2 archive containing the subdirectories tree I
mentioned above. 

Regards

Pierre


Emacs  : GNU Emacs 22.1.1 (i686-pc-linux-gnu)
 of 2007-06-06 on jabberwocky
Package: 11.84

current state:
==============
(setq
 AUCTeX-date "2007-01-12"
 window-system nil
 LaTeX-version "2e"
 TeX-style-path '("style" "auto"
                  "/usr/local/lib/teTeX/texmf/tex/latex/lorenzon/style"
                  "/usr/local/lib/teTeX/texmf/tex/latex/lorenzon/auto"
                  "/usr/share/emacs/site-lisp/auctex/style" "/usr/var/auctex")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master nil
 TeX-command-list '(("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil
                     (plain-tex-mode ams-tex-mode texinfo-mode) :help
                     "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
                     (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %t" TeX-run-compile nil
                     (texinfo-mode) :help "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
                     (texinfo-mode) :help "Run Makeinfo with HTML output")
                    ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
                    ("ConTeXt" "texexec --once --texutil %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
                    ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil
                     (context-mode) :help "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
                     "Run BibTeX")
                    ("View" "dvi2tty -q -w 132 %s" TeX-run-command t t :help
                     "Run Text viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help
                     "View the printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
                     "Generate PostScript file")
                    ("Index" "makeindex %s" TeX-run-command nil t :help
                     "Create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
                     :help "Check LaTeX file for correctness")
                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
                     t :help "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help
                     "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
                     "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help
                     "Run an arbitrary command")
                    )
 )

Attachment: MyDoc.tar.bz2
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]