Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat(extraction): add LaTeX (.tex) extraction support

Đang mở
#1,552 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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:

  1. Tree-sitter AST Extractor (src/extraction/languages/latex.ts)
  2. Standalone Fallback Extractor (src/extraction/latex-extractor.ts)
  3. Unit test suite covering sections, environments, labels, references, citations, macros, imports, and acronyms.
  4. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của colbymchenry/codegraph

Tất cả issue của colbymchenry/codegraph

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.