From 1e9353a24b736f262f82c7c29b4d0588a76efee3 Mon Sep 17 00:00:00 2001 From: Lennard Hofmann Date: Tue, 14 Jan 2020 17:31:35 +0100 Subject: [PATCH] [latex] Highlight section headings --- rc/filetype/latex.kak | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index e87e641f..67e174e8 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -44,6 +44,9 @@ add-highlighter shared/latex/content/ regex '(\$(\\\$|[^$])+\$)|(\$\$(\\\$|[^$]) add-highlighter shared/latex/content/ regex '\\(emph|textit)\{([^}]+)\}' 2:default+i # Bold text add-highlighter shared/latex/content/ regex '\\textbf\{([^}]+)\}' 1:default+b +# Section headings +add-highlighter shared/latex/content/ regex '\\(part|section)\*?\{([^}]+)\}' 2:title +add-highlighter shared/latex/content/ regex '\\(chapter|(sub)+section|(sub)*paragraph)\*?\{([^}]+)\}' 4:header # Indent