mythesis.sty 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. \setupThesis{
  2. author={N N och M M},
  3. swetitle={Undersökning av ett problem},
  4. swesubtitle={},
  5. title={Investigations of a problem},
  6. subtitle={},
  7. year=2020,
  8. type=msc,
  9. subject={Electrical Engineering},
  10. division={Division of Automatic Control},
  11. department=isy,
  12. examiner={Lena Lärare \AT \textsc{isy}, Linköpings universitet},
  13. supervisor={Doktorand Si \AT \textsc{isy}, Linköpings universitet \AND Ingenjör Så \AT Company},
  14. keywords={problem, lösning},
  15. isrn=LiTH-ISY-EX-{}-YY/NNNN-{}-SE,
  16. url={http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-XXXXX},
  17. dedication={}
  18. }
  19. %%% Since macros that define notation may be useful also to produce figures, these macros are kept in a separate file.
  20. \RequirePackage{mynotation}
  21. %%% Setup for natbib (natbib is loaded by rtthesis).
  22. \AtBeginDocument{%
  23. \bibliographystyle{plainnat}%
  24. }
  25. %%% Tell \includegraphics where to search for files.
  26. \graphicspath{{fig/}}
  27. %%% For consistent formatting of lengths and other physical quantities.
  28. \RequirePackage[squaren]{SIunits}
  29. %%% Define command for playing around with margin paragraphs.
  30. \definecolor{Warning}{rgb}{1.0,0.5,0.0}
  31. \newcommand{\Warning}[2][Warning]{\marginpar{\fcolorbox{Warning}{white}{\begin{minipage}{\linewidth}\textbf{\textcolor{Warning}{\emph{#1:}}}\par \tiny \sf #2\end{minipage}}}}
  32. %%% Define font size command to use for all verbatim environments.
  33. \newcommand{\verbatimsize}{\small}
  34. %%% Define some convenient referencing commands.
  35. \newcommand{\chapterref}[1]{\hyperref[#1]{kapitel~\ref*{#1}}}
  36. \newcommand{\Chapterref}[1]{\hyperref[#1]{Kapitel~\ref*{#1}}}
  37. \newcommand{\sectionref}[1]{\hyperref[#1]{avsnitt~\ref*{#1}}}
  38. \newcommand{\Sectionref}[1]{\hyperref[#1]{Avsnitt~\ref*{#1}}}
  39. \newcommand{\theoremref}[1]{\hyperref[#1]{teorem~\ref*{#1}}}
  40. \newcommand{\Theoremref}[1]{\hyperref[#1]{Teorem~\ref*{#1}}}
  41. \newcommand{\exampleref}[1]{\hyperref[#1]{exempel~\ref*{#1}}}
  42. \newcommand{\Exampleref}[1]{\hyperref[#1]{Exempel~\ref*{#1}}}
  43. \newcommand{\figureref}[1]{\hyperref[#1]{figur~\ref*{#1}}}
  44. \newcommand{\Figureref}[1]{\hyperref[#1]{Figur~\ref*{#1}}}
  45. \newcommand{\tableref}[1]{\hyperref[#1]{tabell~\ref*{#1}}}
  46. \newcommand{\Tableref}[1]{\hyperref[#1]{Tabell~\ref*{#1}}}
  47. \newcommand{\pagepageref}[1]{\hyperref[#1]{sida~\pageref*{#1}}}