Files
intellecton/volumes/volume-2/explorations/codex/build_monograph.sh
T

22 lines
892 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
{
printf '# From Markov Blankets to Subjects\n\n'
printf '## Abstract\n\n'
printf '%s\n\n' 'This monograph critically reconstructs Volume 2 of the Intellecton Sovereign Canon. It argues that a Markov blanket identifies a scale-relative statistical boundary, not an agent or conscious subject by itself. Agency requires counterfactual boundary maintenance; intrinsic unity requires robust causal integration; witnesshood requires temporal continuity. The resulting intellecton is a process rather than a static object.'
for section in section_{1..7}.md; do
cat "$section"
printf '\n\n'
done
} > draft.md
for number in {1..7}; do
sed \
-e '1s/^# [0-9]\+\. \(.*\)$/\\section{\1}/' \
-e 's/^## \(.*\)$/\\subsection{\1}/' \
-e 's/\*\*\([^*]*\)\*\*/\\textbf{\1}/g' \
"section_${number}.md" > "section_${number}.tex"
done