2018-01-01 20:48:23 +01:00
|
|
|
;;; lang/latex/+fontification.el -*- lexical-binding: t; -*-
|
|
|
|
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Fontification taken from https://tex.stackexchange.com/a/86119/81279.
|
2018-01-01 20:48:23 +01:00
|
|
|
(setq font-latex-match-reference-keywords
|
2021-11-24 13:08:34 +01:00
|
|
|
'(;; BibLaTeX.
|
2018-01-01 20:48:23 +01:00
|
|
|
("printbibliography" "[{")
|
|
|
|
("addbibresource" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Standard commands.
|
2018-01-01 20:48:23 +01:00
|
|
|
("cite" "[{")
|
2018-04-11 13:03:59 +02:00
|
|
|
("citep" "[{")
|
|
|
|
("citet" "[{")
|
2018-01-01 20:48:23 +01:00
|
|
|
("Cite" "[{")
|
|
|
|
("parencite" "[{")
|
|
|
|
("Parencite" "[{")
|
|
|
|
("footcite" "[{")
|
|
|
|
("footcitetext" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Style-specific commands.
|
2018-01-01 20:48:23 +01:00
|
|
|
("textcite" "[{")
|
|
|
|
("Textcite" "[{")
|
|
|
|
("smartcite" "[{")
|
|
|
|
("Smartcite" "[{")
|
|
|
|
("cite*" "[{")
|
|
|
|
("parencite*" "[{")
|
|
|
|
("supercite" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Qualified citation lists.
|
2018-01-01 20:48:23 +01:00
|
|
|
("cites" "[{")
|
|
|
|
("Cites" "[{")
|
|
|
|
("parencites" "[{")
|
|
|
|
("Parencites" "[{")
|
|
|
|
("footcites" "[{")
|
|
|
|
("footcitetexts" "[{")
|
|
|
|
("smartcites" "[{")
|
|
|
|
("Smartcites" "[{")
|
|
|
|
("textcites" "[{")
|
|
|
|
("Textcites" "[{")
|
|
|
|
("supercites" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Style-independent commands.
|
2018-01-01 20:48:23 +01:00
|
|
|
("autocite" "[{")
|
|
|
|
("Autocite" "[{")
|
|
|
|
("autocite*" "[{")
|
|
|
|
("Autocite*" "[{")
|
|
|
|
("autocites" "[{")
|
|
|
|
("Autocites" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Text commands.
|
2018-01-01 20:48:23 +01:00
|
|
|
("citeauthor" "[{")
|
|
|
|
("Citeauthor" "[{")
|
|
|
|
("citetitle" "[{")
|
|
|
|
("citetitle*" "[{")
|
|
|
|
("citeyear" "[{")
|
|
|
|
("citedate" "[{")
|
|
|
|
("citeurl" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Special commands.
|
2018-01-01 20:48:23 +01:00
|
|
|
("fullcite" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Cleveref.
|
2018-01-01 20:48:23 +01:00
|
|
|
("cref" "{")
|
|
|
|
("Cref" "{")
|
|
|
|
("cpageref" "{")
|
|
|
|
("Cpageref" "{")
|
|
|
|
("cpagerefrange" "{")
|
|
|
|
("Cpagerefrange" "{")
|
|
|
|
("crefrange" "{")
|
|
|
|
("Crefrange" "{")
|
|
|
|
("labelcref" "{")))
|
|
|
|
|
|
|
|
(setq font-latex-match-textual-keywords
|
2021-11-24 13:08:34 +01:00
|
|
|
'(;; BibLaTeX brackets.
|
2018-01-01 20:48:23 +01:00
|
|
|
("parentext" "{")
|
|
|
|
("brackettext" "{")
|
|
|
|
("hybridblockquote" "[{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Auxiliary commands.
|
2018-01-01 20:48:23 +01:00
|
|
|
("textelp" "{")
|
|
|
|
("textelp*" "{")
|
|
|
|
("textins" "{")
|
|
|
|
("textins*" "{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Subcaption.
|
2018-01-01 20:48:23 +01:00
|
|
|
("subcaption" "[{")))
|
|
|
|
|
|
|
|
(setq font-latex-match-variable-keywords
|
2021-11-24 13:08:34 +01:00
|
|
|
'(;; Amsmath.
|
2018-01-01 20:48:23 +01:00
|
|
|
("numberwithin" "{")
|
2021-11-24 13:08:34 +01:00
|
|
|
;; Enumitem.
|
2018-01-01 20:48:23 +01:00
|
|
|
("setlist" "[{")
|
|
|
|
("setlist*" "[{")
|
|
|
|
("newlist" "{")
|
|
|
|
("renewlist" "{")
|
|
|
|
("setlistdepth" "{")
|
|
|
|
("restartlist" "{")
|
|
|
|
("crefname" "{")))
|