Closed
Description
In love with vimtex and conceal:
-
Suggestion: It would be nice to conceal
\eqref{eq:17}
to(eq:17)
and the same with\label{…}
and other\ref{…}
s. Similarly, as\cite{Lervag}
nicely conceals to[Lervag]
. -
Suggestion: I have the following in my
init.vim
, possibly interesting for others as well:autocmd FileType tex syntax match texMathSymbol "\\nobreakdash-" conceal cchar=- autocmd FileType tex syntax match Character "\~" conceal cchar= autocmd FileType tex syntax match texMathSymbol "&" conceal cchar= autocmd FileType tex syntax match texMathSymbol "\\ " conceal cchar= autocmd FileType tex syntax match texMathSymbol "\\;" conceal cchar= autocmd FileType tex syntax match texMathSymbol "\\not\\in" conceal cchar=∉ autocmd FileType tex syntax match texMathSymbol "\\{" conceal cchar={ autocmd FileType tex syntax match texMathSymbol "\\}" conceal cchar=} autocmd FileType tex syntax match texMathSymbol "\^\\prime" conceal cchar=' autocmd FileType tex syntax match texMathSymbol "\\iint" conceal cchar=∬ autocmd FileType tex syntax match texMathSymbol "\\iiint" conceal cchar=∭ autocmd FileType tex syntax match texMathSymbol "\\tilde n" conceal cchar=ñ
-
Suggestion: Would be nice to conceal
\begin{theorem} a²+b²=c². \end{theorem}
to
Theorem. a²+b²=c².
and other environments in the same way. (I did not manage to do this on my own.)
Thanks!