Should Terror Shape Machine Behaviors?
Botao Amber Hu, Biber
📄 Paper: terrified.ai | arXiv
terrified-ai/
├── content/ # ← YOU WRITE HERE
│ ├── md/ # Markdown files → site pages (one file = one page)
│ ├── figures/ # SVG/PNG figures referenced in markdown
│ └── data/ # JSON data for interactive visualizations
├── paper/ # ← YOU WRITE HERE
│ ├── latex/ # LaTeX source for arXiv submission
│ └── figures/ # Paper figures (PDF/EPS for LaTeX)
├── src/ # Site framework (auto-generates from content/)
│ ├── app/ # Next.js app router
│ ├── components/ # React components (sidebar, figures, etc.)
│ ├── lib/ # Markdown parser, config, utilities
│ └── styles/ # CSS
├── public/ # Static assets (favicon, og-image, etc.)
└── scripts/ # Build scripts (md→LaTeX, figure generation)
- Write content in
content/md/*.mdusing extended markdown - Add figures to
content/figures/(SVG preferred for site, PDF for paper) - Run site with
npm run dev→ auto-renders markdown as pages - Build paper with
npm run paper→ generates LaTeX from same markdown - Deploy with
npm run build→ static site for Vercel/Netlify
Each markdown file in content/md/ becomes a page. File naming = URL path:
| File | URL | Sidebar Label |
|---|---|---|
introduction.md |
/ (homepage) |
Introduction |
terror-paradox.md |
/terror-paradox |
The Terror Paradox |
study-1-mortality-salience.md |
/study-1-mortality-salience |
Study 1: Mortality Salience |
| ... | ... | ... |
---
title: "The Terror Paradox"
order: 2
section: "main" # main | experiment | supplementary
summary: true # show executive summary box on this page
next: "study-1-mortality-salience"
prev: "introduction"
---Standard markdown plus:
::figure[caption]{src="figures/fig-1.svg" alt="..." width="80%"}— figures::interactive{data="data/terror-scaling.json" type="line"}— interactive charts::collapsible[Title]...::end— collapsible experiment details::summary...::end— executive summary box$...$and$$...$$— LaTeX math (KaTeX)[@greenberg1986]— citation keys (resolved fromcontent/references.bib)[^1]— footnotes
npm run paper converts content/md/ → paper/latex/main.tex:
- Strips interactive elements
- Converts figures to LaTeX
\includegraphics - Resolves citations to BibTeX
\cite{} - Outputs arxiv-ready submission
npm install
npm run dev # Start dev server at localhost:3000
npm run build # Production build
npm run paper # Generate LaTeX from markdown
npm run figures # Regenerate figures from data