From 21e92303472350fd5ceb554a8d440f556f5a0c16 Mon Sep 17 00:00:00 2001
From: novacto3 <tomas.novacek@fit.cvut.cz>
Date: Mon, 17 Jun 2024 13:38:06 +0200
Subject: [PATCH] Only XeLaTeX and LuaLaTeX are now supported

---
 .gitlab-ci.yml    | 30 +-----------------------------
 README.md         |  4 ++--
 changelog.md      | 13 +++++++++++++
 ctufit-thesis.tex |  5 ++---
 4 files changed, 18 insertions(+), 34 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc009b2..2aaf590 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,32 +24,4 @@ XeLaTeX:
         paths:
             - ctufit-thesis.pdf
             - ctufit-thesis-en.pdf
-            - ctufit-thesis-sk.pdf
-
-pdfLaTeX:
-    script: 
-        - sed 's/\[czech/\[slovak/' ctufit-thesis.tex > ctufit-thesis-sk.tex
-        - sed 's/\[czech/\[english/' ctufit-thesis.tex > ctufit-thesis-en.tex
-        - latexmk -pdf ctufit-thesis.tex
-        - latexmk -pdf ctufit-thesis-en.tex
-        - latexmk -pdf ctufit-thesis-sk.tex
-    artifacts:
-        paths:
-            - ctufit-thesis.pdf
-            - ctufit-thesis-en.pdf
-            - ctufit-thesis-sk.pdf
-
-LaTeX:
-    script: 
-        - DEBIAN_FRONTEND=noninteractive apt-get update
-        - DEBIAN_FRONTEND=noninteractive apt-get -yq install ghostscript
-        - sed 's/\[czech/\[slovak/' ctufit-thesis.tex > ctufit-thesis-sk.tex
-        - sed 's/\[czech/\[english/' ctufit-thesis.tex > ctufit-thesis-en.tex
-        - latexmk -pdfps ctufit-thesis.tex
-        - latexmk -pdfps ctufit-thesis-en.tex
-        - latexmk -pdfps ctufit-thesis-sk.tex
-    artifacts:
-        paths:
-            - ctufit-thesis.pdf
-            - ctufit-thesis-en.pdf
-            - ctufit-thesis-sk.pdf
+            - ctufit-thesis-sk.pdf
\ No newline at end of file
diff --git a/README.md b/README.md
index 0f8ede7..0a912dd 100644
--- a/README.md
+++ b/README.md
@@ -7,12 +7,12 @@ LaTeX template for theses at FIT CTU
 About
 -----
 
-Recommended template for theses submitted at [Faculty of Information Technology](https://fit.cvut.cz) at [Czech Technical University in Prague](https://cvut.cz). For use with XeLaTeX.
+Recommended template for theses submitted at [Faculty of Information Technology](https://fit.cvut.cz) at [Czech Technical University in Prague](https://cvut.cz). For use with XeLaTeX or LuaLaTeX.
 
 
 Version
 --------
-1.2.2 (17. 6. 2024). The whole changelog can be found in the [Changelog file](changelog.md).
+1.3.0, built 17. 6. 2024. The whole changelog can be found in the [Changelog file](changelog.md).
 
 
 Bugs and support
diff --git a/changelog.md b/changelog.md
index 39e591a..4a8bb3a 100644
--- a/changelog.md
+++ b/changelog.md
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/)
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
+## [1.3.0] - 17. 6. 2024
+  
+Dropped older compilers that do not support computer-read PDFs (e.g., the text could not be copy-pasted). Now, only XeLaTeX and LuaLaTeX can be used.
+ 
+### Changed
+- Changed the if that processes the used compiler, so it supports only XeLaTex or LuaLaTeX. Otherwise, error is raised.
+
+
+
 ## [1.2.2] - 17. 6. 2024
   
 Title page is now first, the assignment is second page.
@@ -12,6 +21,8 @@ Title page is now first, the assignment is second page.
 ### Changed
 - Swapped Title page and assignment page.
 
+
+
 ## [1.2.1] - 17. 6. 2024
   
 Sync of layout for oneside and twoside versions. 
@@ -22,6 +33,8 @@ Sync of layout for oneside and twoside versions.
 ### Fixed
 - Fixed the problem that oneside and twoside versions had different layouts because of different margings.
 
+
+
 ## [1.2.0] - 17. 6. 2024
   
 Started versioning.
diff --git a/ctufit-thesis.tex b/ctufit-thesis.tex
index c6cf740..2ad0b91 100644
--- a/ctufit-thesis.tex
+++ b/ctufit-thesis.tex
@@ -1,7 +1,7 @@
 %% This is the ctufit-thesis example file. It is used to produce theses
 %% for submission to Czech Technical University, Faculty of Information Technology.
 %%
-%% This is version 1.2.2. build on 17. 6. 2024.
+%% This is version 1.2.3, built 17. 6. 2024.
 %% 
 %% Get the newest version from
 %% https://gitlab.fit.cvut.cz/theses-templates/FITthesis-LaTeX
@@ -69,8 +69,7 @@
 \iftutex % XeLaTeX and LuaLaTeX
     \RequirePackage{ellipsis}[2020/05/22] %ellipsis workaround for XeLaTeX
 \else
-    \RequirePackage[utf8]{inputenc}[2018/08/11] %this file encoding
-    \RequirePackage{lmodern}[2009/10/30] % vector flavor of Computer Modern font
+    \errmessage{Only compilation with XeLaTeX or LuaLaTeX is allowed}
 \fi
 
 % hyperlinks
-- 
GitLab