@machinespirits/eval 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,74 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Build PDFs (and optionally PPTX) from paper markdown sources.
3
- # Usage:
4
- # ./build.sh # build both PDFs
5
- # ./build.sh full # build full paper PDF only
6
- # ./build.sh short # build short paper PDF only
7
- # ./build.sh slides # build slides PPTX from full paper (basic pandoc output)
8
- # ./build.sh all # build PDFs + slides
9
-
10
- set -euo pipefail
11
- cd "$(dirname "$0")"
12
-
13
- # Extract version from paper-full.md YAML frontmatter
14
- VERSION=$(grep '^version:' paper-full.md | head -1 | sed 's/version: *"\(.*\)"/\1/')
15
- if [ -z "$VERSION" ]; then
16
- echo "Warning: no version found in paper-full.md frontmatter, using 'dev'"
17
- VERSION="dev"
18
- fi
19
-
20
- FULL_PDF="paper-full-v${VERSION}.pdf"
21
- SHORT_PDF="paper-short-v${VERSION}.pdf"
22
- SLIDES_PPTX="paper-slides-v${VERSION}.pptx"
23
-
24
- PANDOC_OPTS=(
25
- --citeproc
26
- --pdf-engine=xelatex
27
- -H header.tex
28
- )
29
-
30
- build_full() {
31
- echo "Building ${FULL_PDF} ..."
32
- pandoc "${PANDOC_OPTS[@]}" paper-full.md -o "${FULL_PDF}"
33
- echo " -> ${FULL_PDF}"
34
- }
35
-
36
- build_short() {
37
- echo "Building ${SHORT_PDF} ..."
38
- pandoc "${PANDOC_OPTS[@]}" paper-short.md -o "${SHORT_PDF}"
39
- echo " -> ${SHORT_PDF}"
40
- }
41
-
42
- build_slides() {
43
- echo "Building ${SLIDES_PPTX} (basic pandoc conversion) ..."
44
- pandoc --citeproc paper-full.md -o "${SLIDES_PPTX}"
45
- echo " -> ${SLIDES_PPTX}"
46
- echo " Note: For the full presentation, see notes/Drama-Machine-Presentation.pptx"
47
- }
48
-
49
- case "${1:-pdf}" in
50
- full)
51
- build_full
52
- ;;
53
- short)
54
- build_short
55
- ;;
56
- slides)
57
- build_slides
58
- ;;
59
- all)
60
- build_full
61
- build_short
62
- build_slides
63
- ;;
64
- pdf|"")
65
- build_full
66
- build_short
67
- ;;
68
- *)
69
- echo "Usage: $0 [full|short|slides|pdf|all]"
70
- exit 1
71
- ;;
72
- esac
73
-
74
- echo "Done."
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,4 +0,0 @@
1
- \usepackage{amssymb}
2
- \AtBeginDocument{%
3
- \author{Liam Magee\\[0.3em]Education Policy, Organization and Leadership\\University of Illinois Urbana-Champaign}%
4
- }