auctex

FlySpell in Org-Mode recognize latex syntax like auctex

和自甴很熟 提交于 2019-12-05 06:38:23
Original Response: I was trying to figure out how in auctex mode latex doesn't seem to highlight any latex functions with flyspell turned on. Is this a custom dictionary file or how is this implemented? Can this be easily incorporated into an org-mode file so it doesn't highlight inserted latex code that will get exported. Edit: Simple example taken from top of file and in the text. Basically so latex syntax like ref or label inside {} won't be spell checked (this has been fixed by using (setq ispell-parser tex). Then also setting up a function that specific labels with #+ as the first text on

Suggestion for \cite in Emacs with AUCTeX

女生的网名这么多〃 提交于 2019-12-04 16:31:01
问题 I would like to know how can I get the suggestion when I do a \cite in Emacs-AUCTeX. The minibuffer tells me when I do C-c [ that: No valid bibliography in this document, and no default available So how can I set this default? I have a separated file with my bibtex references that is called by a master document, and I want the suggestion for any of the other files included. 回答1: The variable reftex-default-bibliography is what defines the default bibliography to use. I don't do much with mult

emacs AUCTeX macros fontification

你。 提交于 2019-12-04 11:12:05
I recently started using the excellent package xargs that provides \newcommandx . It shares a syntax similar to the default \newcommand . I would like font-lock to reflect this. I did (custom-set-variables '(font-latex-user-keyword-classes (quote (("cx" ("newcommandx" "*|{\\[[{") (:family "font-lock-type-face") command))))) But this fontifies just the command name itself, not its body ( \newcommand fontifies the body with 'font-lock-function-name-face , which in my case is bold). I want \newcommandx to fontify its body with 'font-lock-function-name-face . To summarize the question: how to make

yasnippets with % ending the line after $0 acts strange when used with AUCTeX

99封情书 提交于 2019-12-04 04:46:14
问题 Yasnippet snippets that has a percent sign, % , ending a line with the last point of the snippet, $0 , before the percent sign acts strange in that the cursor gets placed after the percent sign and not before it. I wonder how I can avoid this strange behavior. Consider the following snippet: # -*- mode: snippet -*- # name: test snippet # key: ts # -- { $0% } I take it that as it's activated it should insert three lines where the first contains { , the last line } and the second line % and

Emacs/AUCTeX prefix arguments

强颜欢笑 提交于 2019-12-03 21:47:42
问题 In LaTeX mode C-c C-c is bound to: (TeX-command-master &optional OVERRIDE-CONFIRM) Normally this interactive function runs a command, perhaps a LaTeX compilation, asking for confirmation . In tex-buf.el it reads: If a prefix argument OVERRIDE-CONFIRM is given, confirmation will depend on it being positive instead of the entry in `TeX-command-list'. This is a bit cryptic for me and reading C-h v TeX-command-list didn't help. How can I pass the prefix argument to "TeX-command-master" so that I

Suggestion for \\cite in Emacs with AUCTeX

天大地大妈咪最大 提交于 2019-12-03 11:24:35
I would like to know how can I get the suggestion when I do a \cite in Emacs-AUCTeX. The minibuffer tells me when I do C-c [ that: No valid bibliography in this document, and no default available So how can I set this default? I have a separated file with my bibtex references that is called by a master document, and I want the suggestion for any of the other files included. The variable reftex-default-bibliography is what defines the default bibliography to use. I don't do much with mult-file documents, do you have reftex-plug-into-AUCTeX turned on? Judith Have you tried: Ref -> Parse Dokument

Using minted (source code LaTeX package) with emacs/auctex

耗尽温柔 提交于 2019-12-03 05:57:06
As is explained in here , I find minted package is pretty cool for source code listing. My question is how to use minted package with AucTeX/emacs? For command line I can use pdflatex -shell-escape SOURCE , but Q1 : How can I modify the AucTeX to insert the -shell-escape ? I mean, how to change the action for C - c + C - c ? Q2 : Do I need special key other than C - c + C - c for -shell-escape option? Or, is it just OK to use it without any problem? Q3 : What is the -shell-escape for? Q1: You need to edit the way LaTeX is called by AucTeX. One way of doing this is to add the following to your

yasnippets with % ending the line after $0 acts strange when used with AUCTeX

五迷三道 提交于 2019-12-01 22:56:50
Yasnippet snippets that has a percent sign, % , ending a line with the last point of the snippet, $0 , before the percent sign acts strange in that the cursor gets placed after the percent sign and not before it. I wonder how I can avoid this strange behavior. Consider the following snippet: # -*- mode: snippet -*- # name: test snippet # key: ts # -- { $0% } I take it that as it's activated it should insert three lines where the first contains { , the last line } and the second line % and place the cursor before % on the second line as in the following example: { [cursor]% } But what happens

How do I bind latexmk to one key in Emacs and have it show errors if there are any

人盡茶涼 提交于 2019-11-30 12:53:07
问题 I'm using AUCTeX and I would like to bind a key, e.g. C-0 , that does the following: Saves the active file without prompting me. Runs latexmk on the active file without prompting me. Shows me errors if latexmk encounters any by . My problem is not how to bind a key (for which Tyler posted a link in a comment below) but how to come up with a function that accomplishes item 1–3. I call Latexmk by (add-hook 'LaTeX-mode-hook (lambda () (push '("Latexmk" "latexmk %s" TeX-run-TeX nil t :help "Run

How do I bind latexmk to one key in Emacs and have it show errors if there are any

自闭症网瘾萝莉.ら 提交于 2019-11-30 03:28:06
I'm using AUCTeX and I would like to bind a key, e.g. C-0 , that does the following: Saves the active file without prompting me. Runs latexmk on the active file without prompting me. Shows me errors if latexmk encounters any by . My problem is not how to bind a key (for which Tyler posted a link in a comment below) but how to come up with a function that accomplishes item 1–3. I call Latexmk by (add-hook 'LaTeX-mode-hook (lambda () (push '("Latexmk" "latexmk %s" TeX-run-TeX nil t :help "Run Latexmk on file") TeX-command-list))) This is my .latexmkrc $pdf_mode = 1; $recorder = 1; $latex =