Write or revise content in the cardiac computational modeling textbook, following the Feynman-style guide
Write or revise content in the cardiac computational modeling textbook.
The user wants to edit: $ARGUMENTS
Research/textbook/Bidomain_Textbook.html (~12,300 lines, single file)Research/textbook/STYLE_GUIDE.mdResearch/textbook/INDEX.md (line numbers, page counts, equation registry)Research/textbook/CHANGELOG.mdResearch/textbook/audits/ (chapter-by-chapter quality reviews)Read STYLE_GUIDE.md — defines the Feynman-style writing approach:
Read CHANGELOG.md — check what's already been done. Don't redo work.
Read INDEX.md — find exact line numbers for the chapter you're editing. Jump directly to the relevant section using line offsets — do NOT read the entire 12,300-line HTML file.
Check relevant audits — if editing chapters 12-15, read audits/bidomain_chapter_audit.md for known issues. Chapters 7-11: monodomain_chapter_audit.md. LBM chapters: lbm_chapter_audit.md.
Research/INDEX.md and note the paper title inlineFor replacements larger than 50 lines:
/tmp/chapter_12_section_3.html)# Read original, splice in new content, write back
lines = open('Bidomain_Textbook.html').readlines()
new_content = open('/tmp/chapter_12_section_3.html').readlines()
lines[start:end] = new_content
open('Bidomain_Textbook.html', 'w').writelines(lines)
/textbook-compile to build and verify