Not signed in (Sign In)

Not signed in

Want to take part in these discussions? Sign in if you have an account, or apply for one below

  • Sign in using OpenID

Site Tag Cloud

2-category 2-category-theory abelian-categories adjoint algebra algebraic algebraic-geometry algebraic-topology analysis analytic-geometry arithmetic arithmetic-geometry book bundles calculus categorical categories category category-theory chern-weil-theory cohesion cohesive-homotopy-type-theory cohomology colimits combinatorics complex complex-geometry computable-mathematics computer-science constructive cosmology deformation-theory descent diagrams differential differential-cohomology differential-equations differential-geometry digraphs duality elliptic-cohomology enriched fibration foundation foundations functional-analysis functor gauge-theory gebra geometric-quantization geometry graph graphs gravity grothendieck group group-theory harmonic-analysis higher higher-algebra higher-category-theory higher-differential-geometry higher-geometry higher-lie-theory higher-topos-theory homological homological-algebra homotopy homotopy-theory homotopy-type-theory index-theory integration integration-theory internal-categories k-theory lie-theory limits linear linear-algebra locale localization logic mathematics measure measure-theory modal modal-logic model model-category-theory monad monads monoidal monoidal-category-theory morphism motives motivic-cohomology nlab noncommutative noncommutative-geometry number-theory of operads operator operator-algebra order-theory pages pasting philosophy physics pro-object probability probability-theory quantization quantum quantum-field quantum-field-theory quantum-mechanics quantum-physics quantum-theory question representation representation-theory riemannian-geometry scheme schemes set set-theory sheaf simplicial space spin-geometry stable-homotopy-theory stack string string-theory superalgebra supergeometry svg symplectic-geometry synthetic-differential-geometry terminology theory topology topos topos-theory tqft type type-theory universal variational-calculus

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome to nForum
If you want to take part in these discussions either sign in now (if you have an account), apply for one now (if you don't).
    • CommentRowNumber1.
    • CommentAuthorTobyBartels
    • CommentTimeSep 2nd 2012
    • (edited Sep 2nd 2012)

    Instiki does some weird stuff sometimes with fonts inside mathematics. As we all know from LaTeX, text fonts shouldn’t affect math fonts. But on the Lab they can.

    Example: *$\sin$* produces ‘sin\sin’, exactly the same as $\sin$, which produces ‘sin\sin’. This is as it should be. But now put it in a theorem environment, and they’re all italics! Since we don’t have those on the Forum, see the Sandbox.

    I don’t know if the problem is Instiki, MathML, or even Firefox.

    • CommentRowNumber2.
    • CommentAuthorTobyBartels
    • CommentTimeSep 2nd 2012

    Sorry, I should have named this thread something more specific.

    • CommentRowNumber3.
    • CommentAuthorMike Shulman
    • CommentTimeSep 2nd 2012

    Even more curiously, when I read comment #1 in Google Reader, the first ’sinsinwas italicized!

    • CommentRowNumber4.
    • CommentAuthorTobyBartels
    • CommentTimeSep 2nd 2012

    So things are definitely browser dependent! Hopefully that’s a bug in Google Reader.

    • CommentRowNumber5.
    • CommentAuthorMike Shulman
    • CommentTimeSep 2nd 2012

    Google Reader isn’t a browser, it’s a webapp that runs in a browser. I was running Google Reader in Firefox, the same browser I use to read the Forum.

    • CommentRowNumber6.
    • CommentAuthorTobyBartels
    • CommentTimeSep 2nd 2012

    I see. Well, still hopefully it has a bug, possibly in its CSS or something.

    • CommentRowNumber7.
    • CommentAuthorZhen Lin
    • CommentTimeSep 2nd 2012

    There’s a similar problem in ordinary LaTeX: if you write $\text{abc}$, then it gets rendered in italics whenever the surrounding text is in italics. This, I suspect, is by design. The right way is to use \mathrm{abc} or \textrm{\upshape abc}.

    But what’s happening here seems to be a bug in the MathML output. First of all – it happens even under MathJax. Perhaps the problem is that the mathvariant="normal" attribute is not attached to the elements which are supposed to be upright. That doesn’t explain Firefox though, because elements are assumed to have -moz-math-font-style="normal"… I can only guess that there’s a CSS bug.

    • CommentRowNumber8.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 2nd 2012

    I can’t check the source right now, but I think this is down to the lines:

    .num_theorem * {
       font-style: italic;
    }
    

    in the CSS. That * forces strong inheritance.

    • CommentRowNumber9.
    • CommentAuthorZhen Lin
    • CommentTimeSep 2nd 2012

    Yes, that certainly would explain things. We could just replace that block of CSS with this:

    .un_theorem, .num_theorem,
    .un_lemma, .num_lemma,
    .un_prop, .num_prop,
    .un_cor, .num_cor {font-style: italic}
    

    There doesn’t seem to be any unintended side-effects from doing this. (The Edit CSS tool of the Web Developer extension is useful for this kind of testing.)

    • CommentRowNumber10.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 2nd 2012

    I came across this some time ago and mentioned it to Jacques. He said that there had been a reason for it but he couldn’t remember what it was. I disabled it on my own Instiki installation intending on seeing if there were any unintended consequences. I haven’t noticed any, but then I haven’t particularly looked. I can edit the Instiki CSS easy enough.

    • CommentRowNumber11.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 3rd 2012

    Okay, I’ve made the change. Please examine your theorems carefully to ensure that this hasn’t made anything go horribly wrong! It also might not be immediately visible, depending on how persistent your browser is at caching CSS files (Sandbox looks right to me now).

    • CommentRowNumber12.
    • CommentAuthorTobyBartels
    • CommentTimeSep 3rd 2012

    Nice!