How ifanoxy/raytex works
RayTeX is a cross-platform LaTeX IDE. The user edits a project in the Svelte desktop UI; the UI sends typed requests over Tauri IPC to Rust commands and core services, which manage project files, compile documents, and return PDF and diagnostics for display. The graph also preserves documented editing, completion, package-management, preview, and navigation capabilities. Several Rust command handlers and UI modules were not sampled, so their detailed call relationships are omitted or marked unverified.
Main entry points: preview.rs Document build · App.svelte Application shell · editor.svelte.ts Editor and tools · commands Desktop commands
Components 23
Desktop interface
- Application shell
ui/App.svelte - Editor and tools
ui/lib/state/editor.svelte.ts - PDF viewer
ui/components/pdf/PdfViewer.svelte - Typed IPC
ui/lib/ipc.ts - Desktop commands
crates/raytex-desktop/src/commands
Writing and analysis
- Context completion
crates/raytex-core/src/completion/keys.rs - Syntax analysis
crates/raytex-core/src/syntax/scanner.rs - Diagnostics and fixes
crates/raytex-core/src/diagnostics.rs - Quick fixes
crates/raytex-core/src/fixes/latex.rs - LaTeX knowledge base
crates/raytex-core/src/kb.rs
Projects and TeX
- Project workspace
crates/raytex-core/src/workspace.rs - Project settings
crates/raytex-core/src/settings.rs - Project templates
crates/raytex-core/src/templates.rs - TeX discovery
crates/raytex-core/src/tex/discovery.rs - Package indexing
crates/raytex-core/src/tex/texmf.rs - TeX management
crates/raytex-core/src/tex/manager.rs
Build and preview
- Document build
crates/raytex-core/src/preview.rs - Process execution
crates/raytex-core/src/process.rs - Compiler log parsing
crates/raytex-core/src/log/mod.rs - SyncTeX navigation
crates/raytex-core/src/synctex.rs - PDF document
Other components
- LaTeX author
- TeX distribution
Connections 25
- LaTeX author → Application shell: edits in
README.md - Application shell → Editor and tools: hosts
ui/App.svelte - Application shell → PDF viewer: hosts
ui/App.svelte - Editor and tools → Typed IPC: requests services
ui/lib/state/editor.svelte.ts - Application shell → Typed IPC: sends requests
ui/App.svelte - Typed IPC → Desktop commands: invokes commands
ui/lib/ipc.ts - Desktop commands → Project workspace: manages projects
- Desktop commands → Document build: requests builds
- Desktop commands → TeX management: manages packages
- Project workspace → Syntax analysis: indexes documents
crates/raytex-core/src/workspace.rs - Editor and tools → Context completion: offers completion
README.md - Context completion → Package indexing: learns package commands
crates/raytex-core/src/completion/keys.rs - Context completion → LaTeX knowledge base: uses documentation
crates/raytex-core/src/completion/mod.rs - Project workspace → Project settings: uses project settings
crates/raytex-core/src/workspace.rs - Editor and tools → Diagnostics and fixes: shows problems
README.md - Diagnostics and fixes → Quick fixes: offers quick fixes
README.md - Document build → Process execution: runs compiler
crates/raytex-core/src/preview.rs - TeX distribution → Document build: compiles document
README.md - Document build → Compiler log parsing: parses build log
crates/raytex-core/src/preview.rs - Document build → PDF document: produces PDF
README.md - PDF viewer → PDF document: renders PDF
README.md - PDF viewer → SyncTeX navigation: supports source sync
README.md - Project workspace → Project templates: applies templates
- TeX management → TeX discovery: uses distribution detection
crates/raytex-core/src/tex/manager.rs - TeX management → Process execution: plans install commands
crates/raytex-core/src/tex/manager.rs