## 목표 - LaTeX 수식 문법(\frac, \sqrt, \int 등) 입력 지원 - 기존 한컴 파서 무수정, LaTeX 전용 토크나이저+파서 별도 추가 - 공통 AST(EqNode)로 합류 → 기존 layout/render 재사용 ## 설계 근거 - mydocs/tech/equation_latex_comparison.md (전략 A: 듀얼 토크나이저) ## 구현 범위 - `src/renderer/equation/latex_tokenizer.rs` — LaTeX 토크나이저 (~300줄) - `src/renderer/equation/latex_parser.rs` — LaTeX 파서 (~800줄) - `src/renderer/equation/mod.rs` — 자동 감지/모드 전환 로직 - `src/renderer/equation/ast.rs` — FontStyleKind 확장 (Blackboard, Calligraphy 등) - UI 명시적 모드 토글을 1순위, 자동 감지는 보조 수단
목표
설계 근거
구현 범위
src/renderer/equation/latex_tokenizer.rs— LaTeX 토크나이저 (~300줄)src/renderer/equation/latex_parser.rs— LaTeX 파서 (~800줄)src/renderer/equation/mod.rs— 자동 감지/모드 전환 로직src/renderer/equation/ast.rs— FontStyleKind 확장 (Blackboard, Calligraphy 등)