You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LaTeX commands in equations replaced when switching to visual mode #15468
RStudio Edition : Desktop
RStudio Version : RStudio 2024.09.1+394 "Cranberry Hibiscus" Release
OS Version : Windows 10
R Version : R version 4.4.1 (2024-06-14 ucrt)
Steps to reproduce the problem
Create a .qmd document with the following content:
\newcommand{\abc}{\mathbb{abc}}
$$\abc$$
Change to visual mode.
Describe the problem in detail
The equation is replaced by:
$$\mathbb{abc}$$
Commands can help make equations shorter and also help make it easier to modify formatting everywhere the command was used. This behaviour negates these benefits.
Describe the behavior you expected
Changing to visual mode should leave the equation as:
Activity
gtritchie commentedon Jan 23, 2025
Repro Notes
This reproduced for me in all versions I tried, back to 2022.12.0+353.