en2tex

Crates.ioen2tex
lib.rsen2tex
version1.0.2
sourcesrc
created_at2023-02-04 18:31:58.056971
updated_at2023-02-05 13:55:15.580469
descriptionA CLI utility to generate LaTeX mathematical expressions, powered by OpenAI APIs
homepagehttps://github.com/neysofu/en2tex
repositoryhttps://github.com/neysofu/en2tex
max_upload_size
id776551
size114,825
Filippo Neysofu Costa (neysofu)

documentation

README

en2tex

A CLI utility to generate LaTeX mathematical expressions, powered by OpenAI APIs.

demo

Installation

cargo install en2tex

You may need to close and reopen your terminal after installation.

Usage

en2tex uses GPT-3. To use it, you'll need to grab an API key from your dashboard, and save it to OPENAI_API_KEY environment variable as follows (I suggest saving it in your shell's profile for persistance between sessions):

export OPENAI_API_KEY='sk-XXXXXXXX'

Once you have configured your environment, run en2tex followed by whatever mathematical expression that you want.

To get a full overview of all available options, run en2tex --help

A CLI utility to generate LaTeX mathematical expressions, powered by OpenAI APIs

Usage: en2tex [OPTIONS] [PROMPT]...

Arguments:
  [PROMPT]...  Description of the desired LaTeX output. You can use English words, abbreviations, or any notation resembling LaTeX commands and AsciiMath

Options:
  -m, --model <MODEL>  Which OpenAI model to use [default: text-davinci-003]
  -c, --copy           Copy the generated LaTeX without asking for confirmation first
  -h, --help           Print help information
  -V, --version        Print version information

Acknowledgements

This repository is a fork of https://github.com/m1guelpf/plz-cli, which inspired en2tex. The original code was simple enough for me to seamlessly adapt it to LaTeX. Thank you to the original authors!

License

This project is open-sourced under the MIT license. See the License file for more information.

Commit count: 28

cargo fmt