From 73b27ad6b9a85fe6acd0c2fd36ed337f40954913 Mon Sep 17 00:00:00 2001 From: "J.A.A.Tsimouris" Date: Wed, 3 Jul 2024 20:08:37 +0300 Subject: [PATCH] fixes --- .github/workflows/pdf-production.yml | 4 ++-- .github/workflows/todo.org | 2 ++ main.tex | 9 +++++++++ packages.tex | 6 ++++++ coverpage.tex => setup/titlepage.tex | 16 +++------------- variables.tex => setup/variables.tex | 3 +++ 6 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 packages.tex rename coverpage.tex => setup/titlepage.tex (85%) rename variables.tex => setup/variables.tex (62%) diff --git a/.github/workflows/pdf-production.yml b/.github/workflows/pdf-production.yml index 82d3fac..de22a49 100644 --- a/.github/workflows/pdf-production.yml +++ b/.github/workflows/pdf-production.yml @@ -9,9 +9,9 @@ jobs: - name: Compile LaTeX document uses: xu-cheng/latex-action@v3 with: - root_file: coverpage.tex + root_file: main.tex - name: Upload PDF file uses: actions/upload-artifact@v4 with: name: PDF - path: coverpage.pdf + path: main.pdf diff --git a/.github/workflows/todo.org b/.github/workflows/todo.org index 58b0c00..2ff8243 100644 --- a/.github/workflows/todo.org +++ b/.github/workflows/todo.org @@ -1,3 +1,5 @@ https://github.com/marketplace/actions/github-action-for-latex Update script so that it deletes older PDFS Move PDFs to output directory +Add import to main.tex +Unbundle zip; skip this step diff --git a/main.tex b/main.tex index e69de29..2fd8902 100644 --- a/main.tex +++ b/main.tex @@ -0,0 +1,9 @@ +% main.tex +\documentclass{article} +\input{packages.tex} +\input{setup/variables.tex} +\begin{document} + % Include the title page + \input{setup/titlepage.tex} + % \input{sections/} +\end{document} diff --git a/packages.tex b/packages.tex new file mode 100644 index 0000000..28c34c7 --- /dev/null +++ b/packages.tex @@ -0,0 +1,6 @@ +% PACKAGE DECLARATION +\usepackage[dvipsnames]{xcolor} +\usepackage{tikz} +\usetikzlibrary{shapes.geometric} +\usetikzlibrary{calc} +\usepackage{anyfontsize} diff --git a/coverpage.tex b/setup/titlepage.tex similarity index 85% rename from coverpage.tex rename to setup/titlepage.tex index 2579d9e..40ae960 100644 --- a/coverpage.tex +++ b/setup/titlepage.tex @@ -1,15 +1,5 @@ -% coverpage.tex -\documentclass{article} -% PACKAGE DECLARATION -\usepackage[dvipsnames]{xcolor} -\usepackage{tikz} -\usetikzlibrary{shapes.geometric} -\usetikzlibrary{calc} -\usepackage{anyfontsize} -% Variable Declaration -\input{variables.tex} - -\begin{document} +% titlepage.tex +\begin{titlepage} \pagestyle{empty} % Background colour @@ -44,4 +34,4 @@ \node[rounded corners,fill=RoyalPurple!95,text =RoyalPurple!5,circle, minimum size=2.5 cm,inner sep=0,ultra thick] at ($(current page.west)+(2.5,-5)$) {\LARGE \bfseries \Huge $\Pi$}; \end{tikzpicture} -\end{document} +\end{titlepage} diff --git a/variables.tex b/setup/variables.tex similarity index 62% rename from variables.tex rename to setup/variables.tex index 9ad7385..efd5000 100644 --- a/variables.tex +++ b/setup/variables.tex @@ -3,3 +3,6 @@ \newcommand{\titletext}{} \newcommand{\subtitletext}{} \newcommand{\currentyear}{} +\newcommand{\student_id}{} +\newcommand{\position}{} +\newcommand{\faculty}{}