Function tex

    • Render a LaTeX formula via Temml. Three forms:

       tex`E = mc^2`                              // direct, default size
       tex(28)`E = mc^2`                          // size-only shorthand
       tex({ size: 28, display: "block" })`...`   // full options
      

      Single-backslash LaTeX works directly (reads strings.raw).

      Type Parameters

      Parameters

      • strings: TemplateStringsArray
      • ...values: V

      Returns TexShape<NamesOf<V>>

    • Render a LaTeX formula via Temml. Three forms:

       tex`E = mc^2`                              // direct, default size
       tex(28)`E = mc^2`                          // size-only shorthand
       tex({ size: 28, display: "block" })`...`   // full options
      

      Single-backslash LaTeX works directly (reads strings.raw).

      Parameters

      Returns <V extends readonly TexInterp[]>(
          strings: TemplateStringsArray,
          ...values: V,
      ) => TexShape<NamesOf<V>>