Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/realtristan/lat.cli

CLI Tool built with Rust for importing .sty and snippet files from github into your LaTeX project
https://github.com/realtristan/lat.cli

cli github imports latex package rust

Last synced: about 2 months ago
JSON representation

CLI Tool built with Rust for importing .sty and snippet files from github into your LaTeX project

Awesome Lists containing this project

README

        

# lat.cli ![Stars](https://img.shields.io/github/stars/realTristan/lat.cli?color=brightgreen) ![Watchers](https://img.shields.io/github/watchers/realTristan/lat.cli?label=Watchers)
![LaTeX_logo](https://user-images.githubusercontent.com/75189508/207660487-afff32e3-9ac2-474e-b3b2-36572537e272.png)

# About
- lat.cli is a fast and easy-to-use CLI Tool for importing .sty files from github into your project.
- lat.cli makes importing simple. No Urls. Easy Imports. Customizable Shortcuts.
- lat.cli was built with Rust to ensure minimal memory usage and maximum speed.

## Install
### MacOS
```
$ curl https://github.com/realTristan/lat.cli/blob/main/lat?raw=true -o /usr/local/bin/lat
```

### Windows
```
$ mkdir C:\lat.cli
$ curl "https://github.com/realTristan/lat.cli/blob/main/lat.exe?raw=true" -o C:\lat.cli\lat.exe
$ set PATH=%PATH%;C:\lat.cli\lat.exe
```

# Example Import
```
$ cd your_latex_directory

Import Using the Repository:
$ lat -i https://github.com/realTristan/realtristan.sty

Quick Import (github_user)/(repo name):
$ lat -i realTristan/realtristan.sty

Import Using the File Url:
$ lat -i https://github.com/realTristan/realtristan.sty/blob/main/realtristan.sty
```

# Example Shortcuts
```
$ lat -short -new rt realTristan/realtristan.sty
$ lat -i rt

$ lat -short -list
$ lat -short -remove rt
$ lat -short -empty
```

# Making your own import
- To make your own import, create a repository and put your .sty file inside.
- Do not put the .sty file in any folders.
- Do not have more than ONE .sty file inside the repo.

# License
MIT License

Copyright (c) 2022 Tristan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.