README.md

changeset 5
993903fd4434
parent 4
acf39baa1c7d
child 6
0ac9389339bf
equal deleted inserted replaced
4:acf39baa1c7d 5:993903fd4434
5 up your work. It is recommended to be combined with [texlab][]. The latter 5 up your work. It is recommended to be combined with [texlab][]. The latter
6 provides a language intelligence/auto-completion and build system interface. 6 provides a language intelligence/auto-completion and build system interface.
7 The present package complements texlab with richer syntax highlighting. The 7 The present package complements texlab with richer syntax highlighting. The
8 grammar is derived from LaTeX-Workshop, but has improvements including 8 grammar is derived from LaTeX-Workshop, but has improvements including
9 9
10 a) Highlighting of `todonotes` (see below). 10 a) Highlighting for the `todonotes` package: `\todo` as well as custom-defined
11 `\XYtodo` for author initials `X` and `Y`.
11 12
12 b) Footnote highlighting. 13 b) Footnote highlighting.
13 14
14 c) Highlighting of `comment` environments as comment blocks. 15 c) Highlighting of `comment` environments as comment blocks.
16
17 The highlighting of todo-notes and footnotes has to be specifically configured:
18 see below.
15 19
16 ### How to enable 20 ### How to enable
17 21
18 This package does not override the standard “LaTeX” grammar. It provides the 22 This package does not override the standard “LaTeX” grammar. It provides the
19 “LaTeX+” grammar. Please select that as the default grammar for `.tex` files. 23 “LaTeX+” grammar. Please select that as the default grammar for `.tex` files.
57 } 61 }
58 ], 62 ],
59 }, 63 },
60 ``` 64 ```
61 65
66 Initial-prefixed `\XYtodo` custom todonotes commands are also supported.
67 For example, `\lstodo{a latex-syntax todo}` will be highlighted if you do
68 the above colour customisations and in your LaTeX source define
69 ```tex
70 \newcommand{\abtodo}[2][]{\todo[color=DarkRed!40,#1]{#2}}
71 ```
72 (The colour setting here only affects LaTeX output, not VSCode.)
73
62 [texlab]: https://marketplace.visualstudio.com/items?itemName=efoerster.texlab 74 [texlab]: https://marketplace.visualstudio.com/items?itemName=efoerster.texlab

mercurial