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 definitions 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 k-theory lie-theory limits linear linear-algebra locale localization logic mathematics measure-theory modal modal-logic model model-category-theory monad monads monoidal monoidal-category-theory morphism motives motivic-cohomology nforum 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.
    • CommentAuthorUrs
    • CommentTimeJun 3rd 2018

    Is there a way to center-aligne tables, that are coded via Instiki syntax:

       |   column header 1 | column header 2 |
       |-------------------|-----------------|
       |   item            | item            |
    

    ?

    When I put them inside HTML-tags

      <center>  ...    </center>
    

    they just break.

    • CommentRowNumber2.
    • CommentAuthorRodMcGuire
    • CommentTimeJun 4th 2018
    • (edited Jun 4th 2018)

    I don’t know if <center> would have ever worked and anyway I think it is no longer valid now.

    in Sandbox/1507 there is a test where I wrap the table with +-- {: .cent} and then used the Firefox extension Stylus to add the CSS rule

    div.cent table {margin-left: auto; margin-right: auto}

    and the table gets centered. A rule like this would need to be added to the nLab CSS.

    EDIT: I just tested the alternative rule div.cent {margin-left: auto; margin-right: auto} (centering the div rather than the table) and it doesn’t work while the more general rule div.cent * {margin-left: auto; margin-right: auto} does.

  1. Hi, unfortunately just now I’m too busy to be able to do any maintenance work (excepting a crisis). Next week is probably the earliest time I will be able to look into things (I have seen various other small things be raised as well). Maybe this is a good time to re-iterate that the more hands the merrier! For instance removing the block on editing the page monoidal category is quite trivial, should anyone wish to try.

    • CommentRowNumber4.
    • CommentAuthorRodMcGuire
    • CommentTimeJun 7th 2018
    • (edited Jun 7th 2018)

    Anonymous, IP 72.182.53.175 in Austin TX (I’m guessing Jaques), edited Sandbox/1508 to show that the table can be center styled by just following it with the line

    {: style='margin:auto; color: blue'}

    So, there is no need to update the nLab CSS rules.

    I didn’t know the {: syntax could add styling info. HowTo should be updated to explain the attribute list syntax documented in Meta-data syntax implemented by Maruku.

    • CommentRowNumber5.
    • CommentAuthorTim_Porter
    • CommentTimeJun 7th 2018

    It looks good in both Safari and Chrome.

    BTW The How to page has an ‘invalid equation’ in it. This is referring to Codecogs I think.

    • CommentRowNumber6.
    • CommentAuthorUrs
    • CommentTimeJun 7th 2018

    Okay, thanks!

    • CommentRowNumber7.
    • CommentAuthorUrs
    • CommentTimeJun 25th 2018
    • (edited Jun 25th 2018)

    Here is a related question, please bear with me:

    Over at triangle identities we had this code

       [[adjunction-up-string.png:pic]],  [[adjunction-down-string.png:pic]]
    

    to produce two figures, next to each other. This code alone makes the graphics stick to the left, and to each other. But good formatting would instead have a decent bit of whitespace between the two graphics, and have the result be centered on the page.

    As before, when i center this with html tags

      <center> [[adjunction-up-string.png:pic]],  [[adjunction-down-string.png:pic]] </center>
    

    which works in itself, then my standard hack for whitespace, via

      $\phantom{AAAAAA}$
    

    doesn’t render properly.

    Next, following the above solution, I tried

      +-- {: .standout}
       [[adjunction-up-string.png:pic]],[[adjunction-down-string.png:pic]].
      =--
      {: style='margin:auto}
    

    but this doesn’t center.

    What to do?

    • CommentRowNumber8.
    • CommentAuthorRodMcGuire
    • CommentTimeJun 25th 2018

    Urs all you need is

    [[adjunction-up-string.png:pic]] $\quad\quad\quad \quad$ [[adjunction-down-string.png:pic]] {: style='text-align:center'}

    I thought this was an issue of div centering but it turns out to be one of text centering. Luckily putting the styling info at the end adds the style to the wrapping <p> element not the last <img>.

    you can see all my experiments at Sandbox/1537.

    • CommentRowNumber9.
    • CommentAuthorUrs
    • CommentTimeJun 25th 2018
    • (edited Jun 25th 2018)

    Thanks a million! I had no idea about this kind of syntax.

    Okay, so I have used that now at triangle identities. Thanks again.