![]() ![]() ![]() (read-file-name (format "Master file: (default %s) " (name (or (and (eq 'dwim TeX-master) default) The relevant bit of code is in TeX-master-file-ask : (let* ((default (TeX-dwim-master)) (The third one won't work in every circumstances.) M-p RET (insert current file name and confirm).C-a C-k RET (go to beginning of line, kill it, confirm).Of course, I can always edit the file variable after the document is created, but is there a way to generate a correct file from the get-go?Īny of these should work. Which is not functionally equivalent to %%% TeX-master: t What should I enter if I wish to set the TeX-master variable to t? Simply writing t, thus: Master file: (default ) tĭoesn't work, as this results in a quoted value: %%% TeX-master: "t" Suppose that upon creating a new TeX document I am presented with the Master file query shown in the screencap above, namely Master file: (default ) ~/ Observe that in contrast to the previous example the t is not enclosed between quotation marks. ![]() This configuration is stored in the new file as a file variable as follows: %%% TeX-master: t To indicate this, AUCTeX's TeX-master option should be set to t (see here). If the new file is not going to \include other TeX files, it is its own master file. For example, choosing the default in the above example results in the following initial document: %%% Local Variables: The value specified is written into the file as an Emacs file variable (see here). When creating a new TeX document, AUCTeX asks what the master file should be, for instance: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |