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

请问如何调整,保持导出时内联公式的颜色 #24

Closed
fyulingi opened this issue Nov 26, 2023 · 2 comments
Closed

请问如何调整,保持导出时内联公式的颜色 #24

fyulingi opened this issue Nov 26, 2023 · 2 comments

Comments

@fyulingi
Copy link

如题,导出pdf时蓝色的行间公式很好看,请问怎么调整css使其在导出时保留,谢谢~

@Theigrams
Copy link
Owner

设置 ->导出->PDF-> 插入额外内容 中输入以下代码片段:

<style>
    /* 修改inlineMath的颜色 */
    mjx-container[jax="SVG"] {
    color: blue; /* 将颜色设置为蓝色 */
    font-size: 100% !important; /* 设置为你想要的大小 */
    }
    /* 修改displayMath的颜色 */
    mjx-container[jax="SVG"][display="true"] {
    color: green; /* 将颜色设置为绿色 */
    font-size: 100% !important; /* 设置为你想要的大小 */
    }
</style>

该例子中输出的行间公式为绿色,如果你想换成蓝色,将 color: green; 改成 color: blue; 即可

image

@fyulingi
Copy link
Author

谢谢!十分有帮助!

@Theigrams Theigrams pinned this issue Nov 26, 2023
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