...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/files/grid_outside_labels.d2

Documentation: oss.terrastruct.com/d2/e2etests/testdata/files

     1container: ___________________________________container____________________________________ {
     2  grid-columns: 3
     3  grid-gap: 20
     4
     5  amscd plugin: {
     6    ex: |tex
     7      \\begin{CD} B @>{\\text{very long label}}>> C S^{{\\mathcal{W}}_\\Lambda}\\otimes T @>j>> T\\\\ @VVV V \\end{CD}
     8    |
     9  }
    10
    11  braket plugin: {
    12    style.3d: true
    13    ex: |tex
    14      \\bra{a}\\ket{b}
    15    |
    16  }
    17
    18  cancel plugin: {
    19    ex: |tex
    20      \\cancel{Culture + 5}
    21    |
    22  }
    23
    24  color plugin: {
    25    icon: https://icons.terrastruct.com/essentials/profits.svg
    26    icon.near: outside-right-center
    27    ex: |tex
    28      \\textcolor{red}{y} = \\textcolor{green}{\\sin} x
    29    |
    30  }
    31
    32  gensymb plugin: {
    33    ex: |tex
    34      \\lambda = 10.6\\,\\micro\\mathrm{m}
    35    |
    36  }
    37
    38  mhchem plugin: {
    39    style.multiple: true
    40    ex: |tex
    41      \ce{SO4^2- + Ba^2+ -> BaSO4 v}
    42    |
    43  }
    44
    45  physics plugin: {
    46    ex: |tex
    47      \\var{F[g(x)]}
    48      \\dd(\\cos\\theta)
    49    |
    50  }
    51
    52  multilines: {
    53    ex: |tex
    54      \\displaylines{x = a + b \\\\ y = b + c}
    55      \\sum_{k=1}^{n} h_{k} \\int_{0}^{1} \\bigl(\\partial_{k} f(x_{k-1}+t h_{k} e_{k}) -\\partial_{k} f(a)\\bigr) \\,dt
    56    |
    57  }
    58
    59  asm: {
    60    ex: |latex
    61      \\min_{ \\mathclap{\\substack{ x \\in \\mathbb{R}^n \\ x \\geq 0 \\ Ax \\leq b }}} c^T x
    62    |
    63  }
    64}

View as plain text