-
Notifications
You must be signed in to change notification settings - Fork 18
880 feature request add new features for latex to word #891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
880 feature request add new features for latex to word #891
Conversation
…ns, subsections, and tables; improve parsing logic for text formatting.
…er and add ReportToWordConverter with enhanced features and tests
…tent and formatting methods
…thod outputs in Formula class
…t, enhancing report representation with structured properties.
… enumerated lists in LaTeX to Word conversion
… and documentation
…port-for-checks' into 880-feature-request-add-new-features-for-latex-to-word
…port-for-checks' into 880-feature-request-add-new-features-for-latex-to-word
…aTeX content creation
…dd-new-features-for-latex-to-word
…x document generation - Replaced hardcoded complex LaTeX string with dynamic report generation using LatexReport class. - Added various sections, subsections, text formatting, equations, enumerations, itemizations, and a table to the test. - Included an image in the report to enhance testing of document conversion.
…ordConverter class
…ation - Introduced _replace_section_commands method to handle \section, \subsection, \subsubsection, and \title commands. - Updated _check_decimal_separator to account for figure blocks. - Enhanced _translate_latex to translate section commands and integrate with existing text translations. - Modified to_document and to_word methods in LatexReport to accept language parameter for localization. - Adjusted tests to validate new language features and document conversion.
… in LaTeX translation
…or figure, title, section, and table translations
… for itemize and enumerate translations
…d inline math, ensuring periods are replaced with commas while preserving \tag{} content. Update tests to reflect changes in LaTeX translation behavior.
…in _replace_table_cells method
|
Thank you so much for contributing to Blueprints! Now that you've created your pull request, please don't go away; take a look at the bottom of this page for the automated checks that should already be running. If they pass, great! If not, please click on 'Details' and see if you can fix the problem they've identified. A maintainer should be along shortly to review your pull request and help get it added! |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive Word document conversion capabilities to the LaTeX reporting system, enabling reports to be exported directly to Word format with proper formatting, translation support, and handling of complex document structures.
- Introduces
ReportToWordConverterclass with full support for LaTeX document elements (sections, equations, tables, figures, lists) - Extends translation functionality to support sections, captions, list items, and table cells
- Adds
to_word()method toLatexReportfor direct Word document export with language localization
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| blueprints/utils/report_to_word.py | New converter implementing comprehensive LaTeX-to-Word conversion with support for equations, tables, figures, and nested lists |
| blueprints/utils/report.py | Added to_word() method and language parameter to to_document() for translation support |
| blueprints/language/translate.py | Enhanced translation to handle sections, captions, list items, and table cells; improved decimal separator logic for equation contexts |
| tests/utils/test_report_to_word.py | New comprehensive test suite covering document conversion scenarios |
| tests/language/test_translate.py | Extended translation tests for new LaTeX element types |
| docs/guides/concepts/formulas.md | Updated documentation describing formula representation modes |
| tests/test_latex_to_word_document.py | Removed legacy converter tests |
| blueprints/latex_to_word_document.py | Removed legacy converter implementation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…removing redundant information about check generation and method outputs.
Co-authored-by: Copilot <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #891 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 403 403
Lines 12763 13219 +456
==========================================
+ Hits 12763 13219 +456 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…APH_ALIGNMENT constants for improved readability and consistency.
…ing for improved type safety
… replacements before text commands
…ext{} commands while replacing plain text content
Description
Do this one first
add new features for latex to word
Fixes #880
Type of change
Please delete options that are not relevant.
Checklist: