Tag Info

Hot answers tagged

3

(defun yuxuan-save-and-compile (extended) "Save and run the default command. With a prefix argument, just run `TeX-command-master'." (interactive "P") (save-buffer) (if extended (call-interactively #'TeX-command-master) (TeX-command TeX-command-default #'TeX-master-file nil))) Bind to whatever key you think is appropriate. With a prefix ...


3

The error pointed out in comment is that the file must be reload to change the local variable. Emacs permit to do it using M-x revert-buffer and answer yes to the confirmation.


2

Partial solution: With font-latex enabled, you can fontify your macros with a file variable: %%% eval: (font-latex-add-keywords '(("nothing" "{" )) 'italic-command) You have to add this line manually at the end of your LaTeX document to the local variables, e.g.: \documentclass[10pt,a4paper]{article} \begin{document} \nothing{Test} \end{document} %%% ...


2

Before to merge the two file, open one in emacs. Use M-x replace-regexp RET eq:\([A-Za-z0-9]+\) RET eqA:\1 It will add a A after each eq. In this case even if you have the same label for two equations in the final file you'll have no errors. This supposed that each label you've wrote is constructed as eq:XX you can modify the regexp to match other ...


1

The same question have been posted to emacs.SE: According to the Emacs Lisp Manual every input method should disable key translation and conversion if overriding-local-map is set. We should be able to rely on this to disable quail conditionally. In Emacs 24.4 and later (using the new advising mechanism), add this to your init file: (advice-add ...


1

There is also the function hack-local-variables. C-h f hack-local-variables RET says: hack-local-variables is a compiled Lisp function in `files.el'. (hack-local-variables &optional MODE-ONLY) Parse and put into effect this buffer's local variables spec. Uses `hack-local-variables-apply' to apply the variables. [...] M-: ...


1

This is quite a common error: installing an editor, but forgetting to install the interpreter as well. In this case MacTeX is the obvious choice.


1

... Leo, unless I'm missing something, and under the assumption that TeX-PDF-mode is enabled (default now I think), two consecutive C-c C-v will call the viewer, as long as evince, is specified in TeX-view-program-list in the initialization file with a (setq TeX-view-program-list '(("Evince" "evince %o"))). As @giordano pointed out, Okular works as ...



Only top voted, non community-wiki answers of a minimum length are eligible