showyourwork / showyourwork

A workflow for reproducible and open scientific articles

Home Page:https://show-your.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for latexindent and VSCode Latex Workshop formatting

HealthyPear opened this issue · comments

I noticed that VSCode is supported and I tested successfully the instructions reported in the docs

I can't make the formatter work, though.

It is based on latexindent which I know can be installed from conda-forge, but it fails because it can't find a YAML module called Tiny

`[16:09:01][Format][TeX] stderr: Can't locate YAML/Tiny.pm in @inc (you may need to install the YAML::Tiny module)``

As far as I remember I could make this work normally with TexLive.

Did anyone manage to use this here?

Also, note tectonic-typesetting/tectonic#964

OK, I managed to "solve" this easily because when I am launching showyourwork build I am actually in a showyourwork conda environment from which I launch VSCode with code . inside the article's directory.

In this global environment, I did mamba install -c conda-forge latexindent.pl perl-yaml-tinyand VSCode catched it.

Maybe we should update the instructions (which I was very happy to see!) ?