Datasets:
key stringlengths 8 12 ⌀ | image stringlengths 92 250k ⌀ | latex_gt stringlengths 188 5.41k ⌀ | difficulty stringclasses 3
values |
|---|---|---|---|
1100_s_fig1 | iVBORw0KGgoAAAANSUhEUgAAAsEAAAHACAQAAADpDH3HAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IDhIKs9MAACmrSURBVHja7Z0/j+tcu9av9ejVESV+KyqQPN8Azweg8BToVBTZOhIVCGWooMx0IKqkQqc6JBIS6EjoaCI6uliCiioRHUhICTolEhojxBFICBaF13iSmfyxHdtZy/79XDx773fPfpPl25fv... | \documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[>=stealth, thick, scale=1.2]
% 1. 定义核心参数
% 设定圆心 O 和半径 r
\coordinate (O) at (0,0);
\def\r{2.0}
% 2. 绘制圆
\draw (O) circle (\r);
% 3. 计算并定义关键坐标点
% 设 A 点位置,为了符合原图比例,取 OA = 2r (对应角 AOC =... | medium |
1101_q_fig1 | iVBORw0KGgoAAAANSUhEUgAAAzYAAAICCAQAAAC32pDFAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8ID2UNg0UAADwjSURBVHja7Z2/jzPblpbffXQREpob1EXiR1odkCGY6oCAgKCcQEJSrZsQIdkSSCNIsDX8AdgkIyQCbIHQTHSnHUxE5AogAA2Si5EISJBLTDYQfAW6ExCxCfZ2te12u+2qsl0/nqeCe+75... | \documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{intersections, calc, angles, quotes}
\begin{document}
\begin{tikzpicture}[>=stealth, scale=2, thick]
% 1. 定义基本参数(可根据需要调整半径)
\def\R{1.5} % 圆的半径
\coordinate (O) at (0,0); % 圆心 O
% 2. 定义关键点 A 的角度(设为 60 度以符合原图比例)
\def\angA{60}
\coordina... | medium |
1101_s_fig1 | iVBORw0KGgoAAAANSUhEUgAAAmwAAAGhCAQAAAB2AiBZAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IEOgFjrAAACitSURBVHja7Z0/rOtam9afdXWrkUbClwakKZBPPRKDTwWU3s1QAIUPX0Gd3Q402aKlIKm+DimR0LSjRHQIiqREVDGDqJBQok9iRlPN9iAQIDFiUXgl20nsxE4c//09Ke655+57TrLs/Py8... | \documentclass[tikz,border=10pt]{standalone}
\usepackage{tkz-euclide} % 基于TikZ,专门用于几何作图
\begin{document}
\begin{tikzpicture}[scale=2, line cap=round, line join=round]
% 1. 定义核心点 (根据几何关系设置)
\coordinate (O) at (0,0); % 圆心 O
\def\r{1} % 圆半径
% 计算点 A:设 A 在圆上,与水平线夹角 60 度 ... | medium |
1102_s_fig1 | iVBORw0KGgoAAAANSUhEUgAAA00AAAItCAIAAABq4gaVAABnfklEQVR4nO3df3xcdZno8VMYCuwEKWjioMRmMLhQzEQNWGnCr2VStkkxoFiYk4qLbK5taTIXs/7Y6CbMrIarkBfmR0vXbGUvdmYkdqV50QQh6WI1U7ZqgMxARYjMwYHbISNIaQ4UemjvH2c9e/YkDclkZs7Mmc/7r++cJukDhOSZ7/f5Ps+S48ePCwAAALCck8wOAAAAABlBngcAAGBN5HkAAADWRJ4HAABgTeR5AAAA1kSeBwAAYE3keQAAANZEngcAAGBN5HkAAADW... | \documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{intersections,calc}
\begin{document}
\begin{tikzpicture}[>=stealth, scale=1.2, thick]
% 1. 定义基本参数
\def\radius{1.5} % 圆的半径
\coordinate (O) at (0,0); % 圆心 O
% 2. 绘制圆 O
\draw (O) circle (\radius);
\fill (O) circle (1pt) node[be... | easy |
1103_q_fig1 | iVBORw0KGgoAAAANSUhEUgAAAmIAAAFLCAQAAADfFCgOAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IE3EM3woAABo3SURBVHja7Z2/q/tYeoc/GgY2zZBomnQJaBhIFcLqC9kuKXTZbjsNGwik02W7FAHfMqTSrZIqYKdPYWfzD8hFAilCsLbcQBIb8gOSyp4wgbAQOCkk+8r3SrZlS7Z0zvO4mLn+3h/W0TmP... | \documentclass[tikz,border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usetikzlibrary{calc, intersections}
\begin{document}
\begin{tikzpicture}[scale=1.5, thick]
% 1. 定义圆心和半径(调整y轴方向,匹配原图上下结构)
\def\r{1}
\coordinate (O) at (0,0);
\coordinate (A) at (-\r, 0);
\coordinate (E) at (\r, 0... | easy |
1103_s_fig1 | iVBORw0KGgoAAAANSUhEUgAAAxIAAAHACAQAAACcpJZNAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IFZhvej8AACyTSURBVHja7Z1PjCzdeZd/5/NHHASOVZ8QJkYIUzdGQRDJuO4iOwupZgMLhFBdJQiJBVLNAiSUVfeuK7vqFdlF3SxgEyF1C8QmbLoWQREyi6mg7MDSdGQJyTGQ2w4ggrDJYdE1fXtmunv6... | \documentclass[tikz,border=10pt]{standalone}
\usepackage{tkz-euclide} % 增强几何绘图功能
\usetikzlibrary{calc, intersections, angles, quotes}
\begin{document}
\begin{tikzpicture}[scale=1.5, >=stealth, thick]
% 1. 定义核心点坐标
\tkzDefPoint(0,0){O} % 圆心 O
\tkzDefPoint(-1.5,0){A} % 点 A (半径设为 1.5)
\tkzDe... | hard |
1104_q_fig1 | iVBORw0KGgoAAAANSUhEUgAAAjUAAAGpCAQAAADfUA+2AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IFgFmK4UAACaiSURBVHja7Z09i+xcl56vfXgcGqwnNA4GHfuFCQZeo/4BDtQYJ850YoNBHTmaoPonqJLJJZwaTBUYHKt+QhVM5mGgigEzDkv2zIATmz2BdldXddeHqkrfuu8KnvOc0x/S3luX1lp7rbWN... | \documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{intersections, calc, angles, quotes}
\begin{document}
\begin{tikzpicture}[line join=round, line cap=round, >=stealth, font=\small]
% 1. 定义基本参数(圆心和半径)
\coordinate (O) at (0,0);
\def\r{2} % 半径
% 2. 定义关键点 A, B (直径两端)
\coordinate (A) at (-\... | medium |
1104_s_fig1 | iVBORw0KGgoAAAANSUhEUgAAApwAAAI3CAQAAACcmUMDAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IF3ZhGxMAADe+SURBVHja7Z09qCzdntaf9XJFGByhTqrgUAeGMRgM6uQi1E6cyKDOxIL0Bk0ckOkdG1U7wY0c6Q4NuxNT6UYYE5PuMRVlNwoTmLj7wgiDGiyDqu7dH9W9+6Oqen38noJ7z+73Pe/uWmvV... | \documentclass[tikz,border=10pt]{standalone}
\usepackage{tkz-euclide} % 增强几何作图辅助
\usetikzlibrary{calc,intersections}
\begin{document}
\begin{tikzpicture}[scale=1.5, thick, >=stealth]
% 1. 定义基本参数与圆心
\coordinate (O) at (0,0);
\def\R{2} % 圆半径
% 2. 定义圆周上的关键点
\coordinate (A) at (-\R,0);
\coordinate... | medium |
1105_q_fig1 | iVBORw0KGgoAAAANSUhEUgAAAmMAAAGzCAQAAADJF9hEAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IGZHZNhQAAClkSURBVHja7Z0/iDvfet6f873XOO3ctIFcZmOSmyIpZiGFCUkxWxqcQl8Mzr9qNjiNAwFtkcKkGlUGQwJSCpe2pYBJlULTpjBIdeBypZiQhIuLHUjgEsMNJ8UcaSWt/sxoZ0ZnZj7PKX67... | \documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{intersections, calc, quotes, angles}
\begin{document}
\begin{tikzpicture}[scale=2, thick, >=stealth]
% 1. 定义基本参数(圆心 O 和半径 r)
\coordinate (O) at (0,0);
\def\r{1}
% 2. 定义圆上的关键点
\coordinate (A) at (-\r, 0);
\coordinate (B) at (\r, 0);
... | medium |
1106_q_fig1 | iVBORw0KGgoAAAANSUhEUgAAAikAAAGyCAQAAACL05yIAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+oEAQ8IGgjQZ64AACKOSURBVHja7Z1PqCtNep9/9XkSe2EMfbNJwODQZzDOKgN9SQYMAUMf8NIx6GK8MDiLPhhCPGSRPgwkAdsMLTAYYxsjeROIwSBtxtnEIG28MOOFBAPBGC8kPkIgYIiUyWqGMa4s1KdPS1f/... | \documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{calc,intersections,through}
\begin{document}
\begin{tikzpicture}[line cap=round, line join=round, >=stealth, x=1.0cm, y=1.0cm, scale=1.5]
% --- 参数定义 ---
\coordinate (O) at (0,0); % 圆心 O
\def\r{1} % 圆半径
\coordinate (... | medium |
TriGeoBench
TriGeoBench is a geometry-centric multimodal mathematics benchmark designed for evaluating mathematical reasoning with visual diagrams and image-to-TikZ generation. The dataset contains mathematical problems, solutions, diagram images, and corresponding TikZ annotations.
This repository is anonymized for peer review. Author and institution information will be added upon acceptance.
Dataset Files
The dataset contains four Parquet files:
TriGeoBench
├── README.md
├── image2tikz/
│ ├── train.parquet
│ └── test.parquet
└── question/
├── train.parquet
└── test.parquet
The dataset supports two tasks:
- Image-to-TikZ generation: generating TikZ code from a geometric diagram image.
- Multimodal mathematical reasoning: solving math problems with textual questions, solutions, and associated figures.
Image-to-TikZ Data
Files:
image2tikz/train.parquet
image2tikz/test.parquet
Each row corresponds to one diagram image and its ground-truth TikZ code.
Fields
| Field | Description |
|---|---|
key |
Unique figure identifier. It is composed of <problem_id>_<position>_<figure_index>, where position indicates whether the figure appears in the question or the solution. This key can be linked to the corresponding problem in the question-level data. |
image |
Base64-encoded image. |
latex_gt |
Ground-truth TikZ code corresponding to the image. |
difficulty |
Figure complexity level. Possible values are 容易, 中等, and 困难. |
Question-Level Data
Files:
question/train.parquet
question/test.parquet
Each row corresponds to one mathematical problem, including the problem text, solution, metadata, and associated figures.
Fields
| Field | Description |
|---|---|
sample_id |
Unique problem identifier. It can be linked to the key field in the image-to-TikZ data. |
difficulty |
Problem difficulty level. Possible values are 容易, 中等, and 困难. |
question_type |
Problem type. Possible values include 选择题, 填空题, 解答题, and 证明题. |
knowledge_point |
Main mathematical knowledge area. Possible values include 向量, 函数, 平面几何, 立体几何, and 解析几何. |
question |
Problem statement in LaTeX format. |
solution |
Solution or answer in LaTeX format. |
q_figX |
Base64-encoded image of the X-th figure appearing in the question. |
q_figX_latex_gt |
Ground-truth TikZ code of the X-th question figure. |
s_figY |
Base64-encoded image of the Y-th figure appearing in the solution. |
s_figY_latex_gt |
Ground-truth TikZ code of the Y-th solution figure. |
Here, X and Y denote figure indices. A problem may contain different numbers of question-side and solution-side figures.
Data Splits
The dataset is split into training and test sets for both tasks:
| Task | Train File | Test File |
|---|---|---|
| Image-to-TikZ | image2tikz_train.parquet |
image2tikz_test.parquet |
| Mathematical Reasoning | question_train.parquet |
question_test.parquet |
Loading the Dataset
The Parquet files can be loaded with pandas:
import pandas as pd
image2tikz_train = pd.read_parquet("image2tikz_train.parquet")
image2tikz_test = pd.read_parquet("image2tikz_test.parquet")
question_train = pd.read_parquet("question_train.parquet")
question_test = pd.read_parquet("question_test.parquet")
Base64-encoded images can be decoded as follows:
import base64
from io import BytesIO
from PIL import Image
def decode_base64_image(image_base64):
image_bytes = base64.b64decode(image_base64)
return Image.open(BytesIO(image_bytes)).convert("RGB")
img = decode_base64_image(image2tikz_train.iloc[0]["image"])
img.show()
Intended Use
TriGeoBench is intended for research on:
- multimodal mathematical reasoning;
- geometry-centric visual question answering;
- image-to-TikZ generation;
- evaluating whether models can reason over precise geometric structures;
- studying the interaction between textual math problems, visual diagrams, and symbolic diagram representations.
Limitations
The dataset focuses on geometry-centric middle- and high-school mathematics problems. The annotations include LaTeX-formatted problem texts and TikZ code for figures. Although the dataset has been processed and checked, residual annotation errors may remain.
Anonymous Review Notice
This repository is anonymized for peer review. Please do not attempt to identify the authors during the review process.
- Downloads last month
- 18