Skip to content

bug: math block not replaced when using pdf2docx #76

@LasmGratel

Description

@LasmGratel

Steps to reproduce

Given a test.typ file:

= Test

== Example

$ dot(C)_b^n = C_b^n (omega_(i b)^b times) - (omega_(i n)^n times) C_b^n $

Running typ2docx -d -e pdf2docx test.typ

Converting TYP -> PDF with Typst
Extracting math source code
Extracted 1 math blocks
Converting TYP -> DOCX with Pandoc
Converting PDF -> DOCX with pdf2docx
[INFO] Start to convert C:\Users\nanam\Documents\hhu-thesis\shane-hhu-thesis\.typ2docx\a.pdf
[INFO] [1/4] Opening document...
[INFO] [2/4] Analyzing document...
[INFO] [3/4] Parsing pages...
[INFO] (1/1) Page 1
[INFO] [4/4] Creating pages...
[INFO] (1/1) Page 1
[INFO] Terminated in 0.04s.
Merging DOCX
Output saved to C:\Users\nanam\Documents\hhu-thesis\shane-hhu-thesis\test.docx

Open that file in Word, gives out error: Word experienced an error trying to open the file. Trying Open and Repair does not help.

test.docx

System

typ2docx v0.8.0
Windows 11 25H2
uv Python 3.13.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions