lervag / vimtex

VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
MIT License
5.3k stars 387 forks source link

Concealing subscript letters stopped working #2910

Closed ConnerRose closed 3 months ago

ConnerRose commented 3 months ago

Description

I noticed recently that subscripts using letters are no longer being concealed correctly. I.e., for $v_n$, the subscript n is replaced with an empty box (I think indicating that the character is not found). Can anyone else confirm that this isn't just a problem for me?

Screenshot 2024-04-01 at 20 24 14 Screenshot 2024-04-01 at 20 22 44

Steps to reproduce

Edit a .tex file with concealing on.

Expected behavior

Subscript letters to be concealed as a smaller version of that letter.

Actual behavior

Subscript letters concealed as (what I think to be) missing character icons.

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: macOS 14.4.1 (23E224)
  Vim version: NVIM v0.9.5
  Has clientserver: true
  Servername: /var/folders/fl/_5b_cs253mjgl0gc4ptrqg2r0000gn/T/nvim.conner/4pUIm8/nvim.98532.0

VimTeX project: hw09
  base: hw09.tex
  root: /Users/conner/umich/w24/math420/hw09
  tex: /Users/conner/umich/w24/math420/hw09/hw09.tex
  main parser: current file verified
  document class: report
  packages: amsfonts amsmath amssymb amsthm bm booktabs cancel emptypage enumitem etoolbox fancyhdr float fontenc geometry graphicx hyperref import inputenc mathrsfs mathtools mdframed multicol parskip pdfpages pgfplots siunitx stmaryrd subcaption systeme tcolorbox textcomp thmtools tikz tikz-cd todonotes transparent url xcolor xifthen
  source files:
    hw09.tex
    ../preamble.tex
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Skim
  qf method: LaTeX logfile
ConnerRose commented 3 months ago

It seems that concealing works for some letters and not other. For instance, $v_j$ works as expected.

lervag commented 3 months ago

This is most likely a problem with your terminal font. I.e., it seems you are using a font that does not support all the various symbols. Each subscript and superscript symbol is a specific element of the font, so you will want to use a font that has support for a lot of symbols.

lervag commented 3 months ago

This is how things render in my terminal (rxvt-unicode) with the JuliaMono font (https://juliamono.netlify.app/):

image

lervag commented 3 months ago

I've written a little bit about fonts under :help vimtex-syntax-conceal. I believe this should be sufficient input for you to figure things out; if not, then I propose you do some search on how to configure your terminal with different fonts.