From d6e7e70e3d4c90a2581a5005889bdce100ece53b Mon Sep 17 00:00:00 2001 From: Peter Kling Date: Mon, 15 Jul 2024 02:35:22 +0200 Subject: [PATCH] fix(latex): address further issues regarding math escaping (#476) --- snippets/latex/vscode-latex-snippets.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/snippets/latex/vscode-latex-snippets.json b/snippets/latex/vscode-latex-snippets.json index 00db3679..99594027 100644 --- a/snippets/latex/vscode-latex-snippets.json +++ b/snippets/latex/vscode-latex-snippets.json @@ -224,7 +224,7 @@ "\tcolor=${3:blue},", "\t]", "\t{${4:x^2 + 2*x + 1}};", - "\\addlegendentry{$${5:x^2 + 2x + 1}$}", + "\\addlegendentry{\\$${5:x^2 + 2x + 1}\\$}", "$0" ], "description": "Plot a 2D Graph in the 2D graph environment, noted that this can also be used in the 3D environment." @@ -238,7 +238,7 @@ "\tcolor=${4:blue},", "\t]", "\t({${1:r}*cos(t)+${2:a}},{${1:r}*sin(t)+${3:b}});", - "\\addlegendentry{$(x-${2:a})^2+(y-${3:b})^2=${1:r}^2$}$0" + "\\addlegendentry{\\$(x-${2:a})^2+(y-${3:b})^2=${1:r}^2\\$}$0" ], "description": "Plot a 2D Circle in the 2D graph environment, noted that this can also be used in the 3D environment." }, @@ -251,7 +251,7 @@ "\tcolor=${3:blue},", "\t]", "\t{${1:a}*x+${2:b}};", - "\\addlegendentry{$ y=${1:a}x+${2:b}$}$0" + "\\addlegendentry{\\$ y=${1:a}x+${2:b}\\$}$0" ], "description": "Plot a 2D Line in the 2D graph environment, noted that this can also be used in the 3D environment." }, @@ -264,7 +264,7 @@ "\tcolor=${5:blue},", "\t]", "\t({${1:a}*cos(t)+${3:x}},{${2:b}*sin(t)+${4:y}});", - "\\addlegendentry{$\\frac{(x-${3:x})^2}{${1:a}^2}+\\frac{(y-${4:y})^2}{${2:b}^2}=1$}$0" + "\\addlegendentry{\\$\\frac{(x-${3:x})^2}{${1:a}^2}+\\frac{(y-${4:y})^2}{${2:b}^2}=1\\$}$0" ], "description": "Plot a 2D Ellipse in the 2D graph environment, noted that this can also be used in the 3D environment." }, @@ -280,7 +280,7 @@ "\tcolor=${6:blue},", "\t]", "\t{${1:a}*(x-${2:m})*(x-${2:m})+${3:b}};", - "\\addlegendentry{$ y=${1:a}(x-${2:m})^2+${3:b}$}$0" + "\\addlegendentry{\\$ y=${1:a}(x-${2:m})^2+${3:b}\\$}$0" ], "description": "Plot a 2D graph of a quadratic function in the 2D graph environment by the given extrema, noted that this can also be used in the 3D environment." },