Skip to content

Commit

Permalink
Added combined and updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumbroso committed Aug 9, 2023
1 parent d1bb0ce commit 3f6509c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/latex-compilation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,47 @@ jobs:
glob_root_file: true
continue_on_error: true

- name: 📂 List Directory Contents
run: ls -al

- name: 📝 Find .tex Files and create Combined.tex
run: |
echo "\\documentclass{article}" > Combined.tex
echo "\\usepackage{pdfpages}" >> Combined.tex
echo "\\usepackage{titlesec}" >> Combined.tex
echo "\\begin{document}" >> Combined.tex
# Add the title page
echo "\\begin{titlepage}" >> Combined.tex
echo "\\centering" >> Combined.tex
echo "\\vspace*{\fill}" >> Combined.tex
echo "\\LARGE \textbf{<CourseName>}" >> Combined.tex
echo "\\Large <InstitutionName>" >> Combined.tex
echo "\\normalsize Author: <AuthorName>" >> Combined.tex
echo "\\vspace*{\fill}" >> Combined.tex
echo "\\end{titlepage}" >> Combined.tex
for file in $(ls *.tex | sort); do
# Exclude Combined.tex from the list
if [[ "$file" != "Combined.tex" ]]; then
# Replace .tex with .pdf
pdf_file="${file%.tex}.pdf"
echo "\\includepdf[pages=-]{$pdf_file}" >> Combined.tex
fi
done
echo "\\end{document}" >> Combined.tex
mv "Combined.tex" "CIT-5920-Lecture-Notes.tex"
- name: 🔍 Look at file content
run: cat "CIT-5920-Lecture-Notes.tex"

- name: 🛠️ Compile Combined.tex
uses: xu-cheng/latex-action@v2
with:
root_file: "CIT-5920-Lecture-Notes.tex"
glob_root_file: true
continue_on_error: true

- name: 🏷️ Generate Release Tag
id: tag
run: |
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
592Notes
========
# UPenn — CIT 5920 — Lecture Notes

Collection of brief notes from fall 2014 592 lectures
This repository contains lecture notes originally authored by Arvind Bhusnurmath for the Fall 2014 offering of CIT 5920 at the University of Pennsylvania.

Any change made to the LaTeX source files will automatically be recompiled and pushed as a release.

0 comments on commit 3f6509c

Please sign in to comment.