Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli #85

Open
MarcelSchaible opened this issue Feb 21, 2024 · 1 comment
Open

cli #85

MarcelSchaible opened this issue Feb 21, 2024 · 1 comment

Comments

@MarcelSchaible
Copy link

Hi,

this project looks promising and can solve a problem I am facing since years now. I am building proceedings for my department and the authors often deliver funny latex files.

But how can I run for e.g. the linter from a shell? Since I am a npm newbie any help is appreciated.

Thanks

Marcel

@siefkenj
Copy link
Owner

If you want to use unified-latex-cli, do npm install -g @unified-latex/unified-latex-cli. Then you can run npx unified-latex -h, or if it is in your path, just unified-latex.

The CLI has basic linting and formatting capabilities. If you need something more custom, you will have to write your own node script. You can look in the examples folder for some example usage of the unified-latex libraries. You can glue them together with a node script that reads file input, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants