# arechnitzer/clp2 architecture

> Architecture diagram of the GitHub repository arechnitzer/clp2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arechnitzer/clp2
- Repository: https://github.com/arechnitzer/clp2

## Overview

CLP-2 is an open educational integral-calculus textbook and exercise collection, not a runtime application. The principal learner workflow is to study the textbook, work through exercises, and consult hints, answers, or solutions. The repository maintains parallel LaTeX sources—with textbook and problembook separated—and a PreTeXt source that combines textbook and exercises. The README documents these content relationships; detailed links among individual chapters and unsampled PreTeXt files are not established by the excerpts.

Main entry points: [`latex/textbook`](https://github.com/arechnitzer/clp2/tree/master/latex/textbook) (Textbook chapters), [`latex/problembook`](https://github.com/arechnitzer/clp2/tree/master/latex/problembook) (Problembook), [`pretext/text`](https://github.com/arechnitzer/clp2/tree/master/pretext/text) (Textbook), [`pretext/problems`](https://github.com/arechnitzer/clp2/tree/master/pretext/problems) (Exercises)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pretext["PreTeXt edition"]
  node_pretext_text["Textbook"]
  node_pretext_problems["Exercises"]
  node_pretext_answers["Hints and answers"]
  node_pretext_assets["Textbook assets"]
end

subgraph group_latex["LaTeX edition"]
  node_latex_text["Textbook chapters"]
  node_latex_problems["Problembook"]
  node_latex_text_figures["Textbook figures"]
  node_latex_problem_figures["Problem figures"]
end

subgraph group_learning["Learning materials"]
  node_integration["Integral calculus<br/>[clp_2_ic_text.tex]"]
  node_applications["Integral applications"]
  node_numerical_ode["Numerical ODEs"]
  node_series["Series<br/>[clp_series.tex]"]
  node_extra_topics["Additional topics"]
  node_problem_sets["Problem sets"]
  node_problem_solutions["Problembook material"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_pretext_text
node_learner -->|"studies"| node_latex_text
node_learner -->|"practices with"| node_latex_problems
node_pretext_text -->|"includes exercises"| node_pretext_problems
node_pretext_text -->|"includes appendices"| node_pretext_answers
node_latex_text -.->|"uses figures"| node_latex_text_figures
node_latex_problems -.->|"uses figures"| node_latex_problem_figures
node_latex_text -.->|"includes"| node_integration
node_latex_text -.->|"includes"| node_applications
node_latex_text -.->|"includes"| node_numerical_ode
node_latex_text -.->|"includes"| node_series
node_latex_text -.->|"includes"| node_extra_topics
node_latex_problems -.->|"includes"| node_problem_sets
node_latex_problems -.->|"includes"| node_problem_solutions

click node_pretext_text "https://github.com/arechnitzer/clp2/tree/master/pretext/text"
click node_pretext_problems "https://github.com/arechnitzer/clp2/tree/master/pretext/problems"
click node_pretext_answers "https://github.com/arechnitzer/clp2/tree/master/pretext"
click node_pretext_assets "https://github.com/arechnitzer/clp2/tree/master/pretext/assets"
click node_latex_text "https://github.com/arechnitzer/clp2/tree/master/latex/textbook"
click node_latex_problems "https://github.com/arechnitzer/clp2/tree/master/latex/problembook"
click node_latex_text_figures "https://github.com/arechnitzer/clp2/tree/master/latex/textbook/figures"
click node_latex_problem_figures "https://github.com/arechnitzer/clp2/tree/master/latex/problembook/figures"
click node_integration "https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_2_ic_text.tex"
click node_applications "https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_int_app_notes.tex"
click node_numerical_ode "https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_ODE_numerical.tex"
click node_series "https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_series.tex"
click node_extra_topics "https://github.com/arechnitzer/clp2/tree/master/latex/textbook"
click node_problem_sets "https://github.com/arechnitzer/clp2/tree/master/latex/problembook/problems"
click node_problem_solutions "https://github.com/arechnitzer/clp2/blob/master/latex/problembook/clp_2_ic_problems.tex"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pretext_text,node_pretext_problems,node_pretext_answers,node_pretext_assets toneBlue
class node_latex_text,node_latex_problems,node_latex_text_figures,node_latex_problem_figures toneAmber
class node_integration,node_applications,node_numerical_ode,node_series,node_extra_topics,node_problem_sets,node_problem_solutions toneMint
class node_learner toneIndigo
```

## Components

### PreTeXt edition

- [Textbook](https://github.com/arechnitzer/clp2/tree/master/pretext/text): `pretext/text`
- [Exercises](https://github.com/arechnitzer/clp2/tree/master/pretext/problems): `pretext/problems`
- [Hints and answers](https://github.com/arechnitzer/clp2/tree/master/pretext): `pretext`
- [Textbook assets](https://github.com/arechnitzer/clp2/tree/master/pretext/assets): `pretext/assets`

### LaTeX edition

- [Textbook chapters](https://github.com/arechnitzer/clp2/tree/master/latex/textbook): `latex/textbook`
- [Problembook](https://github.com/arechnitzer/clp2/tree/master/latex/problembook): `latex/problembook`
- [Textbook figures](https://github.com/arechnitzer/clp2/tree/master/latex/textbook/figures): `latex/textbook/figures`
- [Problem figures](https://github.com/arechnitzer/clp2/tree/master/latex/problembook/figures): `latex/problembook/figures`

### Learning materials

- [Integral calculus](https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_2_ic_text.tex): `latex/textbook/clp_2_ic_text.tex`
- [Integral applications](https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_int_app_notes.tex): `latex/textbook/clp_int_app_notes.tex`
- [Numerical ODEs](https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_ODE_numerical.tex): `latex/textbook/clp_ODE_numerical.tex`
- [Series](https://github.com/arechnitzer/clp2/blob/master/latex/textbook/clp_series.tex): `latex/textbook/clp_series.tex`
- [Additional topics](https://github.com/arechnitzer/clp2/tree/master/latex/textbook): `latex/textbook`
- [Problem sets](https://github.com/arechnitzer/clp2/tree/master/latex/problembook/problems): `latex/problembook/problems`
- [Problembook material](https://github.com/arechnitzer/clp2/blob/master/latex/problembook/clp_2_ic_problems.tex): `latex/problembook/clp_2_ic_problems.tex`

### Other components

- **Learner**

## Connections

- Learner → Textbook: studies (evidence: `README.md`)
- Learner → Textbook chapters: studies (evidence: `README.md`)
- Learner → Problembook: practices with (evidence: `README.md`)
- Textbook → Exercises: includes exercises (evidence: `README.md`)
- Textbook → Hints and answers: includes appendices (evidence: `README.md`)
- Textbook chapters → Textbook figures: uses figures
- Problembook → Problem figures: uses figures
- Textbook chapters → Integral calculus: includes
- Textbook chapters → Integral applications: includes
- Textbook chapters → Numerical ODEs: includes
- Textbook chapters → Series: includes
- Textbook chapters → Additional topics: includes
- Problembook → Problem sets: includes
- Problembook → Problembook material: includes
