Unfortunately this morning something seems to have reverted. I though
something in my latex-settings.el file may be conflicting, so I commented
out all but the lisp code given below and still was unable to get macro
completions. I am specifically looking for the \includegraphics{}
completion.
I have set the main file to be TeX-master for all files that end up in
main.tex via \input{}.
The completion *does* work in main.tex, but not in any other files included
in main.tex.
Is there a way I can track down what's happening?
Thanks,
-Chase
(load "auctex.el" nil t t)
(setq auto-mode-alist (cons '("\\.tex\\'" . LaTeX-mode) auto-mode-alist))
(setq LaTeX-includegraphics-read-file
'LaTeX-includegraphics-read-file-relative)
(setq TeX-source-correlate-method 'synctex)
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
;; Make emacs aware of multi-file projects
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
*Chase Dwelle*
PhD Pre-Candidate - Environmental Engineering
Dow Doctoral Sustainability Fellow
www.chase-dwelle.com
On Sun, May 10, 2015 at 4:48 PM, Chase Dwelle <[email protected]> wrote:
> Thanks for the very fast reply. It was either that my preamble.tex file
> did not have its master set, or that I set [TeX-Master: t] in main.tex.
> Either way, adding those two things solved my problem.
>
> -Chase
>
> *Chase Dwelle*
> PhD Pre-Candidate - Environmental Engineering
> Dow Doctoral Sustainability Fellow
> www.chase-dwelle.com
>
>
>
>
>
>
> On Sun, May 10, 2015 at 4:34 PM, Mosè Giordano <[email protected]> wrote:
>
>> Hi Chase,
>>
>> 2015-05-10 22:29 GMT+02:00 Chase Dwelle <[email protected]>:
>> > I have a project that has multiple sub-folders and sub files to
>> organize the
>> > writing.
>> >
>> > I have a file main.tex which reads in all the necessary files using
>> \input{}
>> > commands, this includes my preamble and files in each sub folder. Some
>> of
>> > these subfolder files are also reading in other files using \input{}.
>> >
>> >
>> > I have a problem that anything that is outside of main.tex does not
>> have the
>> > macros associated with the packages loaded through preamble.tex.
>> >
>> > I'm assuming there's a simple fix to this, but haven't been able to
>> find it
>> > yet. Any help would be appreciated.
>>
>> Did you specify the master file to each included file? If not, visit
>> every included file and issue C-c _ (or M-x TeX-master-file-ask RET)
>> in order to set the master file. In addition, you should add to your
>> init file the line
>>
>> (setq-default TeX-master nil)
>>
>> This will make AUCTeX ask you for the master file every time you
>> create a new *TeX file. This is also suggested in the very first
>> lines of the AUCTeX manual.
>>
>> Bye,
>> Mosè
>>
>
>
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex