The AI LaTeX Helper is a VS Code extension that turns plain English descriptions of math into LaTeX equations using Google Generative AI. Perfect for students, researchers, and writers, it simplifies creating LaTeX without needing to remember the syntax.
To use the AI LaTeX Helper, follow these steps:
- Obtain a Google Cloud API key from Google AI Studio.
- Open the command palette (Ctrl+Shift+P) and run "abd-dev: Set Gemini API Key" to securely set your API key.
- Ensure you are inside
$...$
in Markdown files or Markdown cells in Jupyter notebooks to receive LaTeX equation suggestions.
- Markdown Support: Works with Markdown files as markdown cells in ipython notebooks.
- Real-Time LaTeX Suggestions: As you type, the extension provides instant LaTeX suggestions for mathematical expressions.
- Intelligent AI-Powered Conversion: Uses Google's Generative AI to accurately convert natural language into LaTeX.
- Inline Suggestions: Displays LaTeX suggestions in a small dropdown menu, allowing you to quickly insert equations just by pressing tab or enter.
- Customizable Debounce Delay: Adjust the delay for real-time suggestions to suit your typing speed.
- A stable internet connection is required to use the AI LaTeX Helper extension.
- You must have a Google Cloud API key to use the extension. You can get one at Google AI Studio.
abd-dev.geminiApiKey
: API key for Google Generative AI (set through command palette)abd-dev.geminiModel
: Model to use for code generationai-latex-helper.debounceDelay
: Delay in milliseconds before triggering LaTeX suggestionsai-latex-helper.enabled
: Enable or disable LaTeX AI suggestions
To access the commands, press Ctrl+Shift+P
(Windows/Linux) or Cmd+Shift+P
(Mac) to open the command palette and type:
- Set Gemini API Key:
abd-dev: Set Gemini API Key
- Convert Selection to LaTeX:
ai-latex-helper.convertToLaTeX
- Toggle LaTeX AI Suggestions:
ai-latex-helper.toggleAILaTeXHelper
- Convert Selection to LaTeX:
Ctrl+Alt+L
(Windows/Linux),Cmd+Alt+L
(Mac) - Toggle LaTeX AI Suggestions:
Ctrl+Alt+T
(Windows/Linux),Cmd+Alt+T
(Mac)
If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on GitHub.
The source code for this extension is available on GitHub.