nvarner / typst-lsp

A brand-new language server for Typst, plus a VS Code extension
MIT License
1.19k stars 77 forks source link

Supplement parameter in figure isn't working #88

Closed Osares10 closed 1 year ago

Osares10 commented 1 year ago

Issue

I'm trying to change the supplement parameter to use the word "figure" in my language, but the problem "unexpected argument" keeps appearing.

The following code works as intended in the web version, but not in the VS code extension:

@ema 

#figure(
    image("ema.jpg", width: 50%),
    caption: [Diagrama de una EMA (SMN).],
    supplement: [Figura],
)<ema>

Web version

Code: image

Result: Screenshot 2023-04-15 at 14-34-30 Investigación desarrollo y análisis de un sistema de observación meteorológica automático – Typst

VS code extension

Code: image

nvarner commented 1 year ago

The extension was using an out-of-date version of Typst. It has just been updated, so this should be fixed now. Please reopen the issue if it is not.