summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/unizgklasa
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/unizgklasa
Initial commit
Diffstat (limited to 'macros/latex/contrib/unizgklasa')
-rw-r--r--macros/latex/contrib/unizgklasa/README.md57
-rw-r--r--macros/latex/contrib/unizgklasa/example.pdfbin0 -> 30359 bytes
-rw-r--r--macros/latex/contrib/unizgklasa/example.tex87
-rw-r--r--macros/latex/contrib/unizgklasa/unizgklasa.cls160
4 files changed, 304 insertions, 0 deletions
diff --git a/macros/latex/contrib/unizgklasa/README.md b/macros/latex/contrib/unizgklasa/README.md
new file mode 100644
index 0000000000..756a1e003c
--- /dev/null
+++ b/macros/latex/contrib/unizgklasa/README.md
@@ -0,0 +1,57 @@
+unizg_klasa Package, version 1.0
+
+Author: Matea Milin
+
+
+* Copyright
+===========
+
+ Copyright (C) 2019 Matea Milin
+
+ This material is subject to the LaTeX Project Public License.
+ See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
+ for the details of that license.
+
+
+Unizg_klasa consists of the following files:
+
+ ----
+ unizg_klasa.ins
+ README.md
+ example.tex
+ -------
+
+
+
+
+* Description / Opis
+=============
+
+This class file is intended for students of Faculty Of Graphic Arts in Zagreb to use as a template for typesetting graduate and final thesis.
+However it is certainly free for anyone who likes it.
+
+Ova klasa prvenstveno je namijenjena studentima Grafičkog fakulteta u Zagrebu kao predložak za oblikovanje diplomskih i završnih radova.
+Međutim, svakako je besplatna za svakog kome se sviđa.
+
+
+
+
+* Installation / Instalacija
+==============
+
+ To install the package, please follow these steps:
+
+ - Run LaTeX on the file `unizg_klasa.ins' to create the style file `unizg_klasa.sty'.
+ - Run LaTeX on the file `unizg_klasa.dtx' to create the doc file `unizg_klasa.cls'.
+ - Install these files anywhere you see fit.
+ - Copy .cls file to directory with main.tex file.
+
+ - You will need to install these packages in order for class to function: graphicx, tocbibind, caption, hyperref, subcaption, titlesec, babel, geometry, fancyhdr
+
+
+
+ Za instaliranje klase pratite ove upute:
+ - Pokrenite `unizg_klasa.ins' datoteku u LaTeX-u za stvaranje unizg_klasa.sty'
+ - Pokrenite `unizg_klasa.dtx' datoteku u LaTeX-u za stvaranje.cls datoteke
+ - Instalirajte ovo datoteke gdje vam odgovara
+ - Kopirajte .cls datoteku u mapu s glavnim .tex dokumentom \ No newline at end of file
diff --git a/macros/latex/contrib/unizgklasa/example.pdf b/macros/latex/contrib/unizgklasa/example.pdf
new file mode 100644
index 0000000000..e98a499fe5
--- /dev/null
+++ b/macros/latex/contrib/unizgklasa/example.pdf
Binary files differ
diff --git a/macros/latex/contrib/unizgklasa/example.tex b/macros/latex/contrib/unizgklasa/example.tex
new file mode 100644
index 0000000000..3eb8b12dbc
--- /dev/null
+++ b/macros/latex/contrib/unizgklasa/example.tex
@@ -0,0 +1,87 @@
+\documentclass{unizgklasa}
+%\graphicspath{} %folder za slike, pročitati upute za pisanje u LaTeXu
+%na računalu je potrebno imati pakete:
+%upgreek
+%titlesec
+%tocbibind
+%babel
+%hypperref
+
+%ubacivanje Unizg fonta ako je potrebno
+
+%\usepackage{fontspec}
+%\setmainfont{UniZGLight.ttf}[
+%BoldFont=UniZgBold.ttf,
+%ItalicFont=UniZgLightItalic.ttf]
+
+\begin{document}
+
+\imestudenta{Matea Milin}
+\sveuciliste{Sveučilište u Zagrebu}
+\fakultet{Grafički fakultet}
+\naslovrada{\textit{Unizgklasa} - primjer i kratke upute za korištenje}
+\rad{\textit{Unizgklasa} - example file and short instructions}
+\mentor{Ante Poljičak}
+\grad{Zagreb}
+\logo{LOGO} % ubaci logo svog fakulteta i definiraj dimenzije
+%provjeri kako se adresira folder sa slikama u uputama
+
+\prvanaslovna
+\druganaslovna
+
+\section{Uvod/Introduction}
+Ova klasa namijenjena je generiranju diplomskih i završnih radova prema uputama Grafičkog fakulteta Sveučilišta u Zagrebu. Ne odgovara nužno uvjetima svake sastavnice Sveučilišta no izrađena je kao ideja za povezivanje i uniformiranje izgleda svih diplomskih radova. \\
+
+\verb=unizgklasa= distribuira se preko LaTeX Project Public Licence (LPPL) i moguće ju je mijenjati i ponovo distribuirati uz obavezno mijenjanje imena klase kako ne bi dolazilo do zabune. \\
+
+\textit{\textbf{English}}
+This class is intended for generating graduate and final theses according to the instructions of the Faculty of Graphic Arts, University of Zagreb. It does not necessarily correspond to the requirements of each component of the University, but it is designed as an idea for linking and uniformizing the look of all graduate papers.\\
+
+\verb=unizgklasa = is distributed through the LaTeX Project Public License (LPPL) and can be changed and redistributed with the mandatory changing of the class name so that there is no confusion.
+
+\section{Upute/Instructions}
+
+Ova klasa zahtjeva pakete \begin{verbatim} upgreek, titlesec , tocbibind , babel , hypperref
+\end{verbatim}
+
+
+Da bi klasa funkcionirala važno je pravilno popuniti tokene \begin{itemize}
+\item imestudenta - upisuje se ime i prezime studenta
+\item sveuciliste - upisuje se inaziv sveučilišta
+\item fakultet - upisuje se inaziv fakulteta
+\item naslovrada - upisuje se naslov rada
+\item rad - upisuje se vrsta rada (diplomski, završni, seminar,...)
+\item mentor - upisuje se ime, prezime i titula mentora
+\item grad - upisuje se grad u kojem je se nalazi fakultet
+\item logo - dodaje se logotip sveučilišta i sastavnice s naredbom \verb=\includegraphics=
+\end{itemize}
+
+Da bi se generirale početne naslovne stranice pozivaju se naredbe \verb=\prvanaslovna= i \verb=\druganaslovna=.
+
+Detaljnija objašnjenja klase nalaze se u diplomskom radu \LaTeX\ program za oblikovanje dokumenata i izrada predloška za diplomski rad u \LaTeX\-u dostupnom na repozitoriju Grafičkog fakulteta.\\
+
+\textit{\textbf{English}}\\
+This class requires packages \begin{verbatim} upgreek, titlesec , tocbibind , babel , hypperref
+\end{verbatim}
+
+To make the class work, it is important to properly fill out the tokens \begin{itemize}
+\item imestudenta - write the name and surname of the student
+\item sveuciliste - write the name of univerity
+\item fakultet - name of faculty
+\item naslovrada - the title of the paper
+\item rad - write the type of paper (graduate, final, seminar, ...)
+\item mentor - write the name, last name and title of the mentor
+\item grad - write the city where the faculty is located
+\item logo - add the logo of the university and its component with \verb=\includegraphics= command.
+\end{itemize}
+
+In order to generate the title pages, the commands \verb=\ prvanaslovna= and \verb=\druganaslovna= need to be called.
+
+More detailed explanations of the class are provided in the "\LaTeX{} program za oblikovanje dokumenata i izrada \LaTeX{} predloška za diplomski rad" graduate thesis available on Repository of Faculty of Graphic Arts.
+\section{Kontakt/Contact}
+
+Za sva pitanja, komentare i probleme u vezi klase javite se na matea.milin@yahoo.com ili ante.poljicak@grf.hr .\\
+
+For any questions, comments, and class file issues, please contact matea.milin@yahoo.com or ante.poljicak@grf.hr.
+
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/unizgklasa/unizgklasa.cls b/macros/latex/contrib/unizgklasa/unizgklasa.cls
new file mode 100644
index 0000000000..7aada0bd0c
--- /dev/null
+++ b/macros/latex/contrib/unizgklasa/unizgklasa.cls
@@ -0,0 +1,160 @@
+%%
+%% Copyright (C) 2019 by Matea Milin
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{unizg_klasa}[2019/04/03]
+\LoadClass[12pt]{article}
+\usepackage[english]{babel}
+\RequirePackage{graphicx} %za ubacivanje slika
+
+\RequirePackage[nottoc,numbib]{tocbibind}%za spajanje literature i sadržaja i dodavanje broja na sadržaj
+\renewcommand\refname\MakeUppercase
+
+\RequirePackage{caption}%za uredivanje captiona
+\captionsetup{labelsep=period} %dodavanje točke Slika 1.
+\RequirePackage{hyperref}%prikazuje url kao link
+\urlstyle{same}%naredba da koristi isti font kao u dokumentu a ne monospace
+\RequirePackage{subcaption}%za podopis slike
+
+\RequirePackage{titlesec}%za uredivanje naslova i naslovnih
+
+\RequirePackage{upgreek}%za olakšano upisivanje grčkih znakova, broj pi
+\setlength\parindent{0pt}%naredba za brisanje uvlaka koje dolaze s klasom article
+
+
+
+
+
+%definiranje margina
+\RequirePackage{geometry}
+ \geometry{
+ a4paper,
+ left=35mm,
+ right=25mm,
+ top=25mm,
+ bottom=35mm,
+}
+
+
+
+%---definiranje tokena---------------
+\newtoks\imestudenta
+\newtoks\sveuciliste
+\newtoks\fakultet
+\newtoks\rad
+\newtoks\naslovrada
+\newtoks\grad
+\newtoks\mentor
+\newtoks\logo
+
+
+%------definiranje kako title page izgleda---
+\renewcommand{\titlepage}{
+ \centering
+ \thispagestyle{empty}
+ \fontsize{24}{36}
+ }
+
+
+
+
+%--def oblikovanja naslova------------
+\newcommand{\ime}[1]{
+ {\Large{#1}}
+}
+
+\newcommand{\uni}[1]{
+ {\huge{#1}}
+}
+
+
+
+
+
+%----def prve naslovne stranice
+\newcommand{\prvanaslovna}{
+ \begin{titlepage}
+\uni{\the\sveuciliste}
+\\
+\uni{\the\fakultet}
+
+\vspace{4cm}
+\ime{\the\imestudenta}
+
+\vspace{4cm}
+\uni{\the\naslovrada}
+
+\vspace{36pt}
+\ime{\the\rad}
+\vfill
+{\the\grad}, \the\year.
+\end{titlepage}
+
+}
+
+
+%----def druge naslovne stranice----
+\newcommand{\druganaslovna}{
+ \begin{titlepage}
+
+
+{\the\logo}
+\\
+\vspace{2.5cm}
+\ime{\the\imestudenta}
+\\
+\vspace{3cm}
+\uni{\the\naslovrada}
+\\
+\vspace{24pt}
+\ime{\the\rad}
+\vfill
+Mentor:
+\hfill
+Student:
+\\
+{\the\mentor}
+\hfill
+{\the\imestudenta}
+\vspace{24pt}
+\\
+{\the\grad}, \the\year.
+
+\end{titlepage}
+}
+
+
+%------------------------------------------------
+
+
+\titleformat*{\section}{\LARGE\bfseries}
+\renewcommand
+{\@seccntformat}[1]
+{\csname the#1\endcsname.\enskip} %DODAVANJE TOČKE na sectione i malog razmaka(enskip) između točke i riječi
+
+\titleformat*{\subsection}{\large}
+\titleformat*{\subsubsection}{\large}
+
+\renewcommand{\baselinestretch}{1.5}%--------prored
+
+
+
+%----------- def numeriranja na desnu stranu--------
+\RequirePackage{fancyhdr}
+\pagestyle{fancy}
+\renewcommand\headrulewidth{0pt} % nema linije u headeru
+\fancyhead{} %prazan header
+\fancyfoot{} % prazan footer
+\fancyfoot[R]{\thepage} % broj na desnoj strani
+
+