Memory #84 CURRENT
DOCX Formatting Standards from Mark's edits
Table headers repeat across pages, headings never orphaned (keepNext), TOC multi-level, graphics in docs/graphics/
When building .docx files for Mark, apply these formatting standards:
- **Table header repeat:** Set `tblHeader` on first row of every table so headers continue on next page when table breaks across pages (OOXML `` inside ``, or `tableHeader: true` in docx-js)
- **No orphaned headings:** Every heading paragraph must carry `` so it is kept together with the following paragraph — a heading at the bottom of a page must never be separated from its first line of content. Added 2026-04-18.
- **Keep lines on headings:** Add `` on heading paragraphs so a multi-line heading cannot split across pages.
- **Tool fix landed 2026-04-18** — `tribernachi/tools/build_tribernachi_docx.js` commit `dda8abe` now sets `tableHeader: rowIndex === 0`, `cantSplit: true` on every row, and `keepNext + keepLines` on every heading (H1/H2/H3/H4 + TOC). New `.docx` output from this tool honours all three standards automatically — no post-processing script needed, no "known limitation" caveat to flag.
- **TOC structure:** Use Word's built-in multi-level TOC with Heading 1-3 levels, numbered sections
- **Graphics:** Mark generates publication-quality graphics externally (likely ChatGPT/DALL-E) with consistent TTI brand aesthetic — teal/gold/dark blue palette, technical flowcharts, infographic style. Graphics are large (2-3MB each, JPEG). Always leave `[Insert Flowchart: ...]` placeholders in markdown for him to place graphics manually in Word, OR extract from his edited .docx to `docs/graphics/` for future automated builds
- **Graphics directory:** Store graphics in `docs/graphics/` within the relevant repo (flat, descriptive filenames like "Layered Security Architecture.jpg")
**Why:** Mark's .docx editing in Word produces the final polished product. The build script produces the structural skeleton; he adds the visual polish. Future builds should incorporate his graphics from the extracted directory.
**How to apply:** In build scripts, add `tblHeader` XML to first row of every table. When graphics exist in the graphics directory, embed them automatically. When they don't, insert styled placeholders.
— [feedback_docx_formatting.md]
| Composite | FCF1CC3AA6538BD1B |
| Project prime | 13 |
| Domain prime | 59 |
| Type prime | 61 |
| Importance | 1.000000 (CRITICAL) |
| Decay epoch | 0 |
| Created | 2026-05-04 15:46:49 |
| Valid from | (unset) |
| Valid to | NULL — still believed true |