This project contains a LaTeX report generator and a Python GUI application for generating technical reports. The application allows users to select sections of a LaTeX document and generate customized PDF reports.
- Interactive GUI for LaTeX document manipulation
- Section-wise selection and preview
- Custom header with project details
- Automatic PDF generation
- Support for mathematical equations and technical content
- Professional formatting with tables and figures
.
├── report.py # Main Python GUI application
├── FOSSEE_SUMMER_FELLOWSHIP_SAMPLE_TEX.tex # LaTeX template file
└── README.md # Project documentation
- PyQt5
- sys
- re
- os
- tempfile
- subprocess
- LaTeX distribution (TeX Live recommended)
- Python 3.6 or higher
- PDF viewer
-
Install the required LaTeX distribution:
sudo apt-get install texlive-full
-
Install Python dependencies:
pip install PyQt5
-
Run the GUI application:
python report.py
-
Using the application:
- Click "Open .tex File" to load a LaTeX document
- Select/deselect sections using checkboxes
- Preview selected content in the right panel
- Click "Generate PDF" to create the final report
- Section Selection: Easily select or deselect sections to include in the final report
- Live Preview: Preview selected sections before generating the PDF
- Progress Tracking: Progress bar for PDF generation
- Error Handling: Comprehensive error messages and logging
- Custom Header: Professional header with project details
- Flexible Layout: Resizable split view for better usability
- Professional document structure
- Support for tables and figures
- Mathematical equation support
- Custom color definitions
- Header and footer customization
- Multi-page table support
- Cross-referencing
Common issues and solutions:
-
PDF Generation Fails:
- Ensure all LaTeX packages are installed
- Check LaTeX syntax in the template
- Verify file permissions
-
GUI Not Launching:
- Verify PyQt5 installation
- Check Python version compatibility
- Ensure all dependencies are met
-
Missing Fonts:
- Install the Latin Modern fonts package
- Verify the LaTeX distribution installation
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.