Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/realtristan/lat.cli
- Owner: realTristan
- License: mit
- Created: 2022-12-14T16:03:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-15T00:45:24.000Z (over 1 year ago)
- Last Synced: 2023-10-16T05:57:23.721Z (over 1 year ago)
- Topics: cli, github, imports, latex, package, rust
- Language: Rust
- Homepage: https://realtristan.github.io/lat.cli/
- Size: 33.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_directoryImport Using the Repository:
$ lat -i https://github.com/realTristan/realtristan.styQuick Import (github_user)/(repo name):
$ lat -i realTristan/realtristan.styImport 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 LicenseCopyright (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.