在rmarkDown HTML输出中,数学排版不合适,但是现在突然是?

发布于 2025-02-10 09:11:09 字数 588 浏览 1 评论 0原文

我一直在寻找一段时间,并且一直在这里和那里尝试一些事情,但是我似乎找不到解决数学排版问题的解决方案,在RmarkDown的HTML输出中未正确显示。关于RmarkDown的权威指南似乎没有提及任何有帮助的东西,在线也没有明确的答案。所有这些搜索和摆弄需要太多时间。

例如,正如某人所建议的那样,我重新加载了页面,但它不起作用。我不知道该如何解决这个问题,我可能会编译代码(或编织或您所说的任何东西),就像它是乳胶一样,但它不起作用。我尝试了其他一些事情,但是我已经忘记了它们。

主要描述

本质上,只要我有一些数学代码,使用$$$ raw code 而不是所需的数学排版显示在HTML文件中。

突然的好结果? 但是现在,当我再次打开HTML文件以查看会发生什么时,排版是正确的吗?在这种情况下,我能想到的唯一区别是我在线。如果有的话,这与它有什么关系?

解决方案 无论如何,看到所有这些,接下来要做什么,实际上可以迅速解决?我想可以选择将最终的HTML文件发送给任何人,并且不需要在线。

I have been looking for a while now, and have been trying some things here and there, but I just cannot seem to find the solution to the problem of mathematical typesetting not being properly displayed in Rmarkdown's HTML output. That definitive guide for Rmarkdown does not seem to mention anything that helps, and online there is just no clear answer to me either. All this searching and fiddling takes too much time.

For example, as suggested by someone, I reloaded the page, but it did not work. Not knowing exactly how to go about the issue, I probably compiled the code (or knitted, or whatever you'd call it), as if it were LaTeX, but it did not work. There were a few other things I tried, but I already forgot about them.

MAIN DESCRIPTION

Essentially, whenever I have some mathematical code, using $ or $$, the raw code instead of the desired mathematical typesetting is displayed in the HTML file.

SUDDEN GOOD RESULT?
But now, as I just opened the HTML file again to see what would happen, the typesetting is correct? The only difference I can think of, in this case, is that I was online. What would that have to do with it, if at all?

SOLUTION
In any case, seeing all this, what is the next thing to do, to actually get it solved quickly? I want to have the option to send the resultant HTML file to anyone, and there should not be any need to be online.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文