KeplerTeX lets you compile LaTeX documents directly inside VS Code - no local TeX installation required. Simply log in, write your LaTeX code, and compile instantly.
- An active internet connection.
- VS Code version: ^1.100.0
- Open a
.texfile in VS Code. - Press
Cmd + K(Mac) orCtrl + K(Windows/Linux). This opens the login page for KeplerTeX. - Once logged in, your LaTeX document will compile automatically and the first PDF preview will appear.
- After the initial login and compile, use:
Cmd + S(Mac) orCtrl + S(Windows/Linux) to trigger subsequent compiles and update the preview.Cmd + K(Mac) orCtrl + K(Windows/Linux) to pause the compiler. Press again to unpause and resume compiling.
Tip: Keep your .tex file open while editing. Each save updates the preview without additional setup.
Create a file named hello.tex and paste the following code:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Hello, World!
This is your first document compiled with KeplerTeX.
Here is a simple equation:
\[
E = mc^2
\]
\end{document}Log in with KeplerTeX (Cmd + K on Mac / Ctrl + K on Windows/Linux).
Save your .tex file (Cmd + S on Mac / Ctrl + S on Windows/Linux). Your first PDF will render instantly.
- Zero local setup - start compiling without installing TeXLive or other LaTeX distributions.
- Seamless workflow - edit, compile, and preview without leaving VS Code.
- Fast PDF rendering - preview your LaTeX output in seconds.
- Free Tier: Each user has a limit of 1000 compilations per day.
- Pro Tier (coming soon): For heavy users, a paid plan will get unlimited compilations and include additional benefits such as faster queue priority.
These limits help us manage infrastructure costs while keeping KeplerTeX accessible to everyone.
- Node.js (v18 or later recommended)
- npm (v9 or later)
- Visual Studio Code
- Clone the repository:
git clone https://github.com/AbeyHurtis/keplertex.git cd keplertex - Install the package dependencies:
npm install
To run the KeplerTeX compilation services locally, you will need to clone and run the backend server.
- Clone the backend repository:
git clone https://github.com/AbeyHurtis/keplertex-backend.git cd keplertex-backend - Follow the setup instructions in the backend repository to configure the environment and run the server.
- Once the local backend server is running, update the server endpoints in
src/compilerService.tsandsrc/loginService.ts(e.g., pointing tohttp://localhost:8000) to test the extension against your local environment.
- To compile the extension:
npm run compile
- To compile and watch for file changes automatically:
npm run watch
- Open the project folder in Visual Studio Code.
- Press
F5(or navigate to the "Run and Debug" view and click "Run Extension") to open a new VS Code window ("Extension Development Host") with KeplerTeX loaded. - Open a
.texfile in the new window. - Use the shortcut
Cmd + K(Mac) orCtrl + K(Windows/Linux) to trigger thekeplertex.startRendercommand and start the rendering process. - Set breakpoints in
src/extension.tsor other source files in the main VS Code window to debug.
The project uses the official VS Code Extension Test Runner (@vscode/test-cli) for testing.
- To run compile checks, linting, and all tests:
npm test - To run tests directly via command line:
npx vscode-test
- To run tests inside VS Code:
- Install the Extension Test Runner extension.
- Run the
watchtask using the Tasks: Run Task command. - Open the Testing view in the sidebar and click Run Test, or use the shortcut
Cmd + ;followed byA(Mac) orCtrl + ;followed byA(Windows/Linux).
To run the linter and check for syntax or style issues:
npm run lintTo package the extension into a .vsix file for distribution or manual installation:
-
Ensure the extension is compiled:
npm run compile
-
Package the extension using
@vscode/vsce:npx @vscode/vsce package
This command will bundle the extension and output a
keplertex-<version>.vsixfile in the root directory. -
Install the generated
.vsixpackage manually in VS Code (optional):- Run the following command in your terminal:
code --install-extension keplertex-<version>.vsix
- Or open the Extensions view in VS Code (
Cmd+Shift+XorCtrl+Shift+X), click the...menu in the top-right corner, select Install from VSIX..., and choose the generated.vsixfile.
- Run the following command in your terminal:
We welcome contributions to improve KeplerTeX.
- Repository: KeplerTeX on GitHub
- To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a clear description of your changes.
If you encounter any issues or have feature requests, please open an issue.
- Initial Release - N/A