Skip to content
Snippets Groups Projects
Commit 2cb502c1 authored by witiko's avatar witiko
Browse files

The documentation now uses babel and cmap packages and was converted into utf8.

The \thesiscolor macro was replaced by color document class option.
The example.tex file was updated.
The fithesis.raw.sh preprocessor script was added in order to automate the version number updates throughout the dtx file throughout the dtx file.
parent 8b23ecf1
No related branches found
No related tags found
No related merge requests found
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
*.vim *.vim
fit1[012].clo fit1[012].clo
fithesis.cls fithesis.cls
fithesis.dtx
all: fithesis.cls fithesis.pdf example.pdf all: fithesis.cls fithesis.pdf example.pdf
cd loga && make all cd loga && make all
fithesis.dtx: fithesis.raw.dtx
./fithesis.raw.sh $< $@
fithesis.cls: fithesis.ins fithesis.dtx fithesis.cls: fithesis.ins fithesis.dtx
yes | tex fithesis.ins yes | tex $<
fithesis.pdf: fithesis.dtx fithesis.pdf: fithesis.dtx
pdfcslatex fithesis.dtx pdflatex $<
example.pdf: example.tex fithesis.cls example.pdf: example.tex fithesis.cls
pdflatex example.tex pdflatex $<
pdflatex $<
clean: clean:
rm -f example.aux example.log example.out example.pdf example.toc rm -f example.aux example.log example.out example.pdf example.toc
rm -f fithesis.toc fithesis.pdf fithesis.aux fithesis.idx fithesis.log rm -f fithesis.toc fithesis.pdf fithesis.aux fithesis.idx fithesis.log
clean-all: clean clean-all: clean
rm -f fit1[012].clo fithesis.cls rm -f fit1[012].clo fithesis.cls fithesis.dtx
\documentclass[12pt,oneside]{fithesis} \documentclass[12pt,oneside]{fithesis}
\usepackage{lmodern} % Latin modern fonts \usepackage[english]{babel} % Multilingual support
\usepackage[english]{babel} % Babel \usepackage[utf8]{inputenc} % UTF-8 encoding
\usepackage[utf8]{inputenc} % UTF-8 \usepackage[T1]{fontenc} % T1 font encoding
\usepackage[T1]{fontenc} % T1 font encoding \usepackage[ % Clickable links
\usepackage[ plainpages = false, % We have multiple page numberings
plainpages = false, % We have multiple page numberings pdfpagelabels % Generate pdf page labels
pdfpagelabels % Set pdf page labels
]{hyperref} ]{hyperref}
\usepackage{blindtext} % Blind text \usepackage{blindtext} % Lorem ipsum generator
\thesislang{en} \thesislang{en} % The language of the thesis
\thesistitle{Sample thesis} \thesistitle{Sample thesis} % The title of the thesis
\thesissubtitle{Bachelor thesis} \thesissubtitle{Bachelor thesis} % The type of the thesis
\thesisstudent{Jane Doe} \thesisstudent{Jane Doe} % Your name
\thesiswoman{true} \thesiswoman{true} % Your gender
\thesisfaculty{fi} \thesisfaculty{fi} % Your faculty
\thesiscolor{true} \thesisyear{spring \the\year} % The academic term of your thesis defense
\thesisyear{spring 2008} \thesisadvisor{John Foo, Ph.D.} % Your advisor
\thesisadvisor{John Foo, Ph.D.}
\begin{document} \begin{document}
\FrontMatter \FrontMatter % The front matter
\ThesisTitlePage \ThesisTitlePage % The title page
\begin{ThesisDeclaration} \begin{ThesisDeclaration} % The declaration
\DeclarationText \DeclarationText
\AdvisorName \AdvisorName
\end{ThesisDeclaration} \end{ThesisDeclaration}
\begin{ThesisThanks} \begin{ThesisThanks} % The acknowledgements (optional)
I would like to thank my supervisor\,... I would like to thank my supervisor\,\dots
\end{ThesisThanks} \end{ThesisThanks}
\begin{ThesisAbstract} \begin{ThesisAbstract} % The abstract
The aim of the bachelor work is to provide\,... The aim of the bachelor work is to provide\,\dots
\end{ThesisAbstract} \end{ThesisAbstract}
\begin{ThesisKeyWords} \begin{ThesisKeyWords} % The keywords
keyword1, keyword2\,... keyword1, keyword2\,\dots
\end{ThesisKeyWords} \end{ThesisKeyWords}
\MainMatter \tableofcontents % The table of contents
\chapter{Introduction} % \listoftables % The list of tables (optional)
This is the first chapter of the thesis. % \listoffigures % The list of figures (optional)
\chapter{Another chapter}
\Blindtext \MainMatter % The main matter
\tableofcontents % prints table of contents \chapter{Introduction} % Chapters
\Blindtext
\chapter{Another chapter}
\Blindtext
\appendix
\chapter{First appendix} % Appendices
\Blindtext
\chapter{Another appendix}
\Blindtext
% Bibliography goes here
% Index goes here (optional)
\end{document} \end{document}
This diff is collapsed.
#!/bin/sh
# This file reads the following sequence of lines from $1:
#
# % History:
# % ????/??/?? v?.??.?? (...)
#
# It then takes $1, replaces every occurance of %%%date%%% with ????/??/??,
# every occurance of %%%version%%% with ?.??.?? and every occurance of
# %%%year%%% with ???? and stores the result in $2.
LINE="$(head -n $(($(fgrep -n '% History:' "$1" | sed s/:.*//) + 1)) "$1" | tail -n 1)"
DATE="$(echo "$LINE" | sed 's#% \(..../../..\).*#\1#')"
YEAR="$(echo "$DATE" | head -c 4)"
VERSION="$(echo "$LINE" | sed 's#% ..../../.. v\([^ ]*\).*#\1#')"
echo "Generating file $2 for [$DATE fithesis3 version $VERSION MU thesis class]"
< "$1" sed s#%%%date%%%#$DATE#g\;s/%%%year%%%/$YEAR/g\;s/%%%version%%%/$VERSION/g > "$2"
all: eco-logo.pdf fsps-logo.pdf law-logo.pdf med-logo.pdf ped-logo.pdf phil-logo.pdf sci-logo.pdf fi-logo.pdf color/eco-logo.pdf color/fi-logo.pdf color/fsps-logo.pdf color/law-logo.pdf color/med-logo.pdf color/ped-logo.pdf color/phil-logo.pdf color/sci-logo.pdf all: eco-logo.pdf fsps-logo.pdf law-logo.pdf med-logo.pdf ped-logo.pdf phil-logo.pdf sci-logo.pdf fi-logo.pdf
cd color; make all
%.pdf: %.eps %.pdf: %.eps
epstopdf $< epstopdf $<
examples.pdf examples.pdf
examples.sh
Makefile
This diff is collapsed.
No preview for this file type
This diff is collapsed.
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment