diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2025-11-05 10:13:24 -0700 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2025-11-05 10:13:24 -0700 |
| commit | 397ba81d210dad7331626e4bbaccfca3b745576c (patch) | |
| tree | c5dd8180103638bf0394cd2104dc687e68d0e6df /book/generate_tex_files.sh | |
| parent | 6a5f11936e4419866b941f35b5dfad0729008cb5 (diff) | |
Removed book/ from tracking
Diffstat (limited to 'book/generate_tex_files.sh')
| -rw-r--r-- | book/generate_tex_files.sh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/book/generate_tex_files.sh b/book/generate_tex_files.sh deleted file mode 100644 index 87238f4..0000000 --- a/book/generate_tex_files.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -markdown_dir="../tutorials" -book_dir="." - -# Enable recursive globbing with ** -shopt -s globstar - -# Loop through markdown files in source directory -for filepath in "$markdown_dir"/module_*/**/*.md; do - [ -e "$filepath" ] || continue - - # Get module name and clean it (remove underscore) - module_base=$(basename "$(dirname "$filepath")") # module_# - module_clean="${module_base//_/}" # module# - - # Get filename without extension - filename="${filepath##*/}" # file.md - filename_no_ext="${filename%.md}" # file - - # Make sure output directory exists - output_dir="$book_dir/$module_clean" - mkdir -p "$output_dir" - - # Define output .tex file path - output_file="$output_dir/$filename_no_ext.tex" - - # Convert markdown to LaTeX - pandoc -f markdown -t latex "$filepath" -o "$output_file" - - echo "Converted $filepath -> $output_file" -done |
