How texstudio-org/texstudio works
TeXstudio is a desktop LaTeX authoring application. The main workflow is editing a document, using language-aware assistance and checks, building it through configured tools, then viewing the resulting PDF. The README also highlights reference, citation, grammar, spellchecking, structure, and inline-preview features; these are represented as separate capabilities, though their exact wiring is not shown in the excerpts. Edges with null evidence are dashed to mark relationships that are plausible from the product workflow but not directly evidenced here.
Main entry points: latexeditorview.cpp LaTeX editor view · texstudio.cpp Main window · buildmanager.cpp Build manager · pdfrendermanager.cpp PDF render manager
Components 23
Desktop application
- Main window
src/texstudio.cpp
Editing and language tools
- LaTeX editor view
src/latexeditorview.cpp - Code editor
src/qcodeedit/lib/qeditor.cpp - Document model
src/qcodeedit/lib/document/qdocument.cpp - Command completion
src/qcodeedit/lib/qcodecompletionengine.cpp - LaTeX parser
src/latexparser/latexparser.cpp - Structure view
src/structuretreeview.cpp - Syntax checking
src/syntaxcheck.cpp - Reference checking
src/latexdocument.cpp - Citation tools
src/bibtexreader.cpp
Build and PDF
- Build manager
src/buildmanager.cpp - TeX tools
- PDF render manager
src/pdfviewer/pdfrendermanager.cpp - PDF render engine
src/pdfviewer/pdfrenderengine.cpp - PDF document viewer
src/pdfviewer/PDFDocument.cpp
Writing assistance
- Grammar checking
src/grammarcheck.cpp - Spellchecking
src/spellerutility.cpp - Inline preview
src/latexeditorview.cpp - AI assistant
src/aichatassistant.cpp - AI query history
src/aiquerystoragemodel.cpp
Internal services
- Shared utilities
src/smallUsefulFunctions.cpp - Configuration
src/configmanager.cpp
Other components
- LaTeX author
Connections 22
- LaTeX author → Main window: uses
- Main window → LaTeX editor view: opens editing
- LaTeX editor view → Code editor: hosts editor
- Code editor → Document model: edits document
- Command completion → Code editor: uses editor
src/qcodeedit/lib/qcodecompletionengine.cpp - LaTeX editor view → LaTeX parser: parses LaTeX
- LaTeX editor view → Structure view: updates structure
- LaTeX editor view → Syntax checking: checks syntax
- LaTeX editor view → Reference checking: checks references
- LaTeX editor view → Citation tools: checks citations
- Main window → Build manager: starts build
- Build manager → TeX tools: runs tools
- PDF render manager → PDF render engine: dispatches rendering
src/pdfviewer/pdfrendermanager.cpp - PDF document viewer → PDF render manager: requests pages
- Build manager → Shared utilities: uses helpers
src/buildmanager.cpp - PDF render manager → Shared utilities: uses helpers
src/pdfviewer/pdfrendermanager.cpp - LaTeX editor view → Grammar checking: checks grammar
- LaTeX editor view → Spellchecking: checks spelling
- LaTeX editor view → Inline preview: shows preview
- Main window → AI assistant: offers assistance
- AI assistant → AI query history: stores query history
- Main window → Configuration: reads settings