mythesis.sty 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. %%% Makes DOI numbers to links
  20. \usepackage{doi}
  21. %%& Make bold mathmode available
  22. \usepackage{bm}
  23. %%% Make it possible to change size of tables
  24. \usepackage{adjustbox}
  25. %%% Use SI units
  26. \usepackage{siunitx}
  27. %%% For consistent formatting of lengths and other physical quantities.
  28. %\RequirePackage[squaren]{SIunits}
  29. %%% If it is still a draft
  30. \usepackage[printwatermark]{xwatermark}
  31. \usepackage[]{xcolor}
  32. %\newwatermark[allpages,color=red!50,angle=45,scale=2,xpos=0,ypos=-80]{DRAFT}
  33. %\newwatermark[allpages,color=red!50,angle=45,scale=2,xpos=0,ypos=80]{DRAFT}
  34. %%% Since macros that define notation may be useful also to produce figures, these macros are kept in a separate file.
  35. \RequirePackage{mynotation}
  36. %%% Setup for natbib (natbib is loaded by rtthesis).
  37. \AtBeginDocument{%
  38. %\bibliographystyle{plainnat}%
  39. %\bibliographystyle{unsrtnat}%
  40. \bibliographystyle{ieeetr}%
  41. }
  42. %%% Egna inställningar %%%%
  43. \setlength{\parindent}{0em}
  44. \setlength{\parskip}{1em}
  45. %% Enable use of svg
  46. \usepackage{svg}
  47. %%% Tell \includegraphics where to search for files.
  48. \graphicspath{{fig/}}
  49. %%% Define command for playing around with margin paragraphs.
  50. \definecolor{Warning}{rgb}{1.0,0.5,0.0}
  51. \newcommand{\Warning}[2][Warning]{\marginpar{\fcolorbox{Warning}{white}{\begin{minipage}{\linewidth}\textbf{\textcolor{Warning}{\emph{#1:}}}\par \tiny \sf #2\end{minipage}}}}
  52. %%% Convenient todo command
  53. \usepackage{xifthen}
  54. \newcommand{\todo}[1][]{%
  55. \ifthenelse{\equal{#1}{}}% if no argument given
  56. { \emph{TODO}\Warning[TODO]{}}%
  57. %else
  58. {\emph{\uppercase{TODO}}\Warning[TODO]{#1}}%
  59. }
  60. %%% Put text inside a square %%%
  61. \newcommand{\squareit}[1]{\fbox{\parbox{\textwidth}{#1}}}
  62. %%% Define font size command to use for all verbatim environments.
  63. \newcommand{\verbatimsize}{\small}
  64. %%% Define some convenient referencing commands.
  65. \newcommand{\chapterref}[1]{\hyperref[#1]{kapitel~\ref*{#1}}}
  66. \newcommand{\Chapterref}[1]{\hyperref[#1]{Kapitel~\ref*{#1}}}
  67. \newcommand{\sectionref}[1]{\hyperref[#1]{avsnitt~\ref*{#1}}}
  68. \newcommand{\Sectionref}[1]{\hyperref[#1]{Avsnitt~\ref*{#1}}}
  69. \newcommand{\theoremref}[1]{\hyperref[#1]{teorem~\ref*{#1}}}
  70. \newcommand{\Theoremref}[1]{\hyperref[#1]{Teorem~\ref*{#1}}}
  71. \newcommand{\exampleref}[1]{\hyperref[#1]{exempel~\ref*{#1}}}
  72. \newcommand{\Exampleref}[1]{\hyperref[#1]{Exempel~\ref*{#1}}}
  73. \newcommand{\figureref}[1]{\hyperref[#1]{figur~\ref*{#1}}}
  74. \newcommand{\Figureref}[1]{\hyperref[#1]{Figur~\ref*{#1}}}
  75. \newcommand{\tableref}[1]{\hyperref[#1]{tabell~\ref*{#1}}}
  76. \newcommand{\Tableref}[1]{\hyperref[#1]{Tabell~\ref*{#1}}}
  77. \newcommand{\pagepageref}[1]{\hyperref[#1]{sida~\pageref*{#1}}}