• <small id='8gFKE'></small><noframes id='8gFKE'>

    <legend id='8gFKE'><style id='8gFKE'><dir id='8gFKE'><q id='8gFKE'></q></dir></style></legend>

    1. <i id='8gFKE'><tr id='8gFKE'><dt id='8gFKE'><q id='8gFKE'><span id='8gFKE'><b id='8gFKE'><form id='8gFKE'><ins id='8gFKE'></ins><ul id='8gFKE'></ul><sub id='8gFKE'></sub></form><legend id='8gFKE'></legend><bdo id='8gFKE'><pre id='8gFKE'><center id='8gFKE'></center></pre></bdo></b><th id='8gFKE'></th></span></q></dt></tr></i><div id='8gFKE'><tfoot id='8gFKE'></tfoot><dl id='8gFKE'><fieldset id='8gFKE'></fieldset></dl></div>
        <bdo id='8gFKE'></bdo><ul id='8gFKE'></ul>

        <tfoot id='8gFKE'></tfoot>

        在网页中嵌入 LaTeX 的最佳方法是什么?

        What is the best way to embed LaTeX in a webpage?(在网页中嵌入 LaTeX 的最佳方法是什么?)
        • <bdo id='K5fMh'></bdo><ul id='K5fMh'></ul>
          • <legend id='K5fMh'><style id='K5fMh'><dir id='K5fMh'><q id='K5fMh'></q></dir></style></legend>

                <tbody id='K5fMh'></tbody>
              <tfoot id='K5fMh'></tfoot>

                1. <small id='K5fMh'></small><noframes id='K5fMh'>

                  <i id='K5fMh'><tr id='K5fMh'><dt id='K5fMh'><q id='K5fMh'><span id='K5fMh'><b id='K5fMh'><form id='K5fMh'><ins id='K5fMh'></ins><ul id='K5fMh'></ul><sub id='K5fMh'></sub></form><legend id='K5fMh'></legend><bdo id='K5fMh'><pre id='K5fMh'><center id='K5fMh'></center></pre></bdo></b><th id='K5fMh'></th></span></q></dt></tr></i><div id='K5fMh'><tfoot id='K5fMh'></tfoot><dl id='K5fMh'><fieldset id='K5fMh'></fieldset></dl></div>
                  本文介绍了在网页中嵌入 LaTeX 的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I'm not asking about converting a LaTeX document to html.

                  What I'd like to be able to do is have some way to use LaTeX math commands in an html document, and have it appear correctly in a browser. This could be done server or client side.

                  解决方案

                  MediaWiki can do what you are looking for. It uses Texvc (http://en.wikipedia.org/wiki/Texvc) which "validates (AMS) LaTeX mathematical expressions and converts them to HTML, MathML, or PNG graphics." Sounds like what you are looking for.

                  Check out Wikipedia's article on how they handle math equations here: http://en.wikipedia.org/wiki/Help:Formula. They also have an extensive reference on LaTeX and pros/cons of the different rendering types (PNG/MathML/HTML).

                  MediaWiki uses a subset of TeX markup, including some extensions from LaTeX and AMS-LaTeX, for mathematical formulae. It generates either PNG images or simple HTML markup, depending on user preferences and the complexity of the expression. In the future, as more browsers are smarter, it will be able to generate enhanced HTML or even MathML in many cases. (See blahtex for information about current work on adding MathML support.)

                  More precisely, MediaWiki filters the markup through Texvc, which in turn passes the commands to TeX for the actual rendering. Thus, only a limited part of the full TeX language is supported; see below for details. ...

                  Pros of HTML

                  • In-line HTML formulae always align properly with the rest of the HTML text.
                  • The formula's background, font size and face match the rest of HTML contents and the appearance respects CSS and browser settings.
                  • Pages using HTML will load faster.

                  Pros of TeX

                  • TeX is semantically superior to HTML. In TeX, "x" means "mathematical variable x", whereas in HTML "x" could mean anything. Information has been irrevocably lost. This has multiple benefits:

                    1. TeX can be transformed into HTML, but not vice-versa. This means that on the server side we can always transform a formula, based on its complexity and location within the text, user preferences, type of browser, etc. Therefore, where possible, all the benefits of HTML can be retained, together with the benefits of TeX. It's true that the current situation is not ideal, but that's not a good reason to drop information/contents. It's more a reason to help improve the situation.
                    2. TeX can be converted to MathML for browsers which support it, thus keeping its semantics and allowing it to be rendered as a vector.

                  • TeX has been specifically designed for typesetting formulae, so input is easier and more natural, and output is more aesthetically pleasing.
                  • When writing in TeX, editors need not worry about browser support, since it is rendered into an image by the server. HTML formulae, on the other hand, can end up being rendered inconsistent of editor's intentions (or not at all), by some browsers or older versions of a browser.

                  这篇关于在网页中嵌入 LaTeX 的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)
                  How do I make a TextGeometry multiline? How do I put it inside a square so it wraps like html text does inside a div?(如何制作 TextGeometry 多线?如何将它放在一个正方形内,以便它像 html 文本一样包裹在 div 内?) - IT屋-程序员软件开发技术分享社
                  How to use coffeescript in developing web-sites?(如何在开发网站时使用coffeescript?)
                  Expose a javascript api with coffeescript(使用 coffeescript 公开一个 javascript api)

                2. <small id='dGQK6'></small><noframes id='dGQK6'>

                  • <legend id='dGQK6'><style id='dGQK6'><dir id='dGQK6'><q id='dGQK6'></q></dir></style></legend>
                      <tbody id='dGQK6'></tbody>
                    <i id='dGQK6'><tr id='dGQK6'><dt id='dGQK6'><q id='dGQK6'><span id='dGQK6'><b id='dGQK6'><form id='dGQK6'><ins id='dGQK6'></ins><ul id='dGQK6'></ul><sub id='dGQK6'></sub></form><legend id='dGQK6'></legend><bdo id='dGQK6'><pre id='dGQK6'><center id='dGQK6'></center></pre></bdo></b><th id='dGQK6'></th></span></q></dt></tr></i><div id='dGQK6'><tfoot id='dGQK6'></tfoot><dl id='dGQK6'><fieldset id='dGQK6'></fieldset></dl></div>

                      • <bdo id='dGQK6'></bdo><ul id='dGQK6'></ul>

                          <tfoot id='dGQK6'></tfoot>