rxiv-maker 1.16.7__tar.gz → 1.16.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/CHANGELOG.md +45 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/PKG-INFO +1 -1
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/__version__.py +1 -1
- rxiv_maker-1.16.8/src/rxiv_maker/cli/commands/docx.py +177 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/dependency_manager.py +12 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/exporters/docx_exporter.py +100 -3
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/exporters/docx_writer.py +38 -3
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/bst_generator.py +27 -7
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/docx_helpers.py +23 -2
- rxiv_maker-1.16.8/tests/unit/test_bst_generator.py +132 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_dependency_package_names.py +37 -0
- rxiv_maker-1.16.8/tests/unit/test_docx_doi_resolution.py +248 -0
- rxiv_maker-1.16.7/src/rxiv_maker/cli/commands/docx.py +0 -103
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/.gitignore +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/LICENSE +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/README.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/pyproject.toml +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/docs/api/README.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/docs/api/index.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/logo/logo-rxiv-maker.afdesign +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/logo/logo-rxiv-maker.png +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/logo/logo-rxiv-maker.svg +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/__main__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/arxiv.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/bibliography.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/build.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/cache_management.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/changelog.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/check_installation.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/clean.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/completion.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/config.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/create_repo.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/figures.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/get_rxiv_preprint.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/init.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/install_deps.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/repo_init.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/repos.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/repos_search.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/setup.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/track_changes.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/upgrade.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/validate.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/commands/version.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/base.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/cache_commands.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/config_commands.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/content_commands.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/decorators.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/utility_commands.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework/workflow_commands.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/framework.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/interactive.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/interactive_prompts.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/cli/main.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/config/defaults.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/config/validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/citation_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/code_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/comment_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/custom_command_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/figure_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/html_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/list_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/math_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/md2tex.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/python_executor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/section_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/supplementary_note_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/table_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/text_formatters.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/types.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/converters/url_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/cache/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/cache/advanced_cache.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/cache/bibliography_cache.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/cache/cache_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/cache/doi_cache.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/cache/secure_cache_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/content_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/environment_bootstrap.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/environment_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/error_codes.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/error_recovery.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/logging_config.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/cache_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/config_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/execution_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/file_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/install_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/state_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/unified_config_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/validation_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/managers/workflow_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/path_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/progress_framework.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/repo_config.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/repository.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/session_optimizer.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/core/validation_framework.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/data/tips.yaml +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/add_bibliography.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/build_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/cleanup.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/fix_bibliography.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/generate_docs.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/generate_figures.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/generate_preprint.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/prepare_arxiv.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/setup_environment.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/track_changes.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/validate.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/engines/operations/validate_pdf.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/exporters/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/exporters/docx_citation_mapper.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/exporters/docx_content_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/dependency_handlers/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/dependency_handlers/latex.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/dependency_handlers/r_lang.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/dependency_handlers/system_libs.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/platform_installers/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/platform_installers/base.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/platform_installers/linux.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/platform_installers/macos.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/platform_installers/windows.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/utils/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/utils/logging.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/utils/progress.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/install/utils/verification.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/manuscript_utils/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/manuscript_utils/figure_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/processors/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/processors/author_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/processors/markdown_preprocessor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/processors/template_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/processors/yaml_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/rxiv_maker_cli.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/scripts/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/scripts/custom_doc_generator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/scripts/validate_manuscript.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/services/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/services/base.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/services/build_service.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/services/configuration_service.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/services/manuscript_service.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/services/publication_service.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/services/validation_service.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/templates/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/templates/manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/templates/registry.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/tex/python_execution_section.tex +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/author_name_formatter.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/bibliography_checksum.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/bibliography_parser.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/changelog_parser.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/citation_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/dependency_checker.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/doi_resolver.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/email_encoder.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/figure_checksum.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/file_helpers.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/github.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/homebrew_checker.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/install_detector.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/operation_ids.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/pdf_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/performance.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/platform.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/python_execution_reporter.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/retry.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/rich_upgrade_notifier.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/text_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/tips.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/title_sync.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/unicode_safe.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/update_checker.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/utils/url_to_doi.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validate.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/base_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/citation_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/doi/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/doi/api_clients.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/doi/metadata_comparator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/doi_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/figure_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/latex_error_parser.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/math_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/pdf_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/reference_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/rxiv_maker/validators/syntax_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/tex/style/rxiv_maker_style.bst +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/tex/style/rxiv_maker_style.cls +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/src/tex/template.tex +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/cli/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/cli/test_build.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/cli/test_changelog_command.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/cli/test_init_command.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/cli/test_main.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/conftest.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/e2e/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/e2e/test_dummy_manuscript_generator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/e2e/test_figure_workflow_validation.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/00_CONFIG.yml +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/01_MAIN.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/03_REFERENCES.bib +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/FIGURES/Fig1.png +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/FIGURES/Fig2.png +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/FIGURES/Fig3.png +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/README.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/docx_export/sample_manuscript/01_MAIN.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/docx_export/sample_manuscript/02_SUPPLEMENTARY_INFO.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/docx_export/sample_manuscript/03_REFERENCES.bib +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/docx_export/sample_manuscript/2025__unknown_et_al__rxiv.docx +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/fixtures/docx_export/sample_manuscript/sample_manuscript.docx +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_article_generation.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_bibliography_author_format_docx.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_binary_distribution.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_centralized_components.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_citation_injection.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_comment_system_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_docx_export_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_doi_fallback_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_doi_validation_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_example_manuscript.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_guillaume_fixtures.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_homebrew_workflow_validation.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_infrastructure_suite.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_init_build_workflow.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_install_verification_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_latex_dependency_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_manuscript_directory_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_manuscript_python_execution_reporting.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_practical_manuscript_workflows.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_pypi_package_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_python_execution_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_repository_cli_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_supplementary_formatting.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_user_reported_issue.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/integration/test_validation_workflow.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/README.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/conftest.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_cli_argument_parsing.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_discord_reported_issues.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_error_message_quality.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_google_colab_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_guillaume_edge_cases.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_guillaume_pr131_rewrite.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_path_resolution.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_widget_author_behavior.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/regression/test_widget_interactions_playwright.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/smoke/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/smoke/test_basic_functionality.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/smoke/test_cli_smoke.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/system/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/system/test_ci_matrix.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/system/test_cli_workflows.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/system/test_end_to_end.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/test_homebrew_checker.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/test_install_detector.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/exporters/__init__.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/exporters/test_docx_citation_mapper.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/exporters/test_docx_content_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_add_bibliography.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_arxiv_command.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_async_execution_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_author_name_formatter.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_author_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_build_command.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_build_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_build_manager_manuscript_path.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_cache_security.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_cache_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_check_installation_command.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_citation_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_citation_rendering.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_citation_style.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_citation_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_cli_cleanup_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_cli_structure.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_comment_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_conda_installation_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_conda_platform_detection.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_cross_platform_optimizations.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_custom_command_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_dependency_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_docx_helpers.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_doi_fallback_system.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_doi_resolver.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_doi_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_email_encoder.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_environment_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_error_handling_scenarios.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_execution_manager_comprehensive.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_figure_generator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_figure_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_figure_processor_error_handling.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_file_helpers.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_fix_bibliography.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_generate_docs.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_generate_preprint.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_github.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_github_actions_integration.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_importlib_edge_cases.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_install_platform_installers.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_install_system_libs.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_install_verification.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_interactive_path_change.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_interactive_validators.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_latex_dependency_handler.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_manuscript_figure_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_manuscript_repository.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_math_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_md2tex.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_mermaid_fallback.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_path_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_pdf_validator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_platform_comprehensive.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_platform_detector.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_processor_suite.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_python_execution_reporter.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_python_executor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_release_orchestrator.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_repository_manager.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_rich_upgrade_notifier.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_rxiv_setup_command.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_security_features.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_security_scanner.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_setup_environment.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_style_file_resolution.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_supplementary_note_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_table_rotation.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_template_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_text_formatters.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_text_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_tips.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_title_sync.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_title_sync_validation.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_track_changes.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_trailing_slash_regression.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_upgrade_command.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_url_to_doi.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_utils.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_validate_backticks.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_validate_command_fixed.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_validate_manuscript.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_validation_suite.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_validators.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/unit/test_yaml_processor.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/README.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/00_CONFIG.yml +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/01_MAIN.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/03_REFERENCES.bib +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/FIGURES/Figure__positioning_test.png +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/FIGURES/Figure__positioning_test.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/FIGURES/ReadyFig.png +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/FIGURES/ReadyFig.py +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/figure-positioning/README.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/methods-placement/00_CONFIG.yml +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/methods-placement/01_MAIN.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/methods-placement/02_SUPPLEMENTARY_INFO.md +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/methods-placement/03_REFERENCES.bib +0 -0
- {rxiv_maker-1.16.7 → rxiv_maker-1.16.8}/tests/visual/methods-placement/README.md +0 -0
|
@@ -7,6 +7,51 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.16.8] - 2025-12-19
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Automatic Poppler Installation**: Interactive installation prompt for DOCX export on macOS
|
|
15
|
+
- Detects missing poppler utilities when exporting to DOCX with PDF figures
|
|
16
|
+
- Offers automatic installation via Homebrew with user confirmation
|
|
17
|
+
- Shows clear installation instructions for Linux (apt) and other platforms
|
|
18
|
+
- Gracefully falls back to placeholders when poppler unavailable
|
|
19
|
+
- **DOI Resolution Implementation**: `--resolve-dois` flag now fully functional for DOCX export
|
|
20
|
+
- Resolves missing DOIs using CrossRef API with intelligent title matching
|
|
21
|
+
- Cleans LaTeX commands from titles for accurate search results
|
|
22
|
+
- Validates matches using year information when available
|
|
23
|
+
- Handles network failures and timeouts gracefully
|
|
24
|
+
- Logs resolved DOIs for transparency
|
|
25
|
+
- **Poppler Dependency Tracking**: Registered poppler in DependencyManager
|
|
26
|
+
- Added as system binary dependency with alternatives (pdftoppm, pdfinfo)
|
|
27
|
+
- Included in `rxiv check-installation` output
|
|
28
|
+
- Provides platform-specific installation hints
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **BST File Regex Bug**: Corrected bibliography style file generation to only modify `format.names`
|
|
33
|
+
- Previous regex matched both `format.names` and `format.full.names` functions
|
|
34
|
+
- Now specifically targets only `format.names` function using DOTALL flag
|
|
35
|
+
- Prevents corruption of citation labels in natbib
|
|
36
|
+
- Eliminates warning: "Found 2 format string patterns in .bst file"
|
|
37
|
+
- Raises error if unexpected matches found (defensive programming)
|
|
38
|
+
- **PDF to Image Conversion**: Improved error handling for missing poppler utilities
|
|
39
|
+
- Distinguishes between poppler not installed, corrupted PDFs, and other errors
|
|
40
|
+
- Uses proper logging instead of print statements
|
|
41
|
+
- Re-raises poppler errors to allow CLI to offer installation
|
|
42
|
+
- Provides specific error messages for different failure types
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- **DOCX Export Experience**: Enhanced PDF figure embedding workflow
|
|
47
|
+
- Pre-flight check detects poppler availability before attempting conversion
|
|
48
|
+
- Caches poppler status to avoid repeated checks
|
|
49
|
+
- Shows helpful warnings with installation instructions
|
|
50
|
+
- PDF figures embed correctly when poppler is installed
|
|
51
|
+
- **Homebrew Formula**: Added poppler as dependency
|
|
52
|
+
- Users installing via `brew install rxiv-maker` now get poppler automatically
|
|
53
|
+
- Ensures DOCX export works out of the box for Homebrew users
|
|
54
|
+
|
|
10
55
|
## [1.16.7] - 2025-12-18
|
|
11
56
|
|
|
12
57
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rxiv-maker
|
|
3
|
-
Version: 1.16.
|
|
3
|
+
Version: 1.16.8
|
|
4
4
|
Summary: Write scientific preprints in Markdown. Generate publication-ready PDFs efficiently.
|
|
5
5
|
Project-URL: Homepage, https://github.com/HenriquesLab/rxiv-maker
|
|
6
6
|
Project-URL: Documentation, https://github.com/HenriquesLab/rxiv-maker#readme
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"""DOCX export command for rxiv-maker CLI."""
|
|
2
|
+
|
|
3
|
+
import platform
|
|
4
|
+
import shutil
|
|
5
|
+
import subprocess
|
|
6
|
+
|
|
7
|
+
import rich_click as click
|
|
8
|
+
from rich.console import Console
|
|
9
|
+
|
|
10
|
+
from ...core.logging_config import get_logger
|
|
11
|
+
from ...core.managers.dependency_manager import DependencyStatus, get_dependency_manager
|
|
12
|
+
from ...exporters.docx_exporter import DocxExporter
|
|
13
|
+
|
|
14
|
+
logger = get_logger()
|
|
15
|
+
console = Console()
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _check_and_offer_poppler_installation(console: Console, quiet: bool, verbose: bool) -> None:
|
|
19
|
+
"""Check poppler availability and offer automatic installation via brew.
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
console: Rich console for output
|
|
23
|
+
quiet: Whether to suppress output
|
|
24
|
+
verbose: Whether verbose mode is enabled
|
|
25
|
+
"""
|
|
26
|
+
# Check if poppler is installed
|
|
27
|
+
manager = get_dependency_manager()
|
|
28
|
+
result = manager.check_dependency("pdftoppm")
|
|
29
|
+
|
|
30
|
+
if result.status == DependencyStatus.AVAILABLE:
|
|
31
|
+
if verbose:
|
|
32
|
+
console.print("[dim]✓ Poppler utilities available[/dim]")
|
|
33
|
+
return
|
|
34
|
+
|
|
35
|
+
# Poppler is missing - offer to install
|
|
36
|
+
system = platform.system()
|
|
37
|
+
|
|
38
|
+
if system == "Darwin" and shutil.which("brew"):
|
|
39
|
+
# macOS with Homebrew
|
|
40
|
+
if not quiet:
|
|
41
|
+
console.print("[yellow]⚠️ Poppler not found[/yellow]")
|
|
42
|
+
console.print(" Poppler is needed to embed PDF figures in DOCX files.")
|
|
43
|
+
console.print(" Without it, PDF figures will appear as placeholders.")
|
|
44
|
+
console.print()
|
|
45
|
+
|
|
46
|
+
if click.confirm(" Would you like to install poppler now via Homebrew?", default=True):
|
|
47
|
+
console.print("[cyan]Installing poppler...[/cyan]")
|
|
48
|
+
try:
|
|
49
|
+
result = subprocess.run(
|
|
50
|
+
["brew", "install", "poppler"],
|
|
51
|
+
capture_output=True,
|
|
52
|
+
text=True,
|
|
53
|
+
timeout=300,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
if result.returncode == 0:
|
|
57
|
+
console.print("[green]✅ Poppler installed successfully![/green]")
|
|
58
|
+
# Clear dependency cache so it gets re-checked
|
|
59
|
+
manager.clear_cache()
|
|
60
|
+
else:
|
|
61
|
+
console.print(f"[red]❌ Installation failed:[/red] {result.stderr}")
|
|
62
|
+
console.print(" You can install manually with: brew install poppler")
|
|
63
|
+
except subprocess.TimeoutExpired:
|
|
64
|
+
console.print("[red]❌ Installation timed out[/red]")
|
|
65
|
+
except Exception as e:
|
|
66
|
+
console.print(f"[red]❌ Installation error:[/red] {e}")
|
|
67
|
+
else:
|
|
68
|
+
console.print(" [dim]Skipping poppler installation. PDF figures will show as placeholders.[/dim]")
|
|
69
|
+
|
|
70
|
+
elif system == "Linux":
|
|
71
|
+
# Linux
|
|
72
|
+
if not quiet:
|
|
73
|
+
console.print("[yellow]⚠️ Poppler not found[/yellow]")
|
|
74
|
+
console.print(" Install with: sudo apt install poppler-utils")
|
|
75
|
+
console.print()
|
|
76
|
+
else:
|
|
77
|
+
# Other platforms or brew not available
|
|
78
|
+
if not quiet:
|
|
79
|
+
console.print("[yellow]⚠️ Poppler not found[/yellow]")
|
|
80
|
+
console.print(f" Install instructions: {result.resolution_hint}")
|
|
81
|
+
console.print()
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@click.command(context_settings={"help_option_names": ["-h", "--help"]})
|
|
85
|
+
@click.argument(
|
|
86
|
+
"manuscript_path",
|
|
87
|
+
type=click.Path(exists=True, file_okay=False),
|
|
88
|
+
required=False,
|
|
89
|
+
metavar="[MANUSCRIPT_PATH]",
|
|
90
|
+
)
|
|
91
|
+
@click.option(
|
|
92
|
+
"--resolve-dois",
|
|
93
|
+
"-r",
|
|
94
|
+
is_flag=True,
|
|
95
|
+
help="Attempt to resolve missing DOIs from metadata",
|
|
96
|
+
)
|
|
97
|
+
@click.option(
|
|
98
|
+
"--no-footnotes",
|
|
99
|
+
is_flag=True,
|
|
100
|
+
help="Disable references section (citations only)",
|
|
101
|
+
)
|
|
102
|
+
@click.option("--verbose", "-v", is_flag=True, help="Enable verbose output")
|
|
103
|
+
@click.option("--quiet", "-q", is_flag=True, help="Suppress non-essential output")
|
|
104
|
+
def docx(
|
|
105
|
+
manuscript_path: str | None,
|
|
106
|
+
resolve_dois: bool,
|
|
107
|
+
no_footnotes: bool,
|
|
108
|
+
verbose: bool,
|
|
109
|
+
quiet: bool,
|
|
110
|
+
) -> None:
|
|
111
|
+
"""Export manuscript to DOCX format for collaborative review.
|
|
112
|
+
|
|
113
|
+
Generates a Word document with numbered citations, embedded figures,
|
|
114
|
+
and a complete references section with DOI links. Output is automatically
|
|
115
|
+
saved to the manuscript directory with the same naming pattern as the PDF.
|
|
116
|
+
|
|
117
|
+
**MANUSCRIPT_PATH**: Directory containing manuscript files.
|
|
118
|
+
Defaults to MANUSCRIPT/
|
|
119
|
+
|
|
120
|
+
**Output**: Automatically saved to MANUSCRIPT/YEAR__lastname_et_al__rxiv.docx
|
|
121
|
+
|
|
122
|
+
## Examples
|
|
123
|
+
|
|
124
|
+
**Basic export:**
|
|
125
|
+
|
|
126
|
+
$ rxiv docx
|
|
127
|
+
|
|
128
|
+
**Export from custom directory:**
|
|
129
|
+
|
|
130
|
+
$ rxiv docx MY_PAPER/
|
|
131
|
+
|
|
132
|
+
**With DOI resolution for missing entries:**
|
|
133
|
+
|
|
134
|
+
$ rxiv docx --resolve-dois
|
|
135
|
+
|
|
136
|
+
**Without references section (citations only):**
|
|
137
|
+
|
|
138
|
+
$ rxiv docx --no-footnotes
|
|
139
|
+
"""
|
|
140
|
+
try:
|
|
141
|
+
# Configure logging
|
|
142
|
+
if verbose:
|
|
143
|
+
logger.set_level("DEBUG")
|
|
144
|
+
elif quiet:
|
|
145
|
+
logger.set_level("WARNING")
|
|
146
|
+
|
|
147
|
+
# Set manuscript path
|
|
148
|
+
manuscript_path = manuscript_path or "MANUSCRIPT"
|
|
149
|
+
|
|
150
|
+
# Create exporter
|
|
151
|
+
if not quiet:
|
|
152
|
+
console.print("[cyan]📄 Exporting manuscript to DOCX...[/cyan]")
|
|
153
|
+
|
|
154
|
+
exporter = DocxExporter(
|
|
155
|
+
manuscript_path=manuscript_path,
|
|
156
|
+
resolve_dois=resolve_dois,
|
|
157
|
+
include_footnotes=not no_footnotes,
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
# Pre-flight check for poppler (if manuscript contains PDF figures)
|
|
161
|
+
_check_and_offer_poppler_installation(console, quiet, verbose)
|
|
162
|
+
|
|
163
|
+
# Perform export
|
|
164
|
+
docx_path = exporter.export()
|
|
165
|
+
|
|
166
|
+
# Success message
|
|
167
|
+
if not quiet:
|
|
168
|
+
console.print(f"[green]✅ DOCX exported:[/green] {docx_path}")
|
|
169
|
+
|
|
170
|
+
except FileNotFoundError as e:
|
|
171
|
+
console.print(f"[red]❌ Error:[/red] {e}")
|
|
172
|
+
raise click.Abort() from e
|
|
173
|
+
except Exception as e:
|
|
174
|
+
if verbose:
|
|
175
|
+
logger.error(f"DOCX export failed: {e}")
|
|
176
|
+
console.print(f"[red]❌ Export failed:[/red] {e}")
|
|
177
|
+
raise click.Abort() from e
|
|
@@ -487,6 +487,18 @@ class DependencyManager:
|
|
|
487
487
|
)
|
|
488
488
|
)
|
|
489
489
|
|
|
490
|
+
# Poppler utilities for PDF to image conversion (DOCX export)
|
|
491
|
+
self.register_dependency(
|
|
492
|
+
DependencySpec(
|
|
493
|
+
name="pdftoppm",
|
|
494
|
+
type=DependencyType.SYSTEM_BINARY,
|
|
495
|
+
required=False, # Only needed for DOCX export with PDF figures
|
|
496
|
+
alternatives=["pdfinfo"],
|
|
497
|
+
contexts={"docx", "export"},
|
|
498
|
+
install_hint="macOS: brew install poppler | Linux: sudo apt install poppler-utils",
|
|
499
|
+
)
|
|
500
|
+
)
|
|
501
|
+
|
|
490
502
|
def register_dependency(self, spec: DependencySpec) -> None:
|
|
491
503
|
"""Register a dependency specification.
|
|
492
504
|
|
|
@@ -318,9 +318,13 @@ class DocxExporter:
|
|
|
318
318
|
# Get DOI from entry
|
|
319
319
|
doi = entry.fields.get("doi")
|
|
320
320
|
|
|
321
|
-
#
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
# Attempt DOI resolution if requested and DOI missing
|
|
322
|
+
if self.resolve_dois and not doi:
|
|
323
|
+
doi = self._resolve_doi_from_metadata(entry)
|
|
324
|
+
if doi:
|
|
325
|
+
# Store in entry for this export
|
|
326
|
+
entry.fields["doi"] = doi
|
|
327
|
+
logger.info(f"Resolved DOI for {key}: {doi}")
|
|
324
328
|
|
|
325
329
|
# Format entry (full format for DOCX bibliography)
|
|
326
330
|
formatted = format_bibliography_entry(entry, doi, slim=False, author_format=self.author_format)
|
|
@@ -332,6 +336,99 @@ class DocxExporter:
|
|
|
332
336
|
|
|
333
337
|
return bibliography
|
|
334
338
|
|
|
339
|
+
def _resolve_doi_from_metadata(self, entry) -> str | None:
|
|
340
|
+
"""Resolve DOI from entry metadata using CrossRef API.
|
|
341
|
+
|
|
342
|
+
Args:
|
|
343
|
+
entry: Bibliography entry to resolve DOI for
|
|
344
|
+
|
|
345
|
+
Returns:
|
|
346
|
+
Resolved DOI if found, None otherwise
|
|
347
|
+
"""
|
|
348
|
+
import requests
|
|
349
|
+
|
|
350
|
+
# Try to construct a search query from available fields
|
|
351
|
+
title = entry.fields.get("title", "").strip()
|
|
352
|
+
year = entry.fields.get("year", "").strip()
|
|
353
|
+
|
|
354
|
+
if not title:
|
|
355
|
+
logger.debug(f"Cannot resolve DOI for {entry.key}: no title")
|
|
356
|
+
return None
|
|
357
|
+
|
|
358
|
+
# Clean title for search (remove LaTeX commands, braces, etc.)
|
|
359
|
+
search_title = self._clean_title_for_search(title)
|
|
360
|
+
|
|
361
|
+
# Try CrossRef search API
|
|
362
|
+
try:
|
|
363
|
+
url = "https://api.crossref.org/works"
|
|
364
|
+
params = {
|
|
365
|
+
"query.title": search_title,
|
|
366
|
+
"rows": 5, # Get top 5 results
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
response = requests.get(url, params=params, timeout=10)
|
|
370
|
+
|
|
371
|
+
if response.status_code == 200:
|
|
372
|
+
data = response.json()
|
|
373
|
+
items = data.get("message", {}).get("items", [])
|
|
374
|
+
|
|
375
|
+
# Find best match
|
|
376
|
+
for item in items:
|
|
377
|
+
item_title = item.get("title", [""])[0].lower()
|
|
378
|
+
search_title_lower = search_title.lower()
|
|
379
|
+
|
|
380
|
+
# Simple similarity check - titles should be very similar
|
|
381
|
+
if item_title and (search_title_lower in item_title or item_title in search_title_lower):
|
|
382
|
+
# Verify year matches if available
|
|
383
|
+
if year:
|
|
384
|
+
item_year = item.get("published", {}).get("date-parts", [[None]])[0][0]
|
|
385
|
+
if item_year and str(item_year) != year:
|
|
386
|
+
continue
|
|
387
|
+
|
|
388
|
+
doi = item.get("DOI")
|
|
389
|
+
if doi:
|
|
390
|
+
logger.info(f"Resolved DOI for {entry.key}: {doi}")
|
|
391
|
+
return doi
|
|
392
|
+
|
|
393
|
+
logger.debug(f"Could not resolve DOI for {entry.key} via CrossRef")
|
|
394
|
+
return None
|
|
395
|
+
|
|
396
|
+
except requests.exceptions.Timeout:
|
|
397
|
+
logger.debug(f"CrossRef API timeout resolving DOI for {entry.key}")
|
|
398
|
+
return None
|
|
399
|
+
except requests.exceptions.ConnectionError:
|
|
400
|
+
logger.debug(f"CrossRef API connection error for {entry.key}")
|
|
401
|
+
return None
|
|
402
|
+
except Exception as e:
|
|
403
|
+
logger.debug(f"Error resolving DOI for {entry.key}: {e}")
|
|
404
|
+
return None
|
|
405
|
+
|
|
406
|
+
def _clean_title_for_search(self, title: str) -> str:
|
|
407
|
+
"""Clean title for CrossRef search by removing LaTeX commands.
|
|
408
|
+
|
|
409
|
+
Args:
|
|
410
|
+
title: Raw title from BibTeX entry
|
|
411
|
+
|
|
412
|
+
Returns:
|
|
413
|
+
Cleaned title suitable for search
|
|
414
|
+
"""
|
|
415
|
+
import re
|
|
416
|
+
|
|
417
|
+
# Remove LaTeX commands
|
|
418
|
+
title = re.sub(r"\\[a-zA-Z]+\{([^}]*)\}", r"\1", title) # \textit{foo} -> foo
|
|
419
|
+
title = re.sub(r"\\[a-zA-Z]+", "", title) # \LaTeX -> LaTeX
|
|
420
|
+
|
|
421
|
+
# Remove braces
|
|
422
|
+
title = title.replace("{", "").replace("}", "")
|
|
423
|
+
|
|
424
|
+
# Remove special characters
|
|
425
|
+
title = re.sub(r"[^a-zA-Z0-9\s\-]", " ", title)
|
|
426
|
+
|
|
427
|
+
# Normalize whitespace
|
|
428
|
+
title = " ".join(title.split())
|
|
429
|
+
|
|
430
|
+
return title.strip()
|
|
431
|
+
|
|
335
432
|
def _get_metadata(self) -> Dict[str, Any]:
|
|
336
433
|
"""Extract metadata for title page.
|
|
337
434
|
|
|
@@ -404,6 +404,19 @@ class DocxWriter:
|
|
|
404
404
|
paragraph_format = paragraph.paragraph_format
|
|
405
405
|
paragraph_format.left_indent = Pt(36) # Indent code blocks
|
|
406
406
|
|
|
407
|
+
def _check_poppler_availability(self) -> bool:
|
|
408
|
+
"""Check if poppler is available for PDF conversion.
|
|
409
|
+
|
|
410
|
+
Returns:
|
|
411
|
+
True if poppler is available, False otherwise
|
|
412
|
+
"""
|
|
413
|
+
from ..core.managers.dependency_manager import DependencyStatus, get_dependency_manager
|
|
414
|
+
|
|
415
|
+
manager = get_dependency_manager()
|
|
416
|
+
result = manager.check_dependency("pdftoppm")
|
|
417
|
+
|
|
418
|
+
return result.status == DependencyStatus.AVAILABLE
|
|
419
|
+
|
|
407
420
|
def _add_figure(self, doc: Document, section: Dict[str, Any], figure_number: int = None):
|
|
408
421
|
"""Add figure to document with caption.
|
|
409
422
|
|
|
@@ -425,9 +438,31 @@ class DocxWriter:
|
|
|
425
438
|
if not figure_path.exists():
|
|
426
439
|
logger.warning(f"Figure file not found: {figure_path}")
|
|
427
440
|
elif figure_path.suffix.lower() == ".pdf":
|
|
428
|
-
#
|
|
429
|
-
|
|
430
|
-
|
|
441
|
+
# Check poppler availability first (cached after first check)
|
|
442
|
+
if not hasattr(self, "_poppler_checked"):
|
|
443
|
+
self._poppler_available = self._check_poppler_availability()
|
|
444
|
+
self._poppler_checked = True
|
|
445
|
+
|
|
446
|
+
if not self._poppler_available:
|
|
447
|
+
logger.warning(
|
|
448
|
+
"Poppler not installed - PDF figures will be shown as placeholders. "
|
|
449
|
+
"Install with: brew install poppler (macOS) or sudo apt install poppler-utils (Linux)"
|
|
450
|
+
)
|
|
451
|
+
|
|
452
|
+
if self._poppler_available:
|
|
453
|
+
# Convert PDF to image
|
|
454
|
+
try:
|
|
455
|
+
from pdf2image.exceptions import PDFInfoNotInstalledError, PopplerNotInstalledError
|
|
456
|
+
|
|
457
|
+
img_source = convert_pdf_to_image(figure_path)
|
|
458
|
+
logger.debug(f" PDF converted: {img_source is not None}")
|
|
459
|
+
except (PopplerNotInstalledError, PDFInfoNotInstalledError) as e:
|
|
460
|
+
logger.error(f"Poppler utilities not found: {e}")
|
|
461
|
+
img_source = None
|
|
462
|
+
# Update our cached status
|
|
463
|
+
self._poppler_available = False
|
|
464
|
+
else:
|
|
465
|
+
img_source = None
|
|
431
466
|
elif figure_path.suffix.lower() in [".png", ".jpg", ".jpeg", ".gif", ".bmp"]:
|
|
432
467
|
# Use image file directly
|
|
433
468
|
img_source = str(figure_path)
|
|
@@ -81,21 +81,41 @@ def generate_bst_file(format_type: str, output_dir: Path) -> Path:
|
|
|
81
81
|
except IOError as e:
|
|
82
82
|
raise IOError(f"Failed to read template .bst file: {e}") from e
|
|
83
83
|
|
|
84
|
-
# Replace the format string
|
|
84
|
+
# Replace the format string in the format.names function (line ~222)
|
|
85
85
|
# The line looks like: s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
|
|
86
|
-
# We need to replace
|
|
87
|
-
|
|
86
|
+
# We need to replace ONLY in format.names, NOT in format.full.names
|
|
87
|
+
#
|
|
88
|
+
# Strategy: Match the FUNCTION {format.names} block specifically
|
|
89
|
+
# This ensures we don't modify format.full.names which is used for citation labels
|
|
90
|
+
#
|
|
91
|
+
# Pattern explanation:
|
|
92
|
+
# 1. Match "FUNCTION {format.names}" to find the start of the function
|
|
93
|
+
# 2. Use non-greedy match (.*?) to capture until we find our target line
|
|
94
|
+
# 3. Match and capture the format string in quotes
|
|
95
|
+
# 4. This avoids matching format.full.names which appears later in the file
|
|
96
|
+
pattern = r'(FUNCTION\s+\{format\.names\}.*?s\s+nameptr\s+")([^"]+)("\s+format\.name\$)'
|
|
88
97
|
replacement = rf"\1{format_string}\3"
|
|
89
98
|
|
|
90
|
-
modified_content, num_subs = re.subn(pattern, replacement, bst_content)
|
|
99
|
+
modified_content, num_subs = re.subn(pattern, replacement, bst_content, flags=re.DOTALL)
|
|
91
100
|
|
|
92
101
|
if num_subs == 0:
|
|
93
|
-
logger.warning(
|
|
102
|
+
logger.warning(
|
|
103
|
+
"No format string pattern found in format.names function. "
|
|
104
|
+
"The .bst file structure may have changed. "
|
|
105
|
+
"Citation formatting may not work as expected."
|
|
106
|
+
)
|
|
94
107
|
# Still write the file but log a warning
|
|
95
108
|
elif num_subs > 1:
|
|
96
|
-
|
|
97
|
-
|
|
109
|
+
# This should never happen with the new pattern, but keep the check
|
|
110
|
+
logger.error(
|
|
111
|
+
f"Found {num_subs} matches in .bst file. Expected exactly 1. "
|
|
112
|
+
"This indicates an unexpected .bst file structure. "
|
|
113
|
+
"Please report this issue."
|
|
98
114
|
)
|
|
115
|
+
raise ValueError(f"Unexpected .bst file structure: found {num_subs} matches for format.names, expected 1")
|
|
116
|
+
else:
|
|
117
|
+
# Success - exactly one match
|
|
118
|
+
logger.debug(f"Successfully updated format.names function with format '{format_type}'")
|
|
99
119
|
|
|
100
120
|
# Create output directory if it doesn't exist
|
|
101
121
|
output_dir = Path(output_dir)
|
|
@@ -8,6 +8,7 @@ This module provides utility functions for DOCX generation including:
|
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
10
|
import io
|
|
11
|
+
import logging
|
|
11
12
|
import re
|
|
12
13
|
from pathlib import Path
|
|
13
14
|
from typing import Optional
|
|
@@ -18,6 +19,8 @@ from rxiv_maker.utils.author_name_formatter import format_author_list
|
|
|
18
19
|
|
|
19
20
|
from ..utils.bibliography_parser import BibEntry
|
|
20
21
|
|
|
22
|
+
logger = logging.getLogger(__name__)
|
|
23
|
+
|
|
21
24
|
|
|
22
25
|
def remove_yaml_header(content: str) -> str:
|
|
23
26
|
r"""Remove YAML frontmatter from markdown content.
|
|
@@ -395,6 +398,12 @@ def convert_pdf_to_image(pdf_path: Path, dpi: int = 150, max_width: int = 6) ->
|
|
|
395
398
|
"""
|
|
396
399
|
try:
|
|
397
400
|
from pdf2image import convert_from_path
|
|
401
|
+
from pdf2image.exceptions import (
|
|
402
|
+
PDFInfoNotInstalledError,
|
|
403
|
+
PDFPageCountError,
|
|
404
|
+
PDFSyntaxError,
|
|
405
|
+
PopplerNotInstalledError,
|
|
406
|
+
)
|
|
398
407
|
|
|
399
408
|
# Convert first page of PDF to image
|
|
400
409
|
images = convert_from_path(
|
|
@@ -427,7 +436,19 @@ def convert_pdf_to_image(pdf_path: Path, dpi: int = 150, max_width: int = 6) ->
|
|
|
427
436
|
|
|
428
437
|
return img_bytes
|
|
429
438
|
|
|
439
|
+
except (PopplerNotInstalledError, PDFInfoNotInstalledError):
|
|
440
|
+
# Re-raise poppler errors so caller can handle them appropriately
|
|
441
|
+
# (e.g., CLI can offer to install poppler)
|
|
442
|
+
raise
|
|
443
|
+
except PDFSyntaxError as e:
|
|
444
|
+
# PDF file is malformed/corrupted
|
|
445
|
+
logger.warning(f"PDF file appears to be corrupted: {pdf_path.name} - {e}")
|
|
446
|
+
return None
|
|
447
|
+
except PDFPageCountError as e:
|
|
448
|
+
# Issue getting page count
|
|
449
|
+
logger.warning(f"Could not determine PDF page count for {pdf_path.name}: {e}")
|
|
450
|
+
return None
|
|
430
451
|
except Exception as e:
|
|
431
|
-
#
|
|
432
|
-
|
|
452
|
+
# Other unexpected errors
|
|
453
|
+
logger.warning(f"Failed to convert {pdf_path.name} to image: {e}")
|
|
433
454
|
return None
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"""Unit tests for BST generator functionality."""
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
import tempfile
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import pytest
|
|
8
|
+
|
|
9
|
+
from rxiv_maker.utils.bst_generator import generate_bst_file
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@pytest.mark.unit
|
|
13
|
+
class TestBSTGenerator:
|
|
14
|
+
"""Test BST file generation and format string replacement."""
|
|
15
|
+
|
|
16
|
+
def extract_function_section(self, content: str, function_name: str) -> str:
|
|
17
|
+
"""Extract a specific FUNCTION block from BST content.
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
content: BST file content
|
|
21
|
+
function_name: Name of the function to extract
|
|
22
|
+
|
|
23
|
+
Returns:
|
|
24
|
+
The function block content
|
|
25
|
+
"""
|
|
26
|
+
pattern = rf"FUNCTION\s+\{{{function_name}\}}.*?(?=FUNCTION|\Z)"
|
|
27
|
+
match = re.search(pattern, content, re.DOTALL)
|
|
28
|
+
return match.group(0) if match else ""
|
|
29
|
+
|
|
30
|
+
def test_bst_generator_only_modifies_format_names(self):
|
|
31
|
+
"""Ensure format.full.names is not modified (regression test for #XXX)."""
|
|
32
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
33
|
+
# Generate BST with lastname_initials format
|
|
34
|
+
output_path = generate_bst_file("lastname_initials", temp_dir)
|
|
35
|
+
|
|
36
|
+
# Read generated file
|
|
37
|
+
content = output_path.read_text()
|
|
38
|
+
|
|
39
|
+
# Verify format.names was modified (should have new format)
|
|
40
|
+
format_names_section = self.extract_function_section(content, "format.names")
|
|
41
|
+
assert "{vv~}{ll}{, f.}" in format_names_section, "format.names should have lastname_initials format"
|
|
42
|
+
|
|
43
|
+
# Verify format.full.names was NOT modified (should have original format)
|
|
44
|
+
format_full_names_section = self.extract_function_section(content, "format.full.names")
|
|
45
|
+
assert "{vv~}{ll}" in format_full_names_section, "format.full.names should keep original format"
|
|
46
|
+
assert "{vv~}{ll}{, f.}" not in format_full_names_section, (
|
|
47
|
+
"format.full.names should NOT have our modified format"
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
def test_bst_generator_lastname_initials_format(self):
|
|
51
|
+
"""Test BST generation with lastname_initials format."""
|
|
52
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
53
|
+
output_path = generate_bst_file("lastname_initials", temp_dir)
|
|
54
|
+
|
|
55
|
+
assert output_path.exists()
|
|
56
|
+
content = output_path.read_text()
|
|
57
|
+
|
|
58
|
+
# Should contain the lastname_initials format: {vv~}{ll}{, f.}
|
|
59
|
+
format_names_section = self.extract_function_section(content, "format.names")
|
|
60
|
+
assert "{vv~}{ll}{, f.}" in format_names_section
|
|
61
|
+
|
|
62
|
+
def test_bst_generator_lastname_firstname_format(self):
|
|
63
|
+
"""Test BST generation with lastname_firstname format."""
|
|
64
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
65
|
+
output_path = generate_bst_file("lastname_firstname", temp_dir)
|
|
66
|
+
|
|
67
|
+
assert output_path.exists()
|
|
68
|
+
content = output_path.read_text()
|
|
69
|
+
|
|
70
|
+
# Should contain the lastname_firstname format: {vv~}{ll}{, ff}
|
|
71
|
+
format_names_section = self.extract_function_section(content, "format.names")
|
|
72
|
+
assert "{vv~}{ll}{, ff}" in format_names_section
|
|
73
|
+
|
|
74
|
+
def test_bst_generator_firstname_lastname_format(self):
|
|
75
|
+
"""Test BST generation with firstname_lastname format."""
|
|
76
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
77
|
+
output_path = generate_bst_file("firstname_lastname", temp_dir)
|
|
78
|
+
|
|
79
|
+
assert output_path.exists()
|
|
80
|
+
content = output_path.read_text()
|
|
81
|
+
|
|
82
|
+
# Should contain the firstname_lastname format: {ff~}{vv~}{ll}
|
|
83
|
+
format_names_section = self.extract_function_section(content, "format.names")
|
|
84
|
+
assert "{ff~}{vv~}{ll}" in format_names_section
|
|
85
|
+
|
|
86
|
+
def test_bst_generator_creates_output_directory(self):
|
|
87
|
+
"""Test that BST generator creates output directory if it doesn't exist."""
|
|
88
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
89
|
+
nested_dir = Path(temp_dir) / "nested" / "output"
|
|
90
|
+
output_path = generate_bst_file("lastname_initials", str(nested_dir))
|
|
91
|
+
|
|
92
|
+
assert nested_dir.exists()
|
|
93
|
+
assert output_path.exists()
|
|
94
|
+
|
|
95
|
+
def test_bst_generator_file_name(self):
|
|
96
|
+
"""Test that generated BST file has correct name."""
|
|
97
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
98
|
+
output_path = generate_bst_file("lastname_initials", temp_dir)
|
|
99
|
+
|
|
100
|
+
assert output_path.name == "rxiv_maker_style.bst"
|
|
101
|
+
|
|
102
|
+
def test_bst_generator_invalid_format_type(self):
|
|
103
|
+
"""Test that invalid format type raises appropriate error."""
|
|
104
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
105
|
+
with pytest.raises(ValueError, match="Invalid bibliography author format"):
|
|
106
|
+
generate_bst_file("invalid_format", temp_dir)
|
|
107
|
+
|
|
108
|
+
def test_bst_both_functions_exist_in_template(self):
|
|
109
|
+
"""Verify the BST template contains both format.names and format.full.names."""
|
|
110
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
111
|
+
output_path = generate_bst_file("lastname_initials", temp_dir)
|
|
112
|
+
content = output_path.read_text()
|
|
113
|
+
|
|
114
|
+
# Both functions should exist
|
|
115
|
+
assert "FUNCTION {format.names}" in content
|
|
116
|
+
assert "FUNCTION {format.full.names}" in content
|
|
117
|
+
|
|
118
|
+
def test_bst_regex_matches_exactly_once(self):
|
|
119
|
+
"""Verify that the regex pattern matches exactly once (not multiple times)."""
|
|
120
|
+
with tempfile.TemporaryDirectory() as temp_dir:
|
|
121
|
+
output_path = generate_bst_file("lastname_initials", temp_dir)
|
|
122
|
+
content = output_path.read_text()
|
|
123
|
+
|
|
124
|
+
# Count occurrences of our modified format
|
|
125
|
+
format_names_section = self.extract_function_section(content, "format.names")
|
|
126
|
+
format_full_names_section = self.extract_function_section(content, "format.full.names")
|
|
127
|
+
|
|
128
|
+
# Should appear once in format.names
|
|
129
|
+
assert format_names_section.count("{vv~}{ll}{, f.}") == 1
|
|
130
|
+
|
|
131
|
+
# Should NOT appear in format.full.names
|
|
132
|
+
assert format_full_names_section.count("{vv~}{ll}{, f.}") == 0
|