Help talk:Displaying a formula

From Wikipedia, the free encyclopedia
Jump to: navigation, search
the Wikipedia Help Project  
WikiProject icon This page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the help menu or help directory. Or ask for help on your talk page and a volunteer will visit you there.
 ???  This page does not require a rating on the project's quality scale.
 ???  This page has not yet received a rating on the project's importance scale.

higher resolution?[edit]

Is it possible to specify the resolution or the amount of detail used in the images produced by the math tag? The images have always been a little rough, but now that I'm using a new computer with a Retina display, the roughness is even more noticeable. Maybe even two images could be produced from these tags, one for the common resolution displays and one for higher definition displays. --Lance E Sloan (talk) 14:26, 30 August 2013 (UTC)

Have you tried switching to MathJax?. The setting's at the end of Special:Preferences#mw-prefsection-rendering. It uses text rather than bitmaps to render text so should work better on a Retina display. Given that solution has been (recently) added I don't see anything being done to the bitmap rendering. Work on that seemed to come to a halt a while ago: even before Retina displays there were issues with rendering quality. What you describe is probably feasible but now MathJax is here I don't see anyone doing much with the older bitmap code.--JohnBlackburnewordsdeeds 15:46, 30 August 2013 (UTC)
MathJax is unreadable compared to Latex. I'd very like too to see Latex renderred with 2x resolution. Sheerun (talk) 18:32, 12 January 2014 (UTC)
I totally agree. It's like it was typeset in Word from the '90s. Ug! Of course, if it gets used, people will make it better, and it looks like their output is better; I don't know how to turn that on on Wikipedia. —Ben FrantzDale (talk) 13:49, 29 April 2014 (UTC)
I really don't get this criticism. The MathJax rendering looks fine to me, and always superior to that from texvc.
MathJax rendering of part of help formula using google chrome on a mac, some bluring of image due to upload process PNG/Texvc rendering of help formula, google chrome on a mac
MathJax rendering of part of help formula using google chrome on a mac, some bluring of image due to upload process TexVC rendering of help formula, google chrome on a mac
In the above side by side rendering there is not much difference. In the PNG rendering there are some aliasing effects on the brackets whilst the MathJax looks a lot smoother. The superscript on the b is a little higher in MathJax and the texvc font size is larger. I would say there is slightly too much space at the bottom of the brackets.
Are you seeing these sort of renderings or does it look worse? It might be a browser/font issue as MathJax uses the fonts you have installed on the local machine.--Salix alba (talk): 14:56, 29 April 2014 (UTC)
Actually, MathJax uses Computer Modern (TeX) webfonts by default, unless you have local STIX fonts installed. Edokter (talk) — 20:36, 29 April 2014 (UTC)
I suspect that users who are negative about MathJax, are Windows/IE users. Font and typesetting in IE quickly turns dreadful, especially if you have disabled anti aliasing/cleartype. —TheDJ (talkcontribs) 22:10, 29 April 2014 (UTC)
While at a previous employer I worked on a solution converting LaTeX formulas into ultra-high-res PNGs (if I recall in the 1400-7200 DPI range) to be traced into SVGs for use in PDF documents generated by Apache FOP. The results we I got were beautiful even zoomed in beyond the original render resolution, and the SVGs weren't particularly large, but since FOP choked on large numbers of SVGs we discarded the solution. With Wikimedia's pervasive adoption of SVGs, I feel this would work very well here. Contact me if I can assist in implementing a similar strategy here. -Thanks Loren Osborn (talk) — 18:16, 27 June 2014 (UTC)

Temporary problem with parsing equations?[edit]

See this page:

It is filled with errors "Failed to parse(unknown function '\begin')". It seems the equations have been there for a long time (I checked recent history), and no one has complained about these errors before in the talk page. So it seems that the problem is with the mediawiki software and is temporary.

I will visit later to check if it got fixed. In the mean time please post if you have more clue on this error. - Subh83 (talk | contribs) 18:36, 7 February 2014 (UTC)

Yes it is a new problem, not with the pages (many including this) so with the software. It's been reported here and here, so will hopefully soon be fixed or at least someone will start looking at it.--JohnBlackburnewordsdeeds 18:47, 7 February 2014 (UTC)

can Wikipedia math markup be "rendered" / exported as html / ASCII?[edit]

I guess math markup viewer understands this markup well enough to render it, or maybe generate png images. But is there a similar tool that, perhaps for some simple subset of the markup language, would "render" the formulas in html / ASCII? I mean, many of the formulas are simple enough and don't need any real pretty printing; but they sure look ugly in the underlying markup when images are not loaded in browser. (talk) 22:19, 8 February 2014 (UTC)

You can enable MathJax rendering in your preferences, which uses Javascript to generate HTML instead of PNG images. The HTML is often quite complex so I'm not sure it's what you are looking for.
There's also a new discussion, Wikipedia talk:WikiProject Mathematics#How to display math with the next release, on what we'll see in the next version of the Math renderer. That might be a better place to raise this as if it's not in the current version it could be added in the next.--JohnBlackburnewordsdeeds 23:05, 8 February 2014 (UTC)

edit protection[edit]

Why is the page (fully) protected from editing?--Kmhkmh (talk) 22:01, 13 February 2014 (UTC)

Some problems[edit]

Is there something that I could use for smaller letters using LaTex, not the {{math}}, like \tfrac{2}{4} = 0.5 for small fractions? This could be helpful in the text. And is there some option to get non-English (and non-Greek, too) letters in formula? For example, I would want to put in this formula some text in Russian or whatever, where currently word "energy" is. --Edgars2007 (talk/contribs) 12:29, 28 March 2014 (UTC)

You can use <math>{\scriptstyle\text{foo bar}}</math> which gives {\scriptstyle\text{foo bar}}. Supscripts, superscripts, \overset, \underset also put the text in a smaller size.--Salix alba (talk): 15:07, 28 March 2014 (UTC)
Thanks! --Edgars2007 (talk/contribs) 15:19, 31 March 2014 (UTC)

MathJax as header[edit]

@Salix alba: The heading === MathJaX === creates an element with id MathJax this breaks mathjax see --Physikerwelt (talk) 06:57, 21 April 2014 (UTC)

Including on this page. -- [[User:Edokter]] {{talk}} 19:27, 27 June 2014 (UTC)

Hidden colors[edit]


I just undid myself, discovering that colors would show up when they were never programed too. This could be a bug, so I leave it to those more knowledgeable to post on Bugzilla. (talk) 22:11, 29 August 2014 (UTC)

Lots about TeX, but where do I learn about HTML?[edit]

I think I would like to use the HTML rendering in a new article I'm writing. This is the only article I can find on the topic of math on the wiki, at least using Google. Is there another article like this one about how to use the HTML rendering? Maury Markowitz (talk) 14:44, 8 November 2014 (UTC)

Perhaps {{math}} will give some pointers. But other than that, there is no 'real' HTML math tutorial; it is only intended for very simple formulae that can be made with simple HTML. -- [[User:Edokter]] {{talk}} 14:48, 8 November 2014 (UTC)
Its a bit messy there is Wikipedia:Manual of Style/Mathematics#Using HTML, Wikipedia:Rendering_math and List of mathematical symbols. --Salix alba (talk): 16:32, 8 November 2014 (UTC)