2008/8/28 Ralf Angeli <[EMAIL PROTECTED]>: > * inu (2008-08-27) writes: > > You don't want to <F10> to do this in all of Emacs, so better add it > only to the keymap of LaTeX mode: > > (eval-after-load "latex" > '(define-key LaTeX-mode-map (kbd "<f10>") > (lambda () > (interactive) > (mapcar 'find-file-noselect (reftex-all-document-files))))) > > You could also work with `local-set-key' and execute that every time > `LaTeX-mode-hook' is run. > > Also note that the function is marked as being interactive. > > If it still does not work, the culprit could be that RefTeX hasn't > parsed the file yet. In that case try executing `Ref --> Parse Document > --> Entire Document' from the menu.
I added it to my .emacs-file. F10 seems to be used in windows, thus i switched to <F6>. When i open the master-file and use this function it simply says "Loading reftex-parse...done" in the minibuffer and does nothing else after that. Using it again, the Message doesnt show up and still no reaction. But you are right with your last statement: after reftex parsing the document it works or after opening the Ref-TOC with "C-c t" once. But this has to be done everytime i reopen this masterfile. I stored the reftex-parse as master.rel-File by 'Ref --> Parse Document --> Save to File'. Is there a way to make reftex read this 'master.rel' when starting emacs? Or instead automatically reftex-parsing of a document when it is opened? >>> I fail to see how the use of tabs would make a difference here, but oh >>> well. >> >> I am accustomed to the way Projects are handled in other >> LaTeX-Editors. > > Other LaTeX editors always open all files of a project? If they are > anything like common IDEs I highly doubt that. Hm, actually i know this manner from TeXniccenter. When the Files are saved in a Project, you can either open the Project-file (.tcp), to open all those files. Or you open the .tex-File and the Editor will ask whether to open the corresponding Project-file instead. > The rationale for not opening all files at once is that one usually is > only working on certain parts of a document and then the other files are > just distracting. In Emacs this becomes quite apparent when they are > cluttering the buffer list. Yes, that's why i am using tabbar.el. I only see my .tex-files as Tabs in the upper-corner of my emacs client (9 Tabs atm). Other buffers, like *scratch*, are not shown, because they belong to other tab-groups. Alex _______________________________________________ auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex
