Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>AUCTeX knows that <code>$</code> is not special in verbatim environments, but you have to tell it that <code>Verbatim</code> is a verbatim environment by arranging for it to appear in <code>LaTeX-verbatim-environments-local</code>.</p> <p>If AUCTeX is installed optimally, it already knows, because AUCTeX loads a style hook for each file you load through <code>\usepackage</code> and friends. You may need to tell it to parse your header file with <code>C-c C-n</code> (<code>TeX-normal-mode</code>).</p> <p>If that's not enough, it means <code>Verbatim</code> was defined in a style file for which AUCTeX doesn't have enough information. You can tell AUCTeX to parse some or all the style files you have installed; see the “Automatic” chapter in the AUCTeX manual.</p> <p>Sometimes AUCTeX doesn't manage to parse the style file; then you can do this part by hand. The code below assumes that you're getting the <code>Verbatim</code> environment from the <code>fancyvrb</code> package; adapt the name otherwise. Create a file called <code>fancyvrb.el</code> in one of the directories mentioned in <code>TeX-style-path</code> with the following contents (there may be other things worth putting there, I've just adapted <code>alltt.el</code>):</p> <pre> (TeX-add-style-hook "fancyvrb" (lambda () (LaTeX-add-environments "BVerbatim" "LVerbatim" "SaveVerbatim" "Verbatim") (make-local-variable 'LaTeX-indent-environment-list) (add-to-list 'LaTeX-indent-environment-list '("BVerbatim" current-indentation)) (add-to-list 'LaTeX-indent-environment-list '("LVerbatim" current-indentation)) (add-to-list 'LaTeX-indent-environment-list '("SaveVerbatim" current-indentation)) (add-to-list 'LaTeX-indent-environment-list '("Verbatim" current-indentation)) (make-local-variable 'LaTeX-verbatim-regexp) (setq LaTeX-verbatim-regexp (concat LaTeX-verbatim-regexp "\\|\\([BL]?\\|Save\\)Verbatim")) (add-to-list 'LaTeX-verbatim-environments-local "BVerbatim") (add-to-list 'LaTeX-verbatim-environments-local "LVerbatim") (add-to-list 'LaTeX-verbatim-environments-local "SaveVerbatim") (add-to-list 'LaTeX-verbatim-environments-local "Verbatim") (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-set-syntactic-keywords) (setq font-lock-set-defaults nil) (font-lock-set-defaults)))) </pre> <p>(I thought you could also do it manually through file variables, but this turns out not to work, because the font-lock settings are built before the file local variables are initialized, and I don't see a workaround.)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload