Help talk:Displaying a formula: Difference between revisions

Content deleted Content added
Reverted 1 edit by 2803:2D60:104A:96F6:0:37:CF0F:EA01 (talk): Not understandable, and clearly not about the article
m Archiving 2 discussion(s) to Help talk:Displaying a formula/Archive 3) (bot
Line 7:
}}
{{archives|search=yes}}
 
== Use of raw HTML ==
 
[[Help:Displaying a formula#Use of raw HTML]] mentions that [[LaTeX]] <!-- {{Template:LaTeX}} is not available --> is better than raw HTML, but then describes converting to {{tl|math}}, which does not support LaTeX, rather than to {{tag|math}}, which does. Shouldn't it at least mention the later and give a link to #LaTeX vs. {{braces|math}}?
 
BTW, how do I escape braces in a wikilink? [[User:Chatul|Shmuel (Seymour J.) Metz Username:Chatul]] ([[User talk:Chatul|talk]]) 15:37, 20 February 2023 (UTC)
:For using braces in a wikilink, you must use a pipe. For example, [[nth root|{{mvar|n}}th root]] may written as <nowiki>[[Nth root|{{mvar|n}}th root]]</nowiki>. [[User:D.Lazard|D.Lazard]] ([[User talk:D.Lazard|talk]]) 17:19, 20 February 2023 (UTC)
::I'm not asking about braces in the displayed text, I'm asking about braces in the page or section name; in this case, <nowiki>Help:Displaying a formula#Use #LaTeX vs. {{braces|math}}</nowiki>
:A related issue is that {{tag|math}} looks like raw HTML to the uninitiated, but in raw HTML the contents are interpreted as MATHML while in wikitext the contents are interpreted as {{stylized LaTeX}}. -- [[User:Chatul|Shmuel (Seymour J.) Metz Username:Chatul]] ([[User talk:Chatul|talk]]) 09:50, 8 May 2023 (UTC)
 
== Vertical alignment advice seems outdated? ==
 
This help page says:
 
: {{tq|i=yes|If you need to align it otherwise, use <code><nowiki><math style="vertical-align:-100%;">...</math></nowiki></code> and play with the <syntaxhighlight lang="latex" inline>vertical-align</syntaxhighlight> argument until you get it right; however, how it looks may depend on the browser and the browser settings.}}
:
: {{tq|i=yes|If you rely on this workaround, if and when the rendering on the server gets fixed in a future release, this extra manual offset will suddenly make every affected formula align ''incorrectly''. So use it sparingly, if at all.}}
 
This seems wrong. Looks like the software now explicitly sets vertical-align to some specific value and does not allow user adjustment. For example <math>\tfrac12\pi r^2</math> and <math>2\pi r</math> are not aligned to the same baseline (the one with the fraction is a bit too high), but if I try to set <code>vertical-align</code> explicitly nothing happens: even something dramatic like <code><nowiki><math style="vertical-align:-500%;">\tfrac12\pi r^2</math></nowiki></code> still appears like <math style="vertical-align:-500%">\tfrac12\pi</math> which is unchanged. If I want to adjust I need to wrap in a span like: <code><nowiki><span style="vertical-align:-.03em;"><math>\tfrac12\pi r^2</math></span> <span style="vertical-align:-.02em;"><math>2\pi r.</math></span></nowiki></code><span style="vertical-align:-.03em;"><math>\tfrac12\pi r^2</math></span> <span style="vertical-align:-.02em;"><math>2\pi r.</math></span> But since even the basic TeX is not ''quite'' right (at least on my computer/browser/skin) I don’t intend to do this in practice on Wiki articles.
 
Perhaps that section should be removed or at least amended. –[[user:jacobolus|jacobolus]] [[User_talk:jacobolus|(t)]] 03:54, 20 March 2023 (UTC)
 
== "Rendering" TeX/LaTeX ==