2

In vscode, I would like to type something like \scrK to get . There is a Unicode Latex plugin but it takes several extra keystrokes. What would be the easiest way to accomplish this?

Thanks!

(I'm using the LaTeX workshop plugin)

JPi
  • 13,595

2 Answers2

3

One way is to use snippets.

Press Command + Shift + P and enter snippets

Choose latex

"calligraphic K": {
    "prefix": "\\scrK",
    "body": "",
    "description": "insert unicode character U1D4A6"
},

Afterward, the file should look like this

I am on mac, but that shouldn't matter.

Symbol 1
  • 36,855
1

If latex is not listed under the Unicode-latex:Extensions then the unicode command functionality that the unicode-latex extension offers does not work in the LaTeX Workshop extension without extra keystrokes. So all I had to do was to add the line latex under the extensions.

With thanks to @UlrikeFischer and @dexteritas for their comments.

enter image description here

JPi
  • 13,595