2

I have this equation in LaTeX format:

height = \frac{H \ast  D}{\sqrt{W^{2}+H^{2}}}

It is converted to image (using a external compiler):

enter image description here

Can I use latex (or other) to write math equations in tag wikis, so that it will be converted to images automatically? Or must I use images?

4
  • 3
    Is really necessary to have it in a tag wiki?
    – Braiam
    May 18, 2015 at 2:51
  • @Braiam It depends, for me it's very important, others suddenly, it isn't important May 18, 2015 at 3:03
  • Only on sites that have LaTeX support enabled, which Stack Overflow does not. You'd have to make a very compelling argument for it to be enabled here.
    – animuson StaffMod
    May 18, 2015 at 3:12
  • Relevant to title, in some simple cases, if not to your specific equation: Superscripts and subscripts (<sup>,<sub>) are allowed HTML.
    – PJTraill
    May 25, 2015 at 10:44

2 Answers 2

4

Only a select handful of sites in the network (LaTeX.SE, Math.SE, Physics.SE, and others I'm likely leaving out here) have TeX support enabled. It's a very heavy performance hit on Stack Overflow - likely due to the site's size alone - and as such, wouldn't be a wise thing to add in the few cases that it's had to be used.

I've only ever run into the desire to use LaTeX in questions or answers about five times in the last 3+ years. I feel that for the sake of overall site performance, me having to use a picture to express TeX is a fair compromise.

2
1

Since TeX support is enabled on a limited number of stackoverflow sites, the second best option is to use an online TeX compiler (if you don't have one installed):

  1. Convert TeX code to an image
  2. Add image to the tag wiki page.
  3. Add source code to the image's alternative text.

![height = \frac{H \ast D}{\sqrt{W^{2}+H^{2}}}][1]
[1]: http://i.stack.imgur.com/LvD5I.gif

height = \frac{H \ast  D}{\sqrt{W^{2}+H^{2}}}

Why do I think it's good to include source code? It allows further editors to fix mistakes or add other TeX images based on the previous ones.

4
  • Better, use it as (part of) the alt-text. Jun 22, 2015 at 12:48
  • @Deduplicator is alt-text ever shown? Jun 22, 2015 at 13:02
  • Yes, if you hover over an image. Or don't show images. Jun 22, 2015 at 13:08
  • @Deduplicator I agree that this is a better option. Updated my answer. Jun 22, 2015 at 13:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .