Skip to content

Commit

Permalink
Added markers for OT and NT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Thoren committed Jul 29, 2020
1 parent 2065d47 commit c5b8c48
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions generate_single_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@ for file in *.org; do
fi
done

echo "Moving all chapter markers one step to the right."
sed -i'' 's/^\*\ /\*\*\ /g' "$OUT"
echo "Converting TITLEs to headers."
sed -i'' 's/^#+TITLE\:\ /\*\ /g' "$OUT"
echo "Moving all chapter markers two steps to the right."
sed -i'' 's/^\*\ /\*\*\*\ /g' "$OUT"
echo "Converting TITLEs."
sed -i'' 's/^#+TITLE\:\ /\*\*\ /g' "$OUT"
echo "Adding OT and NT markers."
sed -i'' '1i\* Old Testament' "$OUT"
sed -i'' '/^\*\* Matthew/i\* New Testament' "$OUT"
sed -i'' '1i\\' "$OUT"
echo "Adding file header."
sed -i'' '1i\#+LaTeX: \\setcounter{secnumdepth}{0}' "$OUT"
sed -i'' '1i\#+OPTIONS: author:nil date:nil toc:2' "$OUT"
sed -i'' '1i\#+STARTUP: overview' "$OUT"
sed -i'' '1i\#+SUBTITLE: King James Version (Authorized)' "$OUT"
sed -i'' '1i\#+TITLE: The Holy Bible' "$OUT"
Expand Down

0 comments on commit c5b8c48

Please sign in to comment.