This is a huge set of pedantic changes, none them affecting actual code. Mostly, I tried to: - use consistent names; e.g, use LaTeX wherever possible, not latex; - fix broken symbol links; - use capitalized comments with full stops.
88 lines
2.4 KiB
EmacsLisp
88 lines
2.4 KiB
EmacsLisp
;;; lang/latex/+fontification.el -*- lexical-binding: t; -*-
|
|
|
|
;; Fontification taken from https://tex.stackexchange.com/a/86119/81279.
|
|
(setq font-latex-match-reference-keywords
|
|
'(;; BibLaTeX.
|
|
("printbibliography" "[{")
|
|
("addbibresource" "[{")
|
|
;; Standard commands.
|
|
("cite" "[{")
|
|
("citep" "[{")
|
|
("citet" "[{")
|
|
("Cite" "[{")
|
|
("parencite" "[{")
|
|
("Parencite" "[{")
|
|
("footcite" "[{")
|
|
("footcitetext" "[{")
|
|
;; Style-specific commands.
|
|
("textcite" "[{")
|
|
("Textcite" "[{")
|
|
("smartcite" "[{")
|
|
("Smartcite" "[{")
|
|
("cite*" "[{")
|
|
("parencite*" "[{")
|
|
("supercite" "[{")
|
|
;; Qualified citation lists.
|
|
("cites" "[{")
|
|
("Cites" "[{")
|
|
("parencites" "[{")
|
|
("Parencites" "[{")
|
|
("footcites" "[{")
|
|
("footcitetexts" "[{")
|
|
("smartcites" "[{")
|
|
("Smartcites" "[{")
|
|
("textcites" "[{")
|
|
("Textcites" "[{")
|
|
("supercites" "[{")
|
|
;; Style-independent commands.
|
|
("autocite" "[{")
|
|
("Autocite" "[{")
|
|
("autocite*" "[{")
|
|
("Autocite*" "[{")
|
|
("autocites" "[{")
|
|
("Autocites" "[{")
|
|
;; Text commands.
|
|
("citeauthor" "[{")
|
|
("Citeauthor" "[{")
|
|
("citetitle" "[{")
|
|
("citetitle*" "[{")
|
|
("citeyear" "[{")
|
|
("citedate" "[{")
|
|
("citeurl" "[{")
|
|
;; Special commands.
|
|
("fullcite" "[{")
|
|
;; Cleveref.
|
|
("cref" "{")
|
|
("Cref" "{")
|
|
("cpageref" "{")
|
|
("Cpageref" "{")
|
|
("cpagerefrange" "{")
|
|
("Cpagerefrange" "{")
|
|
("crefrange" "{")
|
|
("Crefrange" "{")
|
|
("labelcref" "{")))
|
|
|
|
(setq font-latex-match-textual-keywords
|
|
'(;; BibLaTeX brackets.
|
|
("parentext" "{")
|
|
("brackettext" "{")
|
|
("hybridblockquote" "[{")
|
|
;; Auxiliary commands.
|
|
("textelp" "{")
|
|
("textelp*" "{")
|
|
("textins" "{")
|
|
("textins*" "{")
|
|
;; Subcaption.
|
|
("subcaption" "[{")))
|
|
|
|
(setq font-latex-match-variable-keywords
|
|
'(;; Amsmath.
|
|
("numberwithin" "{")
|
|
;; Enumitem.
|
|
("setlist" "[{")
|
|
("setlist*" "[{")
|
|
("newlist" "{")
|
|
("renewlist" "{")
|
|
("setlistdepth" "{")
|
|
("restartlist" "{")
|
|
("crefname" "{")))
|