Math equation does not render on screen (but ok in pdf, html)

Hi everybody,

I am experiencing an issue where a Quarto document does not render equations on the viewer screen, although it works correctly when rendered to PDF or HTML. Previously, the document rendered without problems. Additionally, if I switch to a different working directory, the document renders fine in the viewer. I think I might change some settings that interferes with Quarto. Could somebody help?

Can you post a minimal example here?

Within the problematic working directory, If I create a new quarto document (which has the Quarto and Running Code paragraphs) and add N after the header, it will be replaced by blank (i.e. did not render N) but will show up in the pdf/html file. In other working directory, it is not a problem.

Ha

The N disappears before you save the file (meaning before it has an associated file name)? I'm wondering if there might be any associated files already sitting in the directory causing a problem (meaning that if the new file is x.qmd, there might be x.some_extension files already there). Also, when you say that it works if you switch working directories, you mean that switching directory and then creating new file works (as opposed to creating new file in problem directory and then switching that file to a different directory)?

So here is a recap of the problem:

  1. In the working directory A, I create a new quarto file and type N and a space at the section title Quarto.
  2. The N disappears on the screen
  3. When I render the file, I got Quarto N as expected.
  4. I save the file, switch to a working directory B, re-open the file, the Quarto N is on the screen as expected.

Not sure what I did wrong with working directory A to trigger that problem.

If you create the file in directory B, the N displays correctly from the outset (without any directory changes)?

You can try resetting RStudio's state, but that's a shot in the dark. Otherwise, if the problem is limited to a specific directory (A), you might try looking for a file (maybe a hidden file) that might contain settings screwing up RStudio.