Help:Displaying a formula: Difference between revisions

Content deleted Content added
Line 23:
The disadvantages of LaTeX are the following:
On some browser configurations, LaTeX inline formulas appear with a slight vertical misalignment, or with a font size that is slightly different from that of the surrounding text. This is not a problem with a block displayed formula. This is generally also not a real problem with inline formulas that exceed the normal line height (for example formulas with subscripts and superscripts).
Also, the use of LaTeX in a [[WPwikipedia:piped link|piped link]] or in a section heading should appear in blue in the linked text or the table of content, but they do not. Moreover, links to section headings containing LaTeX formulas do not work always as expected.
Finally, too many LaTeX formulas may significantly increase the processing time of a page. LaTeX formulas should be avoided in image captions, because when the image is clicked for a larger display, LaTeX in the caption will not render.
 
The disadvantages of {{tl|math}} are the following:
not all formulas can be displayed. While it is possible to render a complicated formula with {{tl|math}}, it is often poorly rendered. Except for the most common ones, the rendering of non-alphanumeric [[Unicode]] symbols is often very poor and may depend on the browser configuration (misalignment, wrong size, ...). The spaces inside formulas are not managed automatically, and thus need some expertise for being rendered correctly. Except for short formulas, many more characters have to be typed for entering a formula, and the source is more difficult to read.
 
Therefore, the common practice of most members of [[WPwikipedia:WPM|WikiProject mathematics]] is the following:
* Use of {{tl|mvar}} and {{tl|math}} for isolated variables and very simple inline formulas
* Use of {{tl|mvar}} and {{tl|math}} for formulas in image captions, even if the rendering is mediocre
* Use of LaTeX for displayed formulas and more complicated inline formulas
* Use of LaTeX for formulas involving symbols that are not regularly rendered in Unicode (see [[wikipedia:MOS:BBB]])
* Avoid formulas in section headings, and when this is a problem, use raw HTML (see [[Finite field]] for an example)