Jump to content

Wikipedia talk:Manual of Style/Mathematics

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

WikiProject iconManual of Style
WikiProject iconThis page falls within the scope of the Wikipedia:Manual of Style, a collaborative effort focused on enhancing clarity, consistency, and cohesiveness across the Manual of Style (MoS) guidelines by addressing inconsistencies, refining language, and integrating guidance effectively.
Note icon
This page falls under the contentious topics procedure and is given additional attention, as it closely associated to the English Wikipedia Manual of Style, and the article titles policy. Both areas are subjects of debate.
Contributors are urged to review the awareness criteria carefully and exercise caution when editing.
Note icon
For information on Wikipedia's approach to the establishment of new policies and guidelines, refer to WP:PROPOSAL. Additionally, guidance on how to contribute to the development and revision of Wikipedia policies of Wikipedia's policy and guideline documents is available, offering valuable insights and recommendations.

Not-greater-than rendering problems

[edit]

On Talk:Inequality (mathematics)/Archive 1#Renderization of "not greater than" symbol, Fgnievinski reports problems rendering U+226F NOT GREATER-THAN, with Chrome version 123.0.6312.106 on Windows 10 version 22H2:

(The first three are all just the Unicode character not displaying properly.)

I assume this be added to the list of characters that should only be expressed with <math>...</math>? Are there any related characters for which anyone is also experiencing rendering problems? -- Beland (talk) 02:37, 18 April 2024 (UTC)[reply]

Imo, the most problematic issue is with the symbol for function composition (∘ or ○). On some devices such as Safari on my laptop, the first one is so small that it is easily confused with an interpunct, and the second one has the same size as \circ (). On other devices, such as Safari on my iPhone, the first has the same size as \circ, and the second one is much larger. I am thus in favor of using only latex for function composition, but this implies to edit a lot of articles. D.Lazard (talk) 16:36, 18 April 2024 (UTC)[reply]
The nice thing about a latex is that it can stretch to fit whatever size you need. EEng 16:44, 18 April 2024 (UTC)[reply]
@D.Lazard: I only see 231 articles with "∘". There are 597 articles with "○". It would be very easy for me to change all the instances of "∘" to "○". Would that solve the problem of visual confusion? -- Beland (talk) 21:41, 18 April 2024 (UTC)[reply]
This would deserve more discussion, since, on my smartphone, "○" is much too large. My opinion is that only latex should be used when the symbol for function composition is used. D.Lazard (talk) 09:16, 19 April 2024 (UTC)[reply]
@D.Lazard: OK, I've added all three characters to the list, recommending LaTeX markup instead. -- Beland (talk) 23:18, 19 April 2024 (UTC)[reply]
No, the big circle is inappropriately large. –jacobolus (t) 14:40, 19 April 2024 (UTC)[reply]

One thing that would help a lot in my opinion is (English) Wikipedia directly hosting a "math" font indicated first in the font stack in the CSS for {{math}} templates which explicitly included a wide range of supported glyphs. This could be e.g. something constructed from Computer Modern glyphs, or STIX 2.0 (or something else?). The appearance of STIX 2 is not an exact stylistic match for Computer Modern, but it's also not inordinately far away. I don't really know what would be technically required for MediaWiki/Wikipedia to host something like that though. –jacobolus (t) 14:54, 19 April 2024 (UTC)[reply]

@Jacobolus: If you'd like to discuss that with the responsible parties, see [1] (where one developer said the server side generally doesn't host fonts) or [2] (where one person recommending asking Microsoft to fix their fonts). Beland (talk) 23:22, 19 April 2024 (UTC)[reply]
Yes, please voice your concerns at the bug tracker, because the report was dismissed as not a technical issue. fgnievinski (talk) 18:19, 20 April 2024 (UTC)[reply]

Fractional exponents and subscripts

[edit]

I have just discovered using {{sfrac}} for fractional exponents and subscripts (which is what MOS:FRAC and Wikipedia:Manual of Style/Mathematics#Fractions require for science and math articles) doesn't really work visually, at least on my computer - the surrounding text is easily confused as part of the numerator or denominator and sometimes it's just unclear that the fraction is supposed to be a superscript or subscript at all. I'm wondering what other people see and what the preferred solution for this would be, if it is indeed really a problem? Here are some examples with {{math}} style applied:

  • {{sfrac}} for subscript: x1/2
  • {{sfrac}} for superscript: x1/2
  • {{frac}} for subscript: x12
  • {{frac}} for superscript: x12
  • Unicode character for subscript: x½
  • Unicode character for superscript: x½
  • <math>...</math> with subscript:
  • <math>...</math> with superscript:

Perhaps the MOS should be changed to use one of these in this sort of situation? Only a few fractions are available in precomposed Unicode characters, so that's probably not a complete solution, especially if we want visual consistency. That leaves the option of partially lifting the science-and-math ban on {{frac}} which would be slightly visually inconsistent (and TBH not all that well-rendered, either), and the option of switching any problematic expressions to LaTeX-style markup. Or perhaps someone has another clever solution or more illuminating examples or other considerations? -- Beland (talk) 08:56, 28 May 2024 (UTC)[reply]

In sub- or superscripts, it's usually best to use a horizontal fraction, as in x1/2 or x1/2, but LaTeX works better still: , . –jacobolus (t) 10:15, 28 May 2024 (UTC)[reply]
Oh, nice, that looks way better and is already contemplated by the MOS. I've added a note about that situation, since it seems to occur a lot. (I'm systematically getting rid of the precomposed characters where they are not allowed). Many thanks! -- Beland (talk) 16:15, 28 May 2024 (UTC)[reply]

Markup for Common sets of numbers?

[edit]

The guidelines for § Common sets of numbers mention using \textbfin LaTeX. What about the LaTeX) commands

  • \C ()
  • \H ()
  • \N ()
  • \Q ()
  • \R ()
  • \Z ()

all of which render in blackboard? -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 14:02, 25 July 2024 (UTC)[reply]

fixing {{Percent}}

[edit]

Hoping someone with template editor rights and more knowledge of Lua can fix {{Percent}}, which is outputting hyphen-minus (---) and not minus-minus (−), e.g.: {{percent|-1}}-1%

That should be producing: −1% —Joeyconnick (talk) 23:28, 29 July 2024 (UTC)[reply]

Integral not bracketing the integrand

[edit]

Does:

warrant reformatting on the grounds of being confusing to those unfamiliar with the practice, or does MOS:STYLERET apply?

Thanks, catslash (talk) 23:51, 7 August 2024 (UTC)[reply]