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.
    • CommentAuthorAli Caglayan
    • CommentTimeOct 8th 2018

    I added a table to homotopy groups of spheres (homotopytypetheory) a while ago. Looking back it is looking very bleak. Is there a way I can add some colour to break it up a little?

    • CommentRowNumber2.
    • CommentAuthorRichard Williamson
    • CommentTimeOct 8th 2018
    • (edited Oct 8th 2018)

    MathML has support for colour: I have just added an example to the Sandbox, one has to add an mstyle tag with the mathcolor attribute set around the rest of the MathML code.

    As far as I know, though, itex2MML does not have syntax to support this. So the only way (as far as I know) will be if you replace the LaTeX in the table with actual MathML code (which you can get from looking at the HTML source), and then add the mstyle tag.

    We can add yet another item to the Technical TODO list (nlabmeta) to add proper support for this to the nLab :-).

    • CommentRowNumber3.
    • CommentAuthorUrs
    • CommentTimeOct 9th 2018
    • (edited Oct 9th 2018)

    Color is easy in maths environment: backslash-color just as in LaTeX. (Example also in Sandbox now) this can be included in table entries.

    • CommentRowNumber4.
    • CommentAuthorRichard Williamson
    • CommentTimeOct 9th 2018
    • (edited Oct 9th 2018)

    Ah, great! This adds the mstyle tag with the mathcolor attribute to the MathML, more or less in the manner I did by hand. Do we have this syntax in the HowTo? Would be good to add if not.

    • CommentRowNumber5.
    • CommentAuthorUrs
    • CommentTimeOct 9th 2018

    Not in HowTo, I think. Myself, I discovered this by having the whim to try it one day. I can add it later, if nobody else does.

    • CommentRowNumber6.
    • CommentAuthorAli Caglayan
    • CommentTimeOct 9th 2018

    What about the background of the table? Can that be done?

    • CommentRowNumber7.
    • CommentAuthorRichard Williamson
    • CommentTimeOct 9th 2018
    • (edited Oct 9th 2018)

    Definitely in HTML, but I don’t know if there is support for it in Markdown Extra, which is the syntax typically used for tables on the nLab. Maybe Urs or somebody else knows.

  1. I’m not sure myself that the table syntax in Markdown is really much more readable or quicker to write than the HTML syntax, though, maybe even arguably less readable. So you could consider switching to a HTML table syntax. I can help with that if needed.

    • CommentRowNumber9.
    • CommentAuthorDavid_Corfield
    • CommentTimeOct 9th 2018

    It seems that you can give a coloured background to text, e.g., abcde{\bgcolor{red} a b} c {\bgcolor{#0F0}d e}. But probably not for whole boxes.

    • CommentRowNumber10.
    • CommentAuthorUrs
    • CommentTimeOct 9th 2018
    • (edited Oct 9th 2018)

    Yes. As with so many other things in Instiki, the table syntax seems to have been designed with very small scale applications in mind. For jotting down a 2x2 table the Instiki syntax is probably quicker than HTML, but when you have a non-trivial table, the Instiki syntax becomes unsuitable, for instance by its demand to have the code for each row be strictly in one single line of source, or its insistence that you add redundant code for the first hrule, and, moreover, that you precisely count your columns for that in order that the whole thing parses at all.

    • CommentRowNumber11.
    • CommentAuthorAli Caglayan
    • CommentTimeOct 9th 2018
    • (edited Oct 9th 2018)

    Test

    $n\backslash k$ 0 1 2 3 4
    0 [$\pi_0(S^0)$](#pinsn) [$\pi_0(S^1)$](#piksn) [$\pi_0(S^2)$](#piksn) [$\pi_0(S^3)$](#piksn) [$\pi_0(S^4)$](#piksn)
    1 $\pi_1(S^0)$ [$\pi_1(S^1)$](#pinsn) [$\pi_1(S^2)$](#piksn) [$\pi_1(S^3)$](#piksn) [$\pi_1(S^4)$](#piksn)
    2 $\pi_2(S^0)$ $\pi_2(S^1)$ [$\pi_2(S^2)$](#pinsn) [$\pi_2(S^3)$](#piksn) [$\pi_2(S^4)$](#piksn)
    3 $\pi_3(S^0)$ $\pi_3(S^1)$ [$\pi_3(S^2)$](#pi3s2) [$\pi_3(S^3)$](#pinsn) [$\pi_3(S^4)$](#piksn)
    4 $\pi_4(S^0)$ $\pi_4(S^1)$ [$\pi_4(S^2)$](#hopff) [$\pi_4(S^3)$](#pi4s3) [$\pi_4(S^4)$](#pinsn)

    HTML tables are a bit tedious but I think its our only option.

    • CommentRowNumber12.
    • CommentAuthorAli Caglayan
    • CommentTimeOct 9th 2018

    So the problem with HTML tables is that the LaTeX is not rendering. I would be grateful if someone could help colour this. The table should look like the one on wikipedia, however obviously mine is transposed. The one I have put on the sandbox is complete nonsense.

  2. I’ll take a look later. If necessary I can tweak things to make the LaTeX render.