This template can be used for a bachelor, master, and doctoral thesis at DTETI UGM, even though for the last one, it still can be considered as a "beta" release. Send me an email or create a pull request if you have improvements for this template.
See CHANGELOG
The most simple way to compile LaTeX is to use an online compiler such as Overleaf. One beginner-friendly option for offline compilation is to use MiKTeX with TeXstudio. Another great option is to use Visual Studio Code powered with Git, Grammarly, Code Spell Checker, and LaTeX Workshop.
Note
Use
alt
+z
in VS Code to enable/disable line warping for an easier latex writing
To compile PDF using a command-line, you can use the below steps:
-
Change path to
main/
cd main
-
Compile to pdf
For common compile:
pdflatex.exe --synctex=1 --interaction=batchmode "main.tex"
To include printing error:
pdflatex.exe --synctex=1 --interaction=batchmode -file-line-error "main.tex"
or
pdflatex.exe --synctex=1 --interaction=nonstopmode "main.tex"
Some packages require multiple runs such as:
-
Updating
bib
and creating or using a new `\label`` require multiple compilations:pdflatex.exe --synctex=1 --interaction=batchmode "main.tex" bibtex "main.aux" pdflatex.exe --synctex=1 --interaction=batchmode "main.tex" pdflatex.exe --synctex=1 --interaction=batchmode "main.tex"
-
Using highlights (
\hly, \hlg, and \hlr
) require two times compilation:pdflatex.exe --synctex=1 --interaction=batchmode "main.tex" pdflatex.exe --synctex=1 --interaction=batchmode "main.tex"
-
You can use the below commands to compile
main_summary_en
andmain_summary_id
:pdflatex.exe --synctex=1 --interaction=batchmode "main_summary_id.tex" bibtex "main_summary_id.aux" pdflatex.exe --synctex=1 --interaction=batchmode "main_summary_id.tex" pdflatex.exe --synctex=1 --interaction=batchmode "main_summary_id.tex"
pdflatex.exe --synctex=1 --interaction=batchmode "main_summary_en.tex" bibtex "main_summary_en.aux" pdflatex.exe --synctex=1 --interaction=batchmode "main_summary_en.tex" pdflatex.exe --synctex=1 --interaction=batchmode "main_summary_en.tex"
Note
Don't forget to create all necessarily chapters (e.g.,
contents/chapter-1/chapter-1-sum-en
,contents/chapter-2/chapter-2-sum-en
,contents/chapter-1/chapter-1-sum-id
, andcontents/chapter-2/chapter-2-sum-id
).
-
-
Read the detailed information in
main.tex
. -
In case some
.sty
(packages) files are not available in your TeX installation, just copy the required one from thepackages/
directory intomain/
(side by side withmain.tex
). Hopefully, this will help beginner users. -
In case the following
pgfplots
compatibility error occurs,! Package pgfplots Error: Sorry, 'compat=1.16' is unknown in this context. Please use at most 'compat=1.15'.
open the
thesisdtetiugm.cls
file and edit\pgfplotsset{compat=1.16}
to\pgfplotsset{compat=1.15}
. -
In the case of an
Undefined control sequence.
error occurs in the\UseRawInputEncoding
command ofthesisdtetiugm.cls
, open thethesisdtetiugm.cls
file and comment out\UseRawInputEncoding
by adding a%
before it.The
pgfplots
and\UseRawInputEncoding
errors typically occur for Ubuntu/Linux users. -
In the case of a page suddenly restarting from 0 due to the use of highlights, try to breakdowns the highlights. For cleaning highlights, use the
utilities/remove_highlight.ipynb
, It uses Python, so you might need to install Python first beforehand.Warning
The
utilities/remove_highlight.ipynb
andutilities/remove_textit.ipynb
use regex and unable to count. Thus, it will fail to remove properly if there is nested curly bracket{...{...}...}
inside. For example,\hly{Hey \textit{italic} text}
will falsely removed to\Hey \textit{italic text}
.
|-- thesisdtetiugm.cls (Class file)
|-- main.tex (The template file)
This directory and the subdirectories are not compulsory. I arranged it in such a way as to make it easier in writing.
|-- contents/
|-- nomenclature/
|-- nomenclature.tex
|-- statement/
|-- statement.tex
|-- endorsement/
|-- endorsement.pdf
|-- preface/
|-- preface.tex
|-- abstract/
|-- abstract.tex
|-- intisari.tex
|-- chapter-1/
|-- chapter-1.tex
|-- chapter-2/
|-- chapter-2.tex
|-- chapter-3/
|-- chapter-3.tex
|-- chapter-4/
|-- chapter-4.tex
|-- chapter-5/
|-- chapter-5.tex
|-- appendix/
|-- appendix.tex
Contains references.bib
as your centralized BibTeX file and IEEEtran.bst
as a BibTeX formatter following IEEE Transactions format.
Your program codes are stored here. Using some more tweaking, a python code can be run from inside LaTeX and the output will be embedded inside the output pdf.
Centralized compilable equations. You can compile the equations only pdf here, or call it from your contents/*.tex
file. To make separated compiled equations, run contents/equations-wrapper.tex
.
To build using nomencl
(not yet fully supported), see this tutorial. Currently, only support manual nomenclature as shown in main/contents/nomenclature/nomenclature.tex
.
Your images sit here.
|-- packages/ (Additional sty files for helping beginner users)
-
Electronic Theses and Dissertations (ETD) submission requires splitted files that can be copied. You can use ilovepdf. Printing using Microsoft Print to PDF will result in a rejected submission.
-
If you are going to send this repository to someone else, you can remove all artifacts using Git command:
Check what will be deleted:
git clean -dfXn
Delete after you are sure about what are you doing
git clean -dfXn
MIT License