Skip to content

Conceal #2356

Closed
Closed
Conceal#2356
@aloispichler

Description

@aloispichler

In love with vimtex and conceal:

  1. 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].

  2. 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=ñ
  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions