feat(extraction): add LaTeX (.tex) extraction support
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- latex, typescript
- Lĩnh vực
- devtools
Hướng nghiên cứu
The issue says a complete extractor is already implemented in src/extraction/languages/latex.ts and src/extraction/latex-extractor.ts, with a unit test suite covering the listed LaTeX constructs. Read those files and the tests first, and confirm with the maintainers whether the ready branch and patches are still available before starting. Done means the extractor and tests are integrated and cover the proposed mapping.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Add first-class LaTeX (.tex, .sty, .cls, .dtx, .ltx) extraction support to CodeGraph.
Academic papers, preprints, technical specifications, and research repositories often contain rich document architectures split across multiple files. Currently, .tex files are unindexed, leaving AI coding agents without structural visibility into paper sections, mathematical equations, figures, tables, algorithms, cross-references (\ref), citations (\cite), macro definitions, and multi-file \input{...} / \include{...} hierarchies.
Proposed Extraction Mapping
- Sections:
\section{...},\subsection{...}-> Symbol Kind:module, Edge:contains - Environments:
\begin{figure},\begin{equation},\begin{algorithm}-> Symbol Kind:struct, Edge:contains - Labels:
\label{sec:intro},\label{fig:arch}-> Symbol Kind:constant, Edge:contains - References:
\ref{sec:...},\eqref{...},\cref{...}-> Edge:references(UnresolvedRef) - Citations:
\cite{...},\citep{...}-> Edge:references(UnresolvedRef) - Macros:
\newcommand{...},\def...-> Symbol Kind:function, Edge:contains - File Includes:
\input{...},\include{...},\bibliography{...}-> Symbol Kind:import, Edge:imports
Implementation Details
We have implemented and tested a complete extractor package with:
- Tree-sitter AST Extractor (
src/extraction/languages/latex.ts) - Standalone Fallback Extractor (
src/extraction/latex-extractor.ts) - Unit test suite covering sections, environments, labels, references, citations, macros, imports, and acronyms.
- Verified across real-world research papers (extracted 592 nodes, 588 edges, 0 errors).
Would the maintainers welcome a PR for this feature? We have the branch and patches ready to open.
- Ngôn ngữ chính
- C
- Star
- 73.2k
- Fork
- 4.7k
- Merge trung bình
- 3 giờ
- Pull request đã merge (30 ngày)
- 623
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của colbymchenry/codegraph
-
codegraph ui - does not workĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
colbymchenry/codegraph#1900 · 2 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
colbymchenry/codegraph#1700 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
colbymchenry/codegraph#1535 · 2 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
colbymchenry/codegraph#1403 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-target
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
colbymchenry/codegraph#649 · 5 bình luận · 50 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của colbymchenry/codegraph
Issue tương tự
-
bug intrinsic medium priority rt_lib
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[CLI] Clarify distinction between 'capture camera' and 'capture screen' in help text and outputĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
espressif/esp-vision#18 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
sumatrapdfreader/sumatrapdf#6417 · 3 bình luận ·
-
[BUG] Cython cache evicts most recent instead of oldest entry on cleanupCó thể đã có người làm @scoder đã nhận hôm nay. Đang mởBuild System defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
HexaCluster/credcheck#94 ·