Page MenuHomePhabricator

texvc renders sim relation as tilde in html
Closed, ResolvedPublic


Author: cbm.wikipedia

In HTML output, Texvc renders the \sim character as a tilde. This leads to output like that at the bottom of the section 'Simple example' in the following link (make sure your preferences are set so the math shows up as HTML)

This looks bad because the tilde in many text fonts is set very high above the baseline, not in the middle of the line like a binary operator should be.

Examining the HTML output shows that the \sim really is rendered as a tilde there.

The TeX "sim" operator should be rendered as the "sim" entity, ∼. This is an HTML 4.0 entity and so it should be supported pretty much everywhere.

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:06 PM
bzimport added a project: Math.
bzimport set Reference to bz23397.
bzimport added a subscriber: Unknown Object (MLST).

cbm.wikipedia wrote:

I was incorrect: when I checked the actual bytes, I found Texvc is currently rendering the tilde as Unicode U+02DC, "small tilde". No wonder it looks so bad.

Actually it used the entity ˜ where it should of used ∼ Both are HTML 4 entities according to wikipedia.

Fixed in r65893