Noamko / QuickLaTeX

A Raycast extension for quickly creating latex formulas
3 stars 0 forks source link

Add optional AI command #3

Open marcjulianschwarz opened 1 year ago

marcjulianschwarz commented 1 year ago

A short demo of how an AI command might look like in QuickLaTeX:

https://github.com/Noamko/QuickLaTeX/assets/67844154/e5f1254e-b1cd-4ce4-9bbc-77eb7140bd91

My current prompt looks like this:

Give the LaTeX syntax for a user input. Make sure that your answer is only the LaTeX syntax and no other explaining text or symbols.

For example:
User Input: truth symbol logic
Your Answer: \top

User Input: logical and
Your Answer: \land

User Input: "{argument}"
Your Answer:

Should be quite easy to implement and would 10x this command.

marcjulianschwarz commented 1 year ago

This is what I came up with.

https://github.com/Noamko/QuickLaTeX/assets/67844154/17d9aadc-f3c3-4db9-af9c-f020afb0e26e

Noamko commented 1 year ago

Cool Idea! Need to experiment with long prompts to see how will it blend -> If chatGPT or any other model for that matter are will create good results, and implementing it with a nice looking ui. Also to make sure it will not pop out unsupported syntax for https://latex.codecogs.com/