# Instructions: Making Review PDFs for a TI-Nspire CX II

Give this file to the AI at the start of a chat, along with photos or screenshots of the problems.

## Goal

Build a compact PDF of solved problems. Each problem shows its picture plus short worked steps. The PDF gets converted to a .tns document (one calculator page per PDF page) and read on a TI-Nspire CX II screen (320 × 240 px, 4:3). Every choice below serves that small screen.

## Workflow

1. **Read the problems.** Identify every problem in the images, including its number, given values, and question. If a screenshot shows a correct answer or answer key, record it.
2. **Solve each problem.** Work it out fully and check your result against the answer key when one is shown. If they disagree, recheck your work. If they still disagree, say so in chat and don't silently change either answer. For wrong answers the user got on the key, briefly explain the mistake in chat.
3. **Crop and clean the images.** Crop each problem to its text and figure only. Leave out answer options, browser bars, and neighbouring questions. Then clean each crop:
   - Convert to grayscale.
   - Flat-field it to remove the screen glare and moiré from phone photos of a monitor. Divide the image by a Gaussian-blurred copy of itself (radius about 25 px), multiply by 255, stretch the contrast, and apply a 3 px median filter.
   - Save as PNG.
4. **Build the PDF with LaTeX,** using the template below.
5. **Verify before delivering.** Render the pages to PNG and look at them. Check that nothing runs off a page, the bottom margin is respected, and no glyphs are broken. `\Delta` renders as a black box with `sansmath`, so write `\theta_2-\theta_1` instead. Check that the page count is as small as possible.

## Layout preferences

- **Page size:** 16 × 12 cm, landscape 4:3. Margins are 0.3 cm, except the bottom margin, which must be at least 1.1 cm. The calculator viewer shows a page indicator in the bottom corner, so no answer box can sit close to the bottom.
- **Density:** 3 problems per page. Page 1 has a header (title, then key formulas and tips in two columns) followed by 2 problems.
- **Each problem:**
  - A blue bold title line reading "Q#: short description", with a thin rule under it.
  - The cleaned picture on the left, taking about 49% of the width with its height capped near 2.75 cm.
  - The solution on the right in `\scriptsize`: a "Given:" line, then short numbered steps, then a green boxed answer.
- **Math:** all equations in LaTeX. Use sans-serif text and math (Helvetica plus `sansmath`).
- **Steps:** 3–5 short numbered steps per problem, showing the key equation, the substitution, and the result. Include units. Add one-line hints where they help, such as "calculator in radians" or "the 120 km/h is not needed".
- **Header tips:** include whatever tips apply to the problem set, such as radians mode, km/h ÷ 3.6, or "ρ uses only the normal part of a".
- **File size:** keep each PDF at 10 pages or fewer. If there are more problems, make several PDFs (Part 1, Part 2, …) instead of one long file, because very long documents can run out of memory on the calculator.

## LaTeX template

```latex
\documentclass[10pt]{article}
\usepackage[paperwidth=16cm,paperheight=12cm,margin=0.3cm,top=0.25cm,bottom=1.1cm]{geometry}
\usepackage{amsmath,amssymb,graphicx,xcolor}
\usepackage[scaled]{helvet}\renewcommand{\familydefault}{\sfdefault}
\usepackage{sansmath}\sansmath
\pagestyle{empty}\setlength{\parindent}{0pt}\setlength{\parskip}{1.5pt}
\newcommand{\ans}[1]{\par\fcolorbox{green!50!black}{green!8}{\textbf{Ans:} #1}}
\newcommand{\prob}[4]{%
{\small\bfseries\color{blue!60!black}Q#1: #2}\\[-2pt]\rule{\linewidth}{0.3pt}\\
\begin{minipage}[t]{0.49\linewidth}\vspace{0pt}\includegraphics[width=\linewidth,height=2.75cm,keepaspectratio]{#3}\end{minipage}\hfill
\begin{minipage}[t]{0.49\linewidth}\vspace{0pt}\scriptsize #4\end{minipage}\par\vspace{1pt}}
\begin{document}

{\bfseries\large Title} \quad {\small Subtitle, N solved problems}\par\vspace{4pt}
\begin{minipage}[t]{0.49\linewidth}\scriptsize \textbf{Key formulas}\par ... \end{minipage}\hfill
\begin{minipage}[t]{0.49\linewidth}\scriptsize \textbf{Tips}\par ... \end{minipage}\par\vspace{6pt}

\prob{1}{Short description}{q1.png}{%
\textbf{Given:} ...\par
\textbf{1.} ...\par
\textbf{2.} ...
\ans{...}}

% \newpage after every 3 problems (after 2 on page 1)
\end{document}
```

## Deliverable

- One PDF, or several parts of 10 pages or fewer each, named clearly, for example `Dynamics_Review_Part1.pdf`.
- A short chat message that lists any answer-key disagreements and explains the mistakes on problems the user got wrong.
- A reminder to convert the PDF to a .tns file before sending it to the calculator.
