Skip to content
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

FontSize Math formulas in lastest version docx #2703

Open
Behemoth0 opened this issue Jul 19, 2024 · 7 comments
Open

FontSize Math formulas in lastest version docx #2703

Behemoth0 opened this issue Jul 19, 2024 · 7 comments

Comments

@Behemoth0
Copy link

How can I make the font size of the formula itself in this code in the latest version of docx size 14, by default formulas are created in size 10. here is the code:


const paragraph33 = new Paragraph({
                    children: [
                        new Math({
                            children: [
                                new MathRun(`Std=${window.STD.Sj}+${vaValuesJ2[i]}×`),
                                new MathFraction({
                                    numerator: [new MathRun(`${optionT3_2}`)],
                                    denominator: [new MathRun("7.2")],

                                }),
                                new MathRun(`-${window.STD.L}-${window.STD.C}=${Number(window.jResult['J2'].std[`va${i + 1}`]).toFixed(2)}`),

                            ],
                        }),
                    ],
                });
                paragraphs.push(paragraph33);

Thnx for answer)

@Behemoth0
Copy link
Author

I will be very grateful if you show me an example of part of my code that I provided)

@Behemoth0
Copy link
Author

Will someone answer me here or not? This is really important to me for the project.

@Behemoth0
Copy link
Author

Where is developer?

@Behemoth0
Copy link
Author

Is anyone alive? Is the project already dead or what? Developer?

@Behemoth0
Copy link
Author

@dolanmiu

@anti-the-social
Copy link
Contributor

I do not investigate open source related issues if someone demands it.
But since its open source you can investigate yourself and propose changes to the library yourself if needed and/or something missing.

@Behemoth0
Copy link
Author

@anti-the-social So I said what the problem is: in Math you cannot set the font size in the formula. And he asked how this could be solved. And as an option, I propose to add to the new version of the library the ability to edit the Math font size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants