Datasets:
image imagewidth (px) 15 2k | formula stringlengths 1 5.03k |
|---|---|
H^{q}(X,\Omega_{X}^{p}\otimes E)=0 | |
Z_{0}={\frac{1}{\pi}}{\sqrt{\frac{\mu}{\epsilon}}}\ln\left({\frac{l}{R}}+{\sqrt{\left({\frac{l}{R}}\right)^{2}-1}}~\right) | |
g:(D\times E){\rightarrow}F | |
{\frac{\operatorname{d}^{2}y}{\operatorname{d}x^{2}}} | |
{\textstyle\sum_{n=1}^{\infty}{\frac{a_{n}}{n^{s}}}=\int_{0}^{\infty}x^{s-1}\left(\sum_{n=1}^{\infty}a_{n}e^{-nx}\right)dx={\mathcal{M}}{a_{n}}(s)} | |
g=\left(1-{\frac{2M}{r}}\right)\,dt_{r}^{2}-2{\sqrt{\frac{2M}{r}}}dt_{r}dr-dr^{2}-r^{2}\,d\theta^{2}-r^{2}\sin^{2}\theta\,d\phi^{2} | |
\left(\sum_{i=0}^{\infty}a_{i}x^{i}\right)\cdot\left(\sum_{j=0}^{\infty}b_{j}x^{j}\right)=\sum_{k=0}^{\infty}c_{k}x^{k} | |
K(x;T)=h(T) | |
f_{x^{*}}(x)={\begin{cases}Ae^{-Be^{Cx}+CDx}(e^{Cx}+E)^{-F},&{\text{if}}\ d>0\\Ae^{-Bx^{2}+Cx}&{\text{if}}\ d=0\end{cases}} | |
a_{\max}^{\prime}-a_{\max}\approx-1/2u | |
y=f(x,u) | |
\delta:L^{\times}\otimes\mathbb{Q}/\mathbb{Z}\xrightarrow{\sim}H^{1}\left(L,{\overline{K}}_{tors}\right) | |
{\textstyle\left\lceil\alpha\right\rceil+z=\alpha+1} | |
\{{\hat{C}}_{1}(1),{\hat{C}}_{2}(1),{\hat{I}}_{3}(1),{\hat{I}}^{2}(1),{\hat{Y}}(1),{\hat{C}}_{1}(2),{\hat{C}}_{2}(2),{\hat{I}}_{3}(2),{\hat{I}}^{2}(2),{\hat{Y}}(2)\} | |
f\in\cap\operatorname{Box}_{P}=\prod B_{m_{\bullet}} | |
b=d_{0}(d_{1})^{-5/4} | |
\int_{0}^{\frac{b}{2}}c(y)^{2}dy | |
{\mathcal{X}}^{(1)},\dots,{\mathcal{X}}^{(k)} | |
N_{s}={\frac{n{\sqrt{Q}}}{(gH)^{3/4}}} | |
T:\mathbf{P}(H)\rightarrow\mathbf{P}(H) | |
P_{Lo}={\frac{\sum p_{c,t_{n}}q_{c,b}}{\sum p_{c,t_{0}}q_{c,b}}} | |
L_{x}^{2}=L_{y}^{2}=L_{z}^{2}\propto\mathbf{1} | |
k[X][f^{-1}] | |
\int_{0}^{z}{\frac{\mathrm{d}t}{\sqrt{1-t^{4}}}}=2\int_{0}^{u}{\frac{\mathrm{d}t}{\sqrt{1-t^{4}}}},\quad{\text{if }}z={\frac{2u{\sqrt{1-u^{4}}}}{1+u^{4}}}{\text{ and }}0\leq u\leq{\sqrt{{\sqrt{2}}-1}} | |
{\begin{aligned}Z(X,Y)&=\log(\exp X\exp Y)\\&{}=X+Y+{\frac{1}{2}}[X,Y]+{\frac{1}{12}}\left([X,[X,Y]]+[Y,[Y,X]]\right)\\&{}\quad-{\frac{1}{24}}[Y,[X,[X,Y]]]\\&{}\quad-{\frac{1}{720}}\left([Y,[Y,[Y,[Y,X]]]]+[X,[X,[X,[X,Y]]]]\right)\\&{}\quad+{\frac{1}{360}}\left([X,[Y,[Y,[Y,X]]]]+[Y,[X,[X,[X,Y]]]]\right)\\&{}\quad+{\frac... | |
O\;\mid\;\sigma\mid\tau\;\mid\;a.\sigma | |
f_{t,a,b}(z)=e^{2\pi it}z^{3}\,{\frac{1-{\overline{a}}z}{z-a}}\,{\frac{1-{\overline{b}}z}{z-b}} | |
V_{\text{ads}}=V_{\text{m}}\sum_{n=1}^{\infty}n\theta_{n}=V_{\text{m}}c\theta_{0}x\sum_{n=1}^{\infty}nx^{n-1} | |
\varepsilon=(1+L)\cdot\delta | |
P(x{\text{ has pattern}})=\sum_{j:I(K_{j})<n}2^{-I(K_{j})} | |
(x_{3}-x_{1}) | |
{\begin{aligned}x_{n+1}-a&=f(x_{n})-a\\&\approx f(a)+f'(a)(x_{n}-a)-a\\&=a+f'(a)(x_{n}-a)-a\end{aligned}} | |
{\begin{aligned}G&=\eta D\approx(1)(1.698)=1.698\\G_{\text{dBi}}&\approx10\,\log_{10}(1.698)\approx2.30\,{\text{dBi}}\end{aligned}} | |
V(u)=T'(u) | |
Q=q_{1}^{*}+q_{2}^{*}={\frac{2(a-\chi)}{3b}} | |
\operatorname{Ti}_{2}(z)={\frac{1}{2i}}\left(\operatorname{Li}_{2}(iz)-\operatorname{Li}_{2}(-iz)\right) | |
\sum_{a+1\leq i\leq b}-(c_{i}/c_{a})|m+i| | |
y_{n+1}=y_{n}+{\tfrac{3}{2}}hf(t_{n},y_{n})-{\tfrac{1}{2}}hf(t_{n-1},y_{n-1}) | |
|G|=\chi_{R}(e)=\dim(R)=\sum_{j}\dim\left((W_{j})^{\oplus(\chi_{W_{j}}|\chi_{R})}\right)=\sum_{j}(\chi_{W_{j}}|\chi_{R})\cdot\dim(W_{j})=\sum_{j}\dim(W_{j})^{2} | |
L_{n>0}V_{\Delta}(z)=0\quad,\quad L_{0}V_{\Delta}(z)=\Delta V_{\Delta}(z)\ | |
L=-147.56+20\ \log_{10}(d)+20\ \log_{10}(f) | |
r+1>{\frac{s(s+1)(\mu+1)}{2}} | |
K^{G}(T)^{2}=\beta{\begin{bmatrix}{\frac{\tau_{cg}}{T}}{\sqrt{\frac{\pi}{2}}}\mathrm{erf}({\sqrt{2}}T/\tau_{cg})+{\frac{\tau_{cg}^{2}}{2T^{2}}}(e^{-2T^{2}/\tau_{cg}^{2}}-1)\end{bmatrix}} | |
\left(p_{1}c\right)\cdot\left(p_{4}c\right)={\frac{1}{2}}\left(\left(m_{1}c^{2}\right)^{2}+\left(m_{4}c^{2}\right)^{2}-u\right) | |
\psi(f)=\pi.(f-f_{0})^{2}/k | |
\lim_{k\rightarrow\infty}Dq(x_{2k+1})=0 | |
\Phi=v_{p}^{2}-{\frac{4}{3}}v_{s}^{2}={\frac{K_{S}}{\rho}} | |
a\neq0{\text{ and }}b\neq0 | |
(L\pm Q/2)^{2}-Q^{4}/4\rightarrow x_{1}^{2}+P_{1} | |
pK_{a}^{\rm{ox}}<pK_{a}^{\rm{red}} | |
\pi_{n}(S^{1})=0 | |
X=\{X_{t}:t\geq0\} | |
(p_{b}-p_{a}) | |
(\partial U)_{P}=-(\partial P)_{U}=C_{P}-P\left({\frac{\partial V}{\partial T}}\right)_{P} | |
3,8,13,18,23,28,\ldots | |
\sum_{i=1}^{n}w_{i}x_{i}\leq w' | |
{\frac{1}{1-z}}\exp\left((u-1)\left({\frac{z^{n+1}}{n+1}}+{\frac{z^{n+2}}{n+2}}+\cdots\right)\right) | |
{\textstyle h=-{\frac{1}{2}}A^{-1}b} | |
c_{\lambda}:=a_{\lambda}b_{\lambda}=\sum_{g\in P_{\lambda},h\in Q_{\lambda}}\operatorname{sgn}(h)e_{gh} | |
m_{\text{u}}=m({}^{12}{\text{C}})/12 | |
\mathrm{cons}_{\alpha}\ x\ l=\mathrm{roll}\ (\mathrm{inr}\ \langle x,l\rangle) | |
a_{i}+b_{i}+c_{i} | |
(H\otimes I)\times CNOT | |
\sum_{K\subseteq N\smallsetminus I}(-1)^{|K|}|B_{K}| | |
{\tfrac{1}{2}}\|\mathbf{b}\wedge\mathbf{c}\| | |
{\dfrac{2mV_{0}}{\hbar^{2}}}a^{2}=\gamma^{2} | |
\sigma_{y}=\sigma_{0}+{k_{y}\over{\sqrt{d}}} | |
\operatorname{E}[\varphi(Y)-\psi(Y)]=0\implies\varphi(y)-\psi(y)=0,\theta\in\Omega | |
D_{x,y}\,:\,S_{y}\rightarrow S_{x}\quad{\text{unitary}} | |
\operatorname{arccsc}x=-i\,\ln\left({\frac{i}{x}}+{\sqrt{1-{\frac{1}{x^{2}}}}}\right) | |
D_{0}{(cm)}\approx0.13R^{0.14} | |
P(f)=\lambda^{-\Delta}P(\lambda f) | |
g-\Omega^{2}R\cos^{3}(\phi) | |
{\frac{d\pi}{dp}}={\frac{\partial\pi}{\partial x}}{\bigg|}_{x=x^{*}}{\frac{\partial x}{\partial p}}+{\frac{\partial\pi}{\partial p}}={\frac{\partial\pi}{\partial p}}=f(x^{*}(p))=y^{*}(p) | |
\scriptstyle{\dot{M}}>10^{-3} | |
0.0292487852\times1200=35.0985422804 | |
{\boldsymbol{S}}_{(m)}:\delta{\boldsymbol{E}}_{(m)} | |
ModD(y)\equiv-{\frac{1}{V}}\cdot{\frac{\partial V}{\partial y}}=-{\frac{\partial\ln(V)}{\partial y}} | |
k_{\rm{B}}T\ll E_{\rm{F}} | |
\mu(\pi)={\frac{(\mathrm{dim}\,\pi)^{2}}{|G|}} | |
-log_{10}[H^{+}]_{i}=b_{0}-b_{1}E_{i^{}} | |
Pr({\text{find }}H_{1}|H_{1}) | |
T(x)=x/c+p | |
\beta_{1}={\frac{-1-i{\sqrt{3}}}{2}} | |
{\frac{\partial^{2}f}{\partial z_{i}\,\partial z_{j}}}\geq0{\mbox{ for all }}i\neq j | |
m_{\mathrm{bob}}+m_{\mathrm{rod}} | |
C_{D}=\sum_{v\in V}{\frac{deg(v^{*})-deg(v)}{\mid V\mid-1}} | |
(1-\delta)G\leq{\tilde{G}}\leq(1+\delta)G | |
{\mathcal{B}}^{*}:={\mathcal{A}}^{*}/{\mathcal{G}}; | |
g_{1}(z),\ldots,g_{m}(z)<0 | |
p(q_{1}+q_{2})=a-b(q_{1}+q_{2}) | |
{\mathcal{D}}\backslash\mathbf{sSet}\rightarrow\mathbf{sSet},(F\colon{\mathcal{D}}\rightarrow{\mathcal{E}})\mapsto{\mathcal{E}}/F | |
q_{i}-\lfloor q_{i}\rfloor | |
\ v_{\mathsf{out}}=\alpha_{1}{\Bigl(}A_{1}\cos(\omega_{1}t)+A_{2}\cos(\omega_{2}t){\Bigr)}+\alpha_{2}{\Bigl(}A_{1}^{2}\cos^{2}(\omega_{1}t)+2A_{1}A_{2}\cos(\omega_{1}t)\ \cos(\omega_{2}t)+A_{2}^{2}\cos^{2}(\omega_{2}t){\Bigr)}+\cdots\ | |
L_{\eta}=\{s\in\Sigma^{*}\vert vP_{s}Q_{\text{accept}}>\eta\} | |
Q_{-}={\frac{\text{disliked}}{\text{known}}}\times100 | |
{\textstyle f_{\alpha}:f^{-1}(D_{\alpha})\rightarrow D_{\alpha}\,} | |
t_{\text{threshold}} | |
P_{j}(d_{j})=1-e^{-{\frac{d_{j}^{2}}{2s_{j}^{2}}}} | |
{\begin{aligned}X&=a\cos\omega{\frac{\sqrt{a^{2}-b^{2}\sin^{2}\beta-c^{2}\cos^{2}\beta}}{\sqrt{a^{2}-c^{2}}}},\\Y&=b\cos\beta\sin\omega,\\Z&=c\sin\beta{\frac{\sqrt{a^{2}\sin^{2}\omega+b^{2}\cos^{2}\omega-c^{2}}}{\sqrt{a^{2}-c^{2}}}}.\end{aligned}} |
Joint LaTeX Formulas
Image β LaTeX pairs for training and evaluating formula-recognition (math OCR) models. It merges two public formula datasets with two rendered formula sets into one schema. The validation split holds long, text-heavy formulas.
Quick start
from datasets import load_dataset
ds = load_dataset("TODO/joint-formulas")
sample = ds["train"][0]
sample["image"] # PIL.Image.Image, RGB
sample["formula"] # LaTeX string
Schema
| Column | Type | Description |
|---|---|---|
image |
Image (RGB) |
Rendered formula |
formula |
string |
LaTeX source used as the target transcription |
Splits and sources
| Split | Source | Rows |
|---|---|---|
train |
piushorn/wikipedia-latex-formulas-319k | 319,110 |
train |
OleehyO/latex-formulas, cleaned_formulas config |
552,340 |
train |
amok-synthetic-formulas (rendered set, see below) |
15,000 |
train total |
886,450 | |
validation |
real-long-formulas (rendered set, see below) |
1,840 |
Wikipedia LaTeX Formulas 319k
Formulas extracted from English Wikipedia and rendered to PNG. See the upstream card for filtering and rendering details.
latex-formulas (cleaned_formulas)
Formula/image pairs scraped from arXiv and cleaned, then merged with im2latex-100K by the upstream authors.
The raw_formulas config has no images, so it is not included.
Rendered sets: amok-synthetic-formulas and real-long-formulas
Both sets were rendered with the same pipeline:
- Renderer: MathJax with the New Computer Modern math font. One CJK-capable serif font (Noto Serif CJK) is used for
\text{}. - Variants: each source formula is rendered 5 times with different random styles:
- foreground and background colors (including dark backgrounds)
- scale: 8 levels between 1.2 and about 1.78
- padding: 10 to 24 px
- text-wrap width
- Line wrapping: long
\text{...}runs are wrapped into a\begin{matrix}...\end{matrix}stack. The label is the LaTeX that was actually rendered, so it matches the image. This rewrite affected 221 of 15,000 labels inamok-synthetic-formulasand 384 of 1,840 inreal-long-formulas. - Failures: every render was checked, and samples whose render failed were dropped. None failed in either set.
| Set | Source formulas | Images | Label length (chars, min / median / max) | Image size (px) |
|---|---|---|---|---|
amok-synthetic-formulas |
3,000 | 15,000 | 5 / 52 / 221 | 50β1772 Γ 18β309 |
real-long-formulas |
368 | 1,840 | 9 / 78 / 310 | 77β2445 Γ 21β386 |
rendered formulas are created by dinhanhx/latex2img
How the datasets were joined
- Load each source as an image/LaTeX table: the Hub datasets from their parquet files, and the rendered sets from their image folders and per-image metadata.
- Normalize the schema: keep only the image and LaTeX columns, and rename the LaTeX column to
formula. Upstream names wereformulaandlatex_formula. All other metadata is dropped. - Normalize the images: convert every image to RGB. Images with transparency (
RGBA,LA,P, β¦) are composited onto a white background first, so transparent pixels do not turn black. - Normalize the LaTeX into one canonical style. Every rewrite leaves the rendered output unchanged, so labels still match their images:
- Remove LaTeX comments (
% β¦). - Unwrap
\begin{align*}β¦\end{align*}when the content is a single line with no&or\\. Multi-line environments are kept. - Remove whitespace that has no effect in math mode, e.g.
\frac {a} {b}β\frac{a}{b},x = 1βx=1. Whitespace inside text commands (\text,\mbox,\textbf, β¦) is kept, collapsed to single spaces. One space is kept where a control word needs a separator, as in\alpha b. - Map aliases to one spelling:
\leβ\leq,\geβ\geq,\neβ\neq,\toβ\rightarrow,\getsβ\leftarrow,\lbrace/\rbraceβ\{/\},\landβ\wedge,\lorβ\vee,\lnotβ\neg.
- Remove LaTeX comments (
- Concatenate the three training sources into
train.real-long-formulasalone becomesvalidation. - Check: both splits have exactly the columns
imageandformula, and their row counts equal the sum of their sources. LaTeX normalization is idempotent: running it again does not change any label.
Formulas are not deduplicated across sources.
Limitations
Some label-style differences remain. Normalization only applies rewrites that do not change the render. These are kept as written:
- Redundant braces, e.g. Wikipedia's
{\frac{a}{b}}and{\hat{W}}. \left/\rightusage.- Font macros such as
\rmvs\mathrm.
Removing these could change the rendered output, for example spacing or delimiter size. Compare predictions with a render-based or tokenized metric, not raw exact match.
- Redundant braces, e.g. Wikipedia's
No cross-source deduplication. The same formula may appear in more than one source. Overlap between
trainandvalidationhas not been checked.Validation is small and correlated. Its 1,840 images come from only 368 distinct formulas (5 renders each). Report metrics with that in mind.
Rendered images only. No scanned or photographed formulas. Real-world noise (blur, skew, handwriting) is not represented.
Licensing
This dataset inherits the terms of its sources:
| Source | License |
|---|---|
| wikipedia-latex-formulas-319k | CC BY-SA 4.0 |
| latex-formulas | OpenRAIL |
| amok-synthetic-formulas | CC BY 4.0 |
| real-long-formulas | CC BY 4.0 |
CC BY-SA 4.0 is share-alike. Check that it is compatible with the other licenses before choosing a license for the combined dataset.
Citation
If you use this dataset, please also cite the upstream datasets linked above.
@misc{joint_latex_formulas,
title = {Joint LaTeX Formulas},
author = {dinhanhx},
year = {2026},
url = {https://huggingface.co/datasets/dinhanhx/joint-formulas}
}
- Downloads last month
- 49