I am using vimtex
with latexmk
and using conceal
setting provided by vim
and extending it with an additional plug-in : KeitaNakamura/tex-conceal.vim
. Additionally, I use a package braket
to encode \langle
, \rangle
and |
nicely.
The braket
package comes with commands which are used like :
\bra{A}
( it will print into pdf as<A|
and I want to conceal in my tex file so that it appears like :<A|
)\ket{A}
( it will print into pdf as|A>
and I want to conceal in my tex file so that it appears like :|A>
)\bracket{A|B}
( it will print into pdf as<A|B>
and I want to conceal in my tex file so that it appears like :<A|B>
)
My aim is to use conceal feature of vim
on the commands that come with the braket
package which is not available by default or by the plug-in I am using.
Short of asking the developer of the plug-in to include support for braket
package is there any other method by which I can achieve this? Writing some custom code or using some other plugin?