mythesis.sty 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. \setupThesis{
  2. author={Jonatan Gezelius},
  3. swetitle={TODO},
  4. swesubtitle={},
  5. title={Reuse and verification of equipment for the ISO~7637 standard},
  6. subtitle={},
  7. year=2019,
  8. type=msc,
  9. subject={Electrical Engineering},
  10. division={TODO DIVISION},
  11. department=isy,
  12. examiner={Michael Josefsson \AT \textsc{isy}, Linköpings universitet},
  13. supervisor={Peter Johansson \AT \textsc{isy}, Linköpings universitet \AND Gunnar Karlström \AT BK Services AB},
  14. keywords={verification, measurement, testing},
  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. %\bibliographystyle{unsrtnat}%
  25. \bibliographystyle{ieeetr}%
  26. }
  27. %%% Define font size command to use for all verbatim environments.
  28. \newcommand{\verbatimsize}{\small}
  29. %%% Define some convenient referencing commands.
  30. \newcommand{\chapterref}[1]{\hyperref[#1]{kapitel~\ref*{#1}}}
  31. \newcommand{\Chapterref}[1]{\hyperref[#1]{Kapitel~\ref*{#1}}}
  32. \newcommand{\sectionref}[1]{\hyperref[#1]{avsnitt~\ref*{#1}}}
  33. \newcommand{\Sectionref}[1]{\hyperref[#1]{Avsnitt~\ref*{#1}}}
  34. \newcommand{\theoremref}[1]{\hyperref[#1]{teorem~\ref*{#1}}}
  35. \newcommand{\Theoremref}[1]{\hyperref[#1]{Teorem~\ref*{#1}}}
  36. \newcommand{\exampleref}[1]{\hyperref[#1]{exempel~\ref*{#1}}}
  37. \newcommand{\Exampleref}[1]{\hyperref[#1]{Exempel~\ref*{#1}}}
  38. \newcommand{\figureref}[1]{\hyperref[#1]{figur~\ref*{#1}}}
  39. \newcommand{\Figureref}[1]{\hyperref[#1]{Figur~\ref*{#1}}}
  40. \newcommand{\tableref}[1]{\hyperref[#1]{tabell~\ref*{#1}}}
  41. \newcommand{\Tableref}[1]{\hyperref[#1]{Tabell~\ref*{#1}}}
  42. \newcommand{\pagepageref}[1]{\hyperref[#1]{sida~\pageref*{#1}}}
  43. %%% Define command for playing around with margin paragraphs.
  44. \definecolor{Warning}{rgb}{1.0,0.5,0.0}
  45. \newcommand{\Warning}[2][Warning]{\marginpar{\fcolorbox{Warning}{white}{\begin{minipage}{\linewidth}\textbf{\textcolor{Warning}{\emph{#1:}}}\par \tiny \sf #2\end{minipage}}}}
  46. %%% Convenient todo command
  47. \usepackage{xifthen}
  48. \newcommand{\todo}[1][]{%
  49. \ifthenelse{\equal{#1}{}}% if no argument given
  50. { \emph{TODO}\Warning[TODO]{}}%
  51. %else
  52. {\emph{\uppercase{TODO}}\Warning[TODO]{#1}}%
  53. }
  54. %%% Put text inside a square %%%
  55. \newcommand{\squareit}[1]{\fbox{\parbox{\textwidth}{#1}}}