observable-framework-lib-tex | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / observable-framework-lib-tex

observable-framework-lib-tex

maintained by spqw

star 0 account_tree 0 verified_user MIT License
bolt View GitHub

name: observable-framework-lib-tex description: "Using TeX/LaTeX in Observable Framework for mathematical typesetting." metadata: author: "observablehq" version: "1.0" repository: "https://github.com/observablehq/framework" keywords: "observable, framework, observable-framework-lib-tex"

Library: TeX

Observable Framework documentation: Library: TeX Source: https://observablehq.com/framework/lib-tex

${tex\TeX} is a language for typesetting mathematical formulae. Observable provides a TeX tagged template literal implementation powered by ${tex\KaTeX}. It is available by default as tex in Markdown, but you can also import it like so:

import tex from "npm:@observablehq/tex";

There are two ways to use TeX. The first is a tex fenced code block:

```tex
E = mc^2
```

This produces a centered block:

E = mc^2

The second is an inline expression using the tex tagged template literal provided by the Observable standard library:

My favorite equation is ${tex`E = mc^2`}.

This produces:

My favorite equation is ${texE = mc^2}.

Here are some more examples.

c = \pm\sqrt{a^2 + b^2}
\Delta E^*_{00} = \sqrt{
  \Big(\frac{\Delta L'}{k_LS_L}\Big)^2 +
  \Big(\frac{\Delta C'}{k_CS_C}\Big)^2 +
  \Big(\frac{\Delta H'}{k_HS_H}\Big)^2 +
  R_T
  \frac{\Delta C'}{k_CS_C}
  \frac{\Delta H'}{k_HS_H}}
\def\f#1#2{#1f(#2)}
\f\relax{x} = \int_{-\infty}^\infty
    \f\hat\xi\,e^{2 \pi i \xi x}
    \,d\xi

For more, see the documentation website, in particular the list of supported functions.

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 0
GitHub Forks 0
Created Mar 2026
Last Updated 3 months ago
tools tools ide plugins

Related Skills

writing-skills
chevron_right
codex
chevron_right
smart-illustrator
chevron_right
collaborating-with-codex
chevron_right
code-review-router
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.