% --- Document-generation pipeline: single source, many formats --- \begin{figure}[htbp] \centering \begin{tikzpicture}[vqfont] \node[vqteal, text width=2.7cm, minimum height=1.7cm] (md) at (0,0) {\textbf{Markdown report}\\[1pt]\vqsmall streamed text\\$+$ figure refs}; \node[vqred, text width=4.3cm] (pdf) at (8.2, 3.0) {\textbf{PDF}\\\vqsmall protect--parse--restore math $\to$ headless browser $\to$ \textit{wait for render}}; \node[vqpurple, text width=4.3cm] (slides) at (8.2, 1.0) {\textbf{Beamer slides}\\\vqsmall 2nd model call restructures $\to$ branded preamble $\to$ two \LaTeX{} passes}; \node[vqblue, text width=4.3cm] (docx) at (8.2,-0.7) {\textbf{DOCX}\\\vqsmall document converter preserves tables / structure}; \node[vqgreen, text width=4.3cm] (xlsx) at (8.2,-2.3) {\textbf{XLSX}\\\vqsmall sandbox \texttt{save\_excel} $\to$ \textit{live} formulas, conditional formats}; \node[vqorange, text width=4.3cm] (share) at (8.2,-3.9) {\textbf{Share URL}\\\vqsmall store content $+$ figures $\to$ public viewer}; \draw[vqflow] (md.east) to[out=35,in=180] (pdf.west); \draw[vqflow] (md.east) to[out=18,in=180] (slides.west); \draw[vqflow] (md.east) to[out=0,in=180] (docx.west); \draw[vqflow] (md.east) to[out=-18,in=180] (xlsx.west); \draw[vqflow] (md.east) to[out=-32,in=180] (share.west); \end{tikzpicture} \caption{\textbf{The unified document pipeline.} A single Markdown artifact is rendered into four document formats and a shareable view, each by a distinct mechanism. The PDF path protects mathematics from the Markdown parser with placeholder tokens, renders in a real browser engine, and waits for the math to appear before capture. The slide path issues a \emph{second} model call that restructures the report into slide bodies, then compiles a branded Beamer document in two \LaTeX{} passes. Word uses a document converter; spreadsheets carry live formulas written from the sandbox; and any report can be published to a stable URL. One source, many auditable deliverables.} \label{fig:docpipeline} \end{figure}