mythesis.sty 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. \setupThesis{
  2. author={Jonatan Gezelius},
  3. swetitle={TODO},
  4. swesubtitle={},
  5. title={Automated verification of pulses involving voltages up to 1500~V},
  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. %%% Egna inställningar %%%%
  28. \setlength{\parindent}{0em}
  29. \setlength{\parskip}{1em}
  30. %%% Tell \includegraphics where to search for files.
  31. \graphicspath{{fig/}}
  32. %%% For consistent formatting of lengths and other physical quantities.
  33. \RequirePackage[squaren]{SIunits}
  34. %%% Define command for playing around with margin paragraphs.
  35. \definecolor{Warning}{rgb}{1.0,0.5,0.0}
  36. \newcommand{\Warning}[2][Warning]{\marginpar{\fcolorbox{Warning}{white}{\begin{minipage}{\linewidth}\textbf{\textcolor{Warning}{\emph{#1:}}}\par \tiny \sf #2\end{minipage}}}}
  37. %%% Convenient todo command
  38. \usepackage{xifthen}
  39. \newcommand{\todo}[1][]{%
  40. \ifthenelse{\equal{#1}{}}% if no argument given
  41. { \emph{TODO}\Warning[TODO]{}}%
  42. %else
  43. {\emph{\uppercase{TODO}}\Warning[TODO]{#1}}%
  44. }
  45. %%% Define font size command to use for all verbatim environments.
  46. \newcommand{\verbatimsize}{\small}
  47. %%% Define some convenient referencing commands.
  48. \newcommand{\chapterref}[1]{\hyperref[#1]{kapitel~\ref*{#1}}}
  49. \newcommand{\Chapterref}[1]{\hyperref[#1]{Kapitel~\ref*{#1}}}
  50. \newcommand{\sectionref}[1]{\hyperref[#1]{avsnitt~\ref*{#1}}}
  51. \newcommand{\Sectionref}[1]{\hyperref[#1]{Avsnitt~\ref*{#1}}}
  52. \newcommand{\theoremref}[1]{\hyperref[#1]{teorem~\ref*{#1}}}
  53. \newcommand{\Theoremref}[1]{\hyperref[#1]{Teorem~\ref*{#1}}}
  54. \newcommand{\exampleref}[1]{\hyperref[#1]{exempel~\ref*{#1}}}
  55. \newcommand{\Exampleref}[1]{\hyperref[#1]{Exempel~\ref*{#1}}}
  56. \newcommand{\figureref}[1]{\hyperref[#1]{figur~\ref*{#1}}}
  57. \newcommand{\Figureref}[1]{\hyperref[#1]{Figur~\ref*{#1}}}
  58. \newcommand{\tableref}[1]{\hyperref[#1]{tabell~\ref*{#1}}}
  59. \newcommand{\Tableref}[1]{\hyperref[#1]{Tabell~\ref*{#1}}}
  60. \newcommand{\pagepageref}[1]{\hyperref[#1]{sida~\pageref*{#1}}}