This template fails to provide proper spacing in expressions like 4 ≥ 3. I therefore expunged the template from an article I just edited. I will do likewise with other articles in which I find it if this flaw persists. Michael Hardy ( talk) 06:22, 25 September 2008 (UTC)
The user Yecryl's statement is "original research". Paul —Preceding unsigned comment added by 188.25.52.21 ( talk) 03:14, 25 February 2011 (UTC)
I modified the style to not wrap on whitespace. This is the same as what Template:nowrap does. Justin W Smith talk/ stalk 19:21, 18 May 2010 (UTC)
How do you incorporate vertical lines, as for example in absolute value or the parallel symbol? -- RockMagnetist ( talk) 21:12, 25 October 2010 (UTC)
|
" as in x = {a | c|a}.
SamuelRiv (
talk)
21:58, 9 March 2011 (UTC)
Is there any difference between mrad and radical?
In the article, I also spotted several other keywords like mapply, minteg, mexp and frac. Is there a complete list of keywords that we can use? Is there any list of predefined parameters (like big) as well?
The article also implicitly teaches us that we can use <sup> to make superscript. Is there anything else similar we should know?
The article is very incomplete. 石庭豐 ( talk) 08:06, 10 August 2011 (UTC)
In the definition of this template, it can be seen that it utilizes both argument #1 and argument #2. However, both of them appear at only one place, and there they are just placed after each other. The code
"{{math|a|b|c|d}}
"
is substituted with
"<span class="texhtml " >a</span>
"
which produces the text "ab". So I'm wondering, what is really the purpose with the argument #2? How is this an improvement over having just #1 (meaning that #2 would be removed)? It must have been placed there by mistake, right? In that case, it should probably be removed. — Kri ( talk) 15:41, 2 June 2012 (UTC)
{{math|big=1|1 + 2 {{=}} 3}}
#2
(even though I didn't write it; that was a bit sloppy of me). Now I have corrected that I my previous comment.{{math|big=1|a|b|c|d}}
still produces a, which is kind of a strange behaviour. In the example in the documentation there is no argument #2
. The first argument is labeled "big
". Since the code for the argument contains an equals sign the label of the argument is what comes before the equals sign and the value of the argument is what comes after it. Unlike the code for the first argument, the code for the second argument doesn't contain an equals sign; hence the second argument is auto-labeled to "#1
", not to "#2
", even though it is the second argument. —
Kri (
talk)
16:46, 2 June 2012 (UTC)In Internet Explorer on laptops and workstations, several of the fonts used for math symbols show up with very thin strokes and in a different style. I try to make in-line math look as much as possible like the text in which it is embedded – much as a math textbook – by using mostly standard text and italics. I only use other fonts for math when absolutely necessary (e.g., when the symbols do not exist in standard text) and then usually on a separate line. I often go to another terminal to see if something looks different on another system. I often compare what I am editing with other articles to see if other editors have frequently used a particular type font. I recently spent a lot of time on several articles, e.g., stiff equation cleaning up some of the mixture of type fonts. I would like to suggest that editors take a look at how a font appears on several terminals before using it heavily. I would also like to suggest that someone with the authority to improve the math templates take a close look at how these templates (e.g., the many examples in this article) work on various terminal types. — Anita5192 ( talk) 19:05, 26 June 2012 (UTC)
Now that
MathJax is working on this wiki it might be worth considering making the output of this template compatible with MathJax, so that pages which mix <math> and {{
math}} where posible use the same font. This could be achieved by modifying the CSS rule to be span.texhtml { font-family: MathJax_Math, serif; }
. There is some discussion on this at
Wikipedia_talk:WikiProject_Mathematics/Archive/2012/Jul#MathJax working.--
Salix (
talk):
17:22, 27 July 2012 (UTC)
span.texhtml { font-family: MathJax_Main, serif; font-size: 123%;}
span.texhtml var { font-family: MathJax_Math, serif;}
span.texhtml sup { font-size: 70.7%; }
span.texhtml sub { font-size: 70.7%; }
@font-face
will be invoked. Having font-family: MathJax_Main, serif;
will use the same font as used by MathJax if availiable but fallback to serif if its not. There would be a problem if there is no <math> on the page then it will use the fallback.What I could now present are the formula from a fresh section Square (algebra) #In complex analysis, and samples made just to this cause like f ∘ g = λx. f (g ( x)), P n ⇉ f, or ⟨ ψ | A | ψ ⟩. These samples are not useful in this literal form, but demonstrate various ideas how so complicated expressions may be clarified. Very likely, there are several cases in articles with links inside a formula, but I have no idea how to search for these. And I am not sure that underlines should be turned off for all {{math}}s, or even by default, because there are different formulas. For example, A ∈ SL(2, R) looks fine with underlines. Incnis Mrsi ( talk) 21:24, 4 September 2012 (UTC)
Should a math template be used for numbers? Which one is better, 1234567890 or 1234567890, in an article? I've noticed that both are often used in the same article. 069952497a ( talk) 20:25, 2 February 2013 (UTC)
I copied the discussion thread on (to have it on one location only): Wikipedia talk:WikiProject Mathematics/Typography#Consequences of a lack of consensus concerning inline text style mathematical formulae. — Tentacles Talk or ✉ mailto:Tentacles 22:06, 24 March 2016 (UTC)
I think it would be good, if we could remove this template and simply use the math tag instead. A research group from the rochester institute of technology has started to develop software which is capable to convert the templates back to regular math. -- Physikerwelt ( talk) 18:02, 16 May 2016 (UTC)
-- [[
User:Edokter]] {{
talk}}
18:48, 16 May 2016 (UTC)// Makes double clicking on a mathematical equation copy the source latex
$(".mwe-math-mathml-a11y").each(function(ind,ele) {
root = ele.parentElement;
$(root).dblclick(function(ev) {
console.log(ev.delegateTarget);
var root = ev.delegateTarget;
var anno = $(root).find("annotation");
var latex = $(root).find("annotation").text();
var $temp = $("<input>")
$("body").append($temp);
$temp.val(latex).select();
document.execCommand("copy");
$temp.remove();
});
});
I was watching the conversation here, but since there is no real solution, maybe these remarks help to solve the problem in the future.
<math>a+b=c</math>
- works{{math|a+b=c}}
- you have to escape the equal sign - {{math|a+b{{=}}c}}
- you have to know where to put spaces and add them manually - {{math|a + b {{=}} c}}
- worksWhat I am currently hoping for is MathJax 3.0. While the current alpha version rightly carries the notice "do not use in production" it might be working properly next year. Since it supports node.js out of the box I would guess that it is not more difficult to integrate into mediawiki than the current setup and the average readers can get a client side rendering that is as good as the former MathJax user setting.-- Debenben ( talk) 00:16, 25 January 2018 (UTC)
I've been told in the past (in the context of normal text, not in the context of this template) that it is undesirable to put italic wikimarkup around greek letters. However, the template is providing an upright font for greek characters (α,β,γ,δ,ε,ζ) that does not match the output of math markup. How should this be handled? Spinning Spark 17:37, 23 December 2016 (UTC)
On phab:T153938 it was proposed to add some hidden math for the math template E=mc^2 (not to be confused with the math tag ). One option I see is to add a hidden math tag to this math template
at least from the math extension there is no way to access the math template (availible for english wikipedia). Any comments, suggestions on this idea? -- Physikerwelt ( talk) 22:03, 9 January 2017 (UTC)
Presumably the example should have been
rather than the ugly atrocity actually given, which assumes incorrectly that {{ math}} syntax is the same as LaTeX syntax. I really hope this isn't a developer attempt to make {{ math}} work as badly as <math> in an attempt to drive editors away from it. — David Eppstein ( talk) 03:56, 10 January 2017 (UTC)
Looking at some of the dificulties Algorithms for calculating variance we have some exotic unicode symbols. {{math|''n'' ← 0, Sum ← 0, SumSq ← 0}} some include templates {{math|Var {{=}} (SumSq − (Sum × Sum) / n) / (n − 1)}} From Bra–ket notation we have {{math|{{bra-ket|·|⋅}}}} which leads to several levels of nested templates including unicode {{ rangle}} and html entities | the pipe character |.
At the least such a conversion algorithm would need to cope with the various math notation template. -- Salix alba ( talk): 10:07, 11 January 2017 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Request that inline math text be made non-breaking by adding the class nowrap
to <span class="...">
. Inline math formulas should not be broken across lines.
Hgrosser (
talk)
09:05, 4 May 2017 (UTC)
texhtml
which specifies white-space: nowrap
.
Ahecht (
TALK![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi! I'm editing an article in the wiki of a game called "Stardew Valley" and I noticed the Template:Math doesn't exist there. Is there a way I can get the source of this template so I can copy and use it there? Thanks! Santisanti32 ( talk) 05:38, 5 May 2017 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi! I was editing an article in the wiki of a game called "Stardew Valley" and I noticed that the Template:Math doesn't exist. Is there a way I can get the source of this template so I can create it in the other wiki? Thanks! Santisanti32 ( talk) 06:13, 5 May 2017 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace code with all code from {{ Math/sandbox}} ( diff).
Change: added Module:Check for unknown parameters.
Background: Math formulae are prone to use math symbols =
and |
incorrectly in template parameter entering (math meaning versus parameter parsing effect). See
parameter usage (now outdated).
The addition provides a Warning in preview, and categorises mainpage error articles (new Category:Pages using Math with unknown parameters).
Tested: Template:Math/testcases (also to Preview), and live articles Priview only. DePiep ( talk) 19:02, 11 January 2021 (UTC)
The current CSS rule for the texhtml
class in
MediaWiki:Common.css uses
Times New Roman and its clones for displaying math, with no mention of the
Computer Modern font that <math>
uses. This difference is a major source of visual inconsistency between the two math layout options on Wikipedia, and I propose that a different font fallback sequence to be used so that a CM-based font is used first when available.
Current {{
math}} | <math> | Proposed {{
math}} (view source for CSS rules) |
---|---|---|
123456789 | 123456789 | |
|f(x) − a| < ε | |f(x) − a| < ε | |
(λx.M) | (λx.M) |
(There's something really odd going on with the CM OpenType fonts not having the greek stuff.)
Now this change does not make it indistinguishable from <math>
. There's still a stark difference in font weight (likely due to antialiasing and other rendering shenanigans), and the Greek letters somehow have to be filled in by the Times fallback. But it's one step closer for readers that have the fonts installed.
-- Artoria 2e5 🌉 02:59, 27 April 2021 (UTC)
texhtml
): Could it be that the proposal demo here (3rd column, with in-page css) is missing other, non-font settings that causes this spacing difference? Possibly font-kerning: none;
? -
DePiep (
talk)
09:38, 2 May 2021 (UTC)Hi, the output of this templates for the letters "a" and "α" when they are italic are very similar, as in: a(x) and α(x), so I propose that in the first line use a font-family style like this:
style="font-family: Arial;" or style="font-family: Courier;"
to remove confusion of shape of these letters in the italic case. Thanks, Hooman Mallahzadeh ( talk) 10:56, 2 December 2021 (UTC)
When I run the Wikipedia app on my phone or iPad, and I view in Dark Mode (black background; white text) ... many math formulas are invisible. I tracked it down to formulas that use <math display="block">. Changing to <math> fixes the problem (but, of course, loses the block characteristic).
Can someone relay that issue to whoever is in charge of the math template display software: they should fix it so display="block" works better in Dark Mode.
I'm not sure where to post this, but this template Talk page seems like it may get to the right people. Noleander ( talk) 16:57, 8 August 2022 (UTC)
inline
-only classes for the color flip or possibly adding the HTML element in the CSS, so the display
versions also need to be added or the relevant HTML element removed in the CSS the app is applying.
Izno (
talk)
23:56, 14 August 2022 (UTC)
.mwe-math-inline { background: #000 }
but be missing .mwe-math-display { background: #000 }
, or something like .mwe-math-inline { filter: I don't know what goes here }
but again not a similar version with .mwe-math-display
.
Any interested party can comment in the phabricator, and can post results of experiementsOf course.
But any proposed changes only make it into the official MathXL/Tex Wikimedia software after Wikimedia developers approve it?Anyone with +2 rights in gerrit. This is predominantly WMF engineers but includes some community engineers as well. (NB, this change needs to be made to the app code as a skinning issue, not the separate math extension which drives the LaTeX transformation on Wikipedia.)
who are the Wikimedia [employees]?They usually have something in the hover-over/user page to indicate which they are, though many have a name which includes WMF. Some have only an LDAP account rather than a connected wiki account. Just eyeballing which, Dbrant, now-departed Cleinman, ABorbaWMF, scblr, MSantos, LGoto (PM/PO), possibly Vadim (unclear) are WMF employees. I couldn't tell you which of these have +2, but that's not particularly important to the subject of at least getting a patch in. Getting a review for the patch is then a question usually of jumping on IRC and asking who has +2 for the repo and/or can review the patch.
Is there an individual responsible for resolving that issue?Officially, this is the person in the assignee field in the infobox. That person is supposed to be the one who ultimately makes the change to code/docs/whatever that corrects the issue. That's currently Vadim. However, as you noted, the task is a little chaotic, and I think that's partially because it has no discrete completion criteria, meaning that any issue with dark mode and math is ending up in that task rather than having their own discrete tasks, and partially because the task is being cookie-licked (i.e. he is the assignee but is not in fact working on the task right now).
I'm sure they considered <math display="block"> at the same timeDoubtful, the team implementing it probably didn't even know there was another display mode. My observation is that domain knowledge of extensions is/has been minimal for engineers who aren't really working on the core product. Izno ( talk) 19:15, 15 August 2022 (UTC)
Summary for people that may read this in the future:
Technique | Pros | Cons |
---|---|---|
<math display="block"> | * Handles wide (lengthy) formulas well by providing local side-scrolling. * Supports mixing formulas with non-math text. * Consistent with Manual of Style. * Commonly used already. |
* Formula is NOT visible, at all, in Wikipedia mobile app in Dark Mode (this is not a bug in the app, but an issue with the MathXL display="block" software). |
:<math> | * Simple. * Commonly used already. |
* Contrary to Manual of Style. * Causes problems for accessibility (web reader) tools. * Formulas wider than one page-width use awkward full-window side-scrolling. |
{{bi|left=1.6|<math> ... </math>}} | * Consistent with Manual of Style. | * Not familiar to many editors. * Not described in MOS:MATH or other pages about formatting math formulas. * Formulas wider than one page-width use awkward full-window side-scrolling. |
Does the above table accurately reflect the three options (that have been discussed in this section) for indenting math formulas? Noleander ( talk) 21:29, 21 August 2022 (UTC)
Based on the above disucssion, I'm considering going to MOS:MATH talk page and proposing a minor change in that MOS from
<math display=block>
.to
<math display=block>
or bi|left=1.6|math..../math
Thoughts? (Ignore the incorrect formatting above for the bi-left example ... not sure yet how to get that formatted for the Talk page). Noleander ( talk) 22:49, 21 August 2022 (UTC)
These two cases should work identically.
{{math|± X}}
: ± X{{math|{{plusmn}} X}}
: ± XWhat is going on, why, and what needs to be fixed?
Note: This adds one to Misnested tag with different rendering in HTML5 and HTML4 in Template talk namespace, and I hate to do that, but we need answers. — Anomalocaris ( talk) 22:07, 2 January 2023 (UTC)
In Abel–Ruffini theorem it just so happens in my browser that in History, 2nd paragraph, (search for "real and therefore") the list of "roots r1, r2, and r3" ends up with a line break after "r2" and a comma at the beginning of the next line. This is obviously not very good, and equally obviously I expect there is no simple solution, but perhaps someone can think about it. I tried moving the comma inside the template, but this gives the (noticeably) wrong font. Imaginatorium ( talk) 15:19, 8 October 2023 (UTC)
Formulas entered using <math display="block">
are rendered twice in Chrome browser both on a Windows PC and in Android Chrome app. The first formula appears centered on the page, the second is left-alligned on the next line. A simple example of this can be seen at
Help:Displaying a formula#Block. The bug makes many math and physics articles (e.g.
Taylor series) very difficult to read. The mobile app renders even the inline math twice (e.g. in
electronvolt). Has it already been reported to some developers? What can be done about it? --
egg
14:03, 19 March 2024 (UTC)
Re [2] – does it make sense to use this template "for legible Greek text"? Aza24 (talk) 06:41, 24 March 2024 (UTC)
This template fails to provide proper spacing in expressions like 4 ≥ 3. I therefore expunged the template from an article I just edited. I will do likewise with other articles in which I find it if this flaw persists. Michael Hardy ( talk) 06:22, 25 September 2008 (UTC)
The user Yecryl's statement is "original research". Paul —Preceding unsigned comment added by 188.25.52.21 ( talk) 03:14, 25 February 2011 (UTC)
I modified the style to not wrap on whitespace. This is the same as what Template:nowrap does. Justin W Smith talk/ stalk 19:21, 18 May 2010 (UTC)
How do you incorporate vertical lines, as for example in absolute value or the parallel symbol? -- RockMagnetist ( talk) 21:12, 25 October 2010 (UTC)
|
" as in x = {a | c|a}.
SamuelRiv (
talk)
21:58, 9 March 2011 (UTC)
Is there any difference between mrad and radical?
In the article, I also spotted several other keywords like mapply, minteg, mexp and frac. Is there a complete list of keywords that we can use? Is there any list of predefined parameters (like big) as well?
The article also implicitly teaches us that we can use <sup> to make superscript. Is there anything else similar we should know?
The article is very incomplete. 石庭豐 ( talk) 08:06, 10 August 2011 (UTC)
In the definition of this template, it can be seen that it utilizes both argument #1 and argument #2. However, both of them appear at only one place, and there they are just placed after each other. The code
"{{math|a|b|c|d}}
"
is substituted with
"<span class="texhtml " >a</span>
"
which produces the text "ab". So I'm wondering, what is really the purpose with the argument #2? How is this an improvement over having just #1 (meaning that #2 would be removed)? It must have been placed there by mistake, right? In that case, it should probably be removed. — Kri ( talk) 15:41, 2 June 2012 (UTC)
{{math|big=1|1 + 2 {{=}} 3}}
#2
(even though I didn't write it; that was a bit sloppy of me). Now I have corrected that I my previous comment.{{math|big=1|a|b|c|d}}
still produces a, which is kind of a strange behaviour. In the example in the documentation there is no argument #2
. The first argument is labeled "big
". Since the code for the argument contains an equals sign the label of the argument is what comes before the equals sign and the value of the argument is what comes after it. Unlike the code for the first argument, the code for the second argument doesn't contain an equals sign; hence the second argument is auto-labeled to "#1
", not to "#2
", even though it is the second argument. —
Kri (
talk)
16:46, 2 June 2012 (UTC)In Internet Explorer on laptops and workstations, several of the fonts used for math symbols show up with very thin strokes and in a different style. I try to make in-line math look as much as possible like the text in which it is embedded – much as a math textbook – by using mostly standard text and italics. I only use other fonts for math when absolutely necessary (e.g., when the symbols do not exist in standard text) and then usually on a separate line. I often go to another terminal to see if something looks different on another system. I often compare what I am editing with other articles to see if other editors have frequently used a particular type font. I recently spent a lot of time on several articles, e.g., stiff equation cleaning up some of the mixture of type fonts. I would like to suggest that editors take a look at how a font appears on several terminals before using it heavily. I would also like to suggest that someone with the authority to improve the math templates take a close look at how these templates (e.g., the many examples in this article) work on various terminal types. — Anita5192 ( talk) 19:05, 26 June 2012 (UTC)
Now that
MathJax is working on this wiki it might be worth considering making the output of this template compatible with MathJax, so that pages which mix <math> and {{
math}} where posible use the same font. This could be achieved by modifying the CSS rule to be span.texhtml { font-family: MathJax_Math, serif; }
. There is some discussion on this at
Wikipedia_talk:WikiProject_Mathematics/Archive/2012/Jul#MathJax working.--
Salix (
talk):
17:22, 27 July 2012 (UTC)
span.texhtml { font-family: MathJax_Main, serif; font-size: 123%;}
span.texhtml var { font-family: MathJax_Math, serif;}
span.texhtml sup { font-size: 70.7%; }
span.texhtml sub { font-size: 70.7%; }
@font-face
will be invoked. Having font-family: MathJax_Main, serif;
will use the same font as used by MathJax if availiable but fallback to serif if its not. There would be a problem if there is no <math> on the page then it will use the fallback.What I could now present are the formula from a fresh section Square (algebra) #In complex analysis, and samples made just to this cause like f ∘ g = λx. f (g ( x)), P n ⇉ f, or ⟨ ψ | A | ψ ⟩. These samples are not useful in this literal form, but demonstrate various ideas how so complicated expressions may be clarified. Very likely, there are several cases in articles with links inside a formula, but I have no idea how to search for these. And I am not sure that underlines should be turned off for all {{math}}s, or even by default, because there are different formulas. For example, A ∈ SL(2, R) looks fine with underlines. Incnis Mrsi ( talk) 21:24, 4 September 2012 (UTC)
Should a math template be used for numbers? Which one is better, 1234567890 or 1234567890, in an article? I've noticed that both are often used in the same article. 069952497a ( talk) 20:25, 2 February 2013 (UTC)
I copied the discussion thread on (to have it on one location only): Wikipedia talk:WikiProject Mathematics/Typography#Consequences of a lack of consensus concerning inline text style mathematical formulae. — Tentacles Talk or ✉ mailto:Tentacles 22:06, 24 March 2016 (UTC)
I think it would be good, if we could remove this template and simply use the math tag instead. A research group from the rochester institute of technology has started to develop software which is capable to convert the templates back to regular math. -- Physikerwelt ( talk) 18:02, 16 May 2016 (UTC)
-- [[
User:Edokter]] {{
talk}}
18:48, 16 May 2016 (UTC)// Makes double clicking on a mathematical equation copy the source latex
$(".mwe-math-mathml-a11y").each(function(ind,ele) {
root = ele.parentElement;
$(root).dblclick(function(ev) {
console.log(ev.delegateTarget);
var root = ev.delegateTarget;
var anno = $(root).find("annotation");
var latex = $(root).find("annotation").text();
var $temp = $("<input>")
$("body").append($temp);
$temp.val(latex).select();
document.execCommand("copy");
$temp.remove();
});
});
I was watching the conversation here, but since there is no real solution, maybe these remarks help to solve the problem in the future.
<math>a+b=c</math>
- works{{math|a+b=c}}
- you have to escape the equal sign - {{math|a+b{{=}}c}}
- you have to know where to put spaces and add them manually - {{math|a + b {{=}} c}}
- worksWhat I am currently hoping for is MathJax 3.0. While the current alpha version rightly carries the notice "do not use in production" it might be working properly next year. Since it supports node.js out of the box I would guess that it is not more difficult to integrate into mediawiki than the current setup and the average readers can get a client side rendering that is as good as the former MathJax user setting.-- Debenben ( talk) 00:16, 25 January 2018 (UTC)
I've been told in the past (in the context of normal text, not in the context of this template) that it is undesirable to put italic wikimarkup around greek letters. However, the template is providing an upright font for greek characters (α,β,γ,δ,ε,ζ) that does not match the output of math markup. How should this be handled? Spinning Spark 17:37, 23 December 2016 (UTC)
On phab:T153938 it was proposed to add some hidden math for the math template E=mc^2 (not to be confused with the math tag ). One option I see is to add a hidden math tag to this math template
at least from the math extension there is no way to access the math template (availible for english wikipedia). Any comments, suggestions on this idea? -- Physikerwelt ( talk) 22:03, 9 January 2017 (UTC)
Presumably the example should have been
rather than the ugly atrocity actually given, which assumes incorrectly that {{ math}} syntax is the same as LaTeX syntax. I really hope this isn't a developer attempt to make {{ math}} work as badly as <math> in an attempt to drive editors away from it. — David Eppstein ( talk) 03:56, 10 January 2017 (UTC)
Looking at some of the dificulties Algorithms for calculating variance we have some exotic unicode symbols. {{math|''n'' ← 0, Sum ← 0, SumSq ← 0}} some include templates {{math|Var {{=}} (SumSq − (Sum × Sum) / n) / (n − 1)}} From Bra–ket notation we have {{math|{{bra-ket|·|⋅}}}} which leads to several levels of nested templates including unicode {{ rangle}} and html entities | the pipe character |.
At the least such a conversion algorithm would need to cope with the various math notation template. -- Salix alba ( talk): 10:07, 11 January 2017 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Request that inline math text be made non-breaking by adding the class nowrap
to <span class="...">
. Inline math formulas should not be broken across lines.
Hgrosser (
talk)
09:05, 4 May 2017 (UTC)
texhtml
which specifies white-space: nowrap
.
Ahecht (
TALK![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi! I'm editing an article in the wiki of a game called "Stardew Valley" and I noticed the Template:Math doesn't exist there. Is there a way I can get the source of this template so I can copy and use it there? Thanks! Santisanti32 ( talk) 05:38, 5 May 2017 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi! I was editing an article in the wiki of a game called "Stardew Valley" and I noticed that the Template:Math doesn't exist. Is there a way I can get the source of this template so I can create it in the other wiki? Thanks! Santisanti32 ( talk) 06:13, 5 May 2017 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace code with all code from {{ Math/sandbox}} ( diff).
Change: added Module:Check for unknown parameters.
Background: Math formulae are prone to use math symbols =
and |
incorrectly in template parameter entering (math meaning versus parameter parsing effect). See
parameter usage (now outdated).
The addition provides a Warning in preview, and categorises mainpage error articles (new Category:Pages using Math with unknown parameters).
Tested: Template:Math/testcases (also to Preview), and live articles Priview only. DePiep ( talk) 19:02, 11 January 2021 (UTC)
The current CSS rule for the texhtml
class in
MediaWiki:Common.css uses
Times New Roman and its clones for displaying math, with no mention of the
Computer Modern font that <math>
uses. This difference is a major source of visual inconsistency between the two math layout options on Wikipedia, and I propose that a different font fallback sequence to be used so that a CM-based font is used first when available.
Current {{
math}} | <math> | Proposed {{
math}} (view source for CSS rules) |
---|---|---|
123456789 | 123456789 | |
|f(x) − a| < ε | |f(x) − a| < ε | |
(λx.M) | (λx.M) |
(There's something really odd going on with the CM OpenType fonts not having the greek stuff.)
Now this change does not make it indistinguishable from <math>
. There's still a stark difference in font weight (likely due to antialiasing and other rendering shenanigans), and the Greek letters somehow have to be filled in by the Times fallback. But it's one step closer for readers that have the fonts installed.
-- Artoria 2e5 🌉 02:59, 27 April 2021 (UTC)
texhtml
): Could it be that the proposal demo here (3rd column, with in-page css) is missing other, non-font settings that causes this spacing difference? Possibly font-kerning: none;
? -
DePiep (
talk)
09:38, 2 May 2021 (UTC)Hi, the output of this templates for the letters "a" and "α" when they are italic are very similar, as in: a(x) and α(x), so I propose that in the first line use a font-family style like this:
style="font-family: Arial;" or style="font-family: Courier;"
to remove confusion of shape of these letters in the italic case. Thanks, Hooman Mallahzadeh ( talk) 10:56, 2 December 2021 (UTC)
When I run the Wikipedia app on my phone or iPad, and I view in Dark Mode (black background; white text) ... many math formulas are invisible. I tracked it down to formulas that use <math display="block">. Changing to <math> fixes the problem (but, of course, loses the block characteristic).
Can someone relay that issue to whoever is in charge of the math template display software: they should fix it so display="block" works better in Dark Mode.
I'm not sure where to post this, but this template Talk page seems like it may get to the right people. Noleander ( talk) 16:57, 8 August 2022 (UTC)
inline
-only classes for the color flip or possibly adding the HTML element in the CSS, so the display
versions also need to be added or the relevant HTML element removed in the CSS the app is applying.
Izno (
talk)
23:56, 14 August 2022 (UTC)
.mwe-math-inline { background: #000 }
but be missing .mwe-math-display { background: #000 }
, or something like .mwe-math-inline { filter: I don't know what goes here }
but again not a similar version with .mwe-math-display
.
Any interested party can comment in the phabricator, and can post results of experiementsOf course.
But any proposed changes only make it into the official MathXL/Tex Wikimedia software after Wikimedia developers approve it?Anyone with +2 rights in gerrit. This is predominantly WMF engineers but includes some community engineers as well. (NB, this change needs to be made to the app code as a skinning issue, not the separate math extension which drives the LaTeX transformation on Wikipedia.)
who are the Wikimedia [employees]?They usually have something in the hover-over/user page to indicate which they are, though many have a name which includes WMF. Some have only an LDAP account rather than a connected wiki account. Just eyeballing which, Dbrant, now-departed Cleinman, ABorbaWMF, scblr, MSantos, LGoto (PM/PO), possibly Vadim (unclear) are WMF employees. I couldn't tell you which of these have +2, but that's not particularly important to the subject of at least getting a patch in. Getting a review for the patch is then a question usually of jumping on IRC and asking who has +2 for the repo and/or can review the patch.
Is there an individual responsible for resolving that issue?Officially, this is the person in the assignee field in the infobox. That person is supposed to be the one who ultimately makes the change to code/docs/whatever that corrects the issue. That's currently Vadim. However, as you noted, the task is a little chaotic, and I think that's partially because it has no discrete completion criteria, meaning that any issue with dark mode and math is ending up in that task rather than having their own discrete tasks, and partially because the task is being cookie-licked (i.e. he is the assignee but is not in fact working on the task right now).
I'm sure they considered <math display="block"> at the same timeDoubtful, the team implementing it probably didn't even know there was another display mode. My observation is that domain knowledge of extensions is/has been minimal for engineers who aren't really working on the core product. Izno ( talk) 19:15, 15 August 2022 (UTC)
Summary for people that may read this in the future:
Technique | Pros | Cons |
---|---|---|
<math display="block"> | * Handles wide (lengthy) formulas well by providing local side-scrolling. * Supports mixing formulas with non-math text. * Consistent with Manual of Style. * Commonly used already. |
* Formula is NOT visible, at all, in Wikipedia mobile app in Dark Mode (this is not a bug in the app, but an issue with the MathXL display="block" software). |
:<math> | * Simple. * Commonly used already. |
* Contrary to Manual of Style. * Causes problems for accessibility (web reader) tools. * Formulas wider than one page-width use awkward full-window side-scrolling. |
{{bi|left=1.6|<math> ... </math>}} | * Consistent with Manual of Style. | * Not familiar to many editors. * Not described in MOS:MATH or other pages about formatting math formulas. * Formulas wider than one page-width use awkward full-window side-scrolling. |
Does the above table accurately reflect the three options (that have been discussed in this section) for indenting math formulas? Noleander ( talk) 21:29, 21 August 2022 (UTC)
Based on the above disucssion, I'm considering going to MOS:MATH talk page and proposing a minor change in that MOS from
<math display=block>
.to
<math display=block>
or bi|left=1.6|math..../math
Thoughts? (Ignore the incorrect formatting above for the bi-left example ... not sure yet how to get that formatted for the Talk page). Noleander ( talk) 22:49, 21 August 2022 (UTC)
These two cases should work identically.
{{math|± X}}
: ± X{{math|{{plusmn}} X}}
: ± XWhat is going on, why, and what needs to be fixed?
Note: This adds one to Misnested tag with different rendering in HTML5 and HTML4 in Template talk namespace, and I hate to do that, but we need answers. — Anomalocaris ( talk) 22:07, 2 January 2023 (UTC)
In Abel–Ruffini theorem it just so happens in my browser that in History, 2nd paragraph, (search for "real and therefore") the list of "roots r1, r2, and r3" ends up with a line break after "r2" and a comma at the beginning of the next line. This is obviously not very good, and equally obviously I expect there is no simple solution, but perhaps someone can think about it. I tried moving the comma inside the template, but this gives the (noticeably) wrong font. Imaginatorium ( talk) 15:19, 8 October 2023 (UTC)
Formulas entered using <math display="block">
are rendered twice in Chrome browser both on a Windows PC and in Android Chrome app. The first formula appears centered on the page, the second is left-alligned on the next line. A simple example of this can be seen at
Help:Displaying a formula#Block. The bug makes many math and physics articles (e.g.
Taylor series) very difficult to read. The mobile app renders even the inline math twice (e.g. in
electronvolt). Has it already been reported to some developers? What can be done about it? --
egg
14:03, 19 March 2024 (UTC)
Re [2] – does it make sense to use this template "for legible Greek text"? Aza24 (talk) 06:41, 24 March 2024 (UTC)