Skip to content

Dumbo-programmer/Latex-code-generator

Repository files navigation

LaTeX Code Generator

Welcome to the LaTeX Code Generator! This tool provides a user-friendly interface for creating and previewing LaTeX code, making it easier for you to generate high-quality documents, mathematical formulas, tables, and more.

Features

Interactive LaTeX Editor: Easily input your LaTeX code in a dedicated editor area with a dark theme that’s easy on the eyes. Tabbed Interface: Switch between different tabs for common LaTeX objects and mathematical symbols. The "Objects" tab includes options for inserting images and tables, while the "Math" tab provides quick access to mathematical symbols, trig functions, and more. Generate and Preview: Instantly generate a preview of your LaTeX code to see how it will appear when rendered.

Res:

Gen https://github.com/Dumbo-programmer/Latex-code-generator/blob/main/Recording.mp4

Save Your Work: Save your LaTeX code as a .tex file directly from the application, making it easy to continue working on your projects later.

Scrollable Preview: The preview section includes scrollbars, allowing you to comfortably view even large or complex LaTeX code.

Getting Started

Prerequisites

Python 3.7+ pip for installing dependencies

Installation

Clone the repository:

bash
git clone https://github.com/yourusername/latex-code-generator.git
cd latex-code-generator

Install the required Python packages:

bash
pip install -r requirements.txt

Run the application:

bash
python latex_generator.py

Usage

Input Area: Type or paste your LaTeX code into the main input area at the top. Tabs: Use the "Objects" and "Math" tabs to quickly insert commonly used LaTeX commands. Just click the buttons to insert the corresponding LaTeX code into your input area. Generate Preview: Click the "Generate Preview" button to see how your LaTeX code will look when rendered. Save Your Work: Click "Save .tex" to save your LaTeX code as a .tex file. Choose your preferred location and filename. Examples Here are a few things you can do with this tool:

Insert an Image:

Click on "Image" in the "Objects" tab, and it will insert the code \\includegraphics[width=\\linewidth]{image.png} where you can replace image.png with your file.
Create a Table:
Use the "Table" button in the "Objects" tab to quickly create a basic table structure.
Insert Mathematical Symbols:
Switch to the "Math" tab and click on symbols like \\alpha, \\beta, or functions like \\sin, \\cos to add them to your code.

Contributing

We welcome contributions to improve this tool! If you have ideas for new features or find any bugs, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published