Skip to content

Commit

Permalink
fix(latex): address further issues regarding math escaping (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
pitkling authored Jul 15, 2024
1 parent e1f7015 commit d6e7e70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions snippets/latex/vscode-latex-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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."
},
Expand All @@ -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."
},
Expand All @@ -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."
},
Expand All @@ -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."
},
Expand Down

0 comments on commit d6e7e70

Please sign in to comment.