%% %% This is file `oststud.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% oststud.dtx (with options: `package') %% This document is part of the HSRStud LaTeX Package %% %% THE FOLLOWING WORK IS UNDER THE CC BY-SA 4.0 LICENSE %% %% You are free to %% --------------- %% * Share -- Copy and redistribute the material in any medium or format %% * Adapt -- Remix, transform, and build upon the material for any %% purpose, even commercially %% %% The licensor cannot revoke these freedoms as long as you follow the %% license terms. %% %% Under the following terms %% ------------------------- %% * Attribution %% You must give appropriate credit, provide a link to the license, and %% indicate if changes were made. You may do so in any reasonable %% manner, but not in any way that suggests the licensor endorses you %% or your use. %% %% * ShareAlike %% If you remix, transform, or build upon the material you must %% distribute your contributions under the same license as the %% original. %% %% * No additional restrictions %% You may not apply legal terms or technological measures that %% legally restrict others from doing anything the license permits. %% %% Notice %% ------ %% You do not have to comply with the license for elements of the material %% in the public domain or where your use is permitted by an applicable %% exception or limitation. %% %% No warranties are given. The license may not give you all of the %% permissions necessary for your intended use. For example, other rights %% such as publicity, privacy, or moral rights may limit how you use the %% material. \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{oststud} [2023/05/20 v0.4 OST Student's package] \RequirePackage{xcolor} \RequirePackage{amsmath} \RequirePackage{amssymb} \RequirePackage{bm} \RequirePackage{hyperref} \RequirePackage{listings} \SetupKeyvalOptions{ family=ost, prefix=ost@ } \DeclareBoolOption[false]{dontrenew} \DeclareBoolOption[false]{textvecdiff} \DeclareBoolOption[false]{bfemph} \DeclareBoolOption[false]{bbprobability} \ProcessLocalKeyvalOptions* \ifost@bfemph \ifost@dontrenew \PackageError{The options \noexpand\dontrenew and \noexpand\bfemph cannot be used at the same time!} \fi \long\expandafter\def\csname em \endcsname{% \@nomath\em \if b\expandafter\@car\f@series\@nil \itshape\else\bfseries\fi } \fi \newcommand{\ost@vec}[1]{\mathbf{\bm{#1}}} \ifost@dontrenew \newcommand{\bvec}[1]{\ost@vec{#1}} \else \let\oldvec\vec \renewcommand{\vec}[1]{\ost@vec{#1}} \fi \newcommand{\uvec}[1]{\vec{\hat{#1}}} \DeclareMathOperator{\dotp}{\boldsymbol\cdot} \DeclareMathOperator{\crossp}{\boldsymbol\times} \ifost@textvecdiff \DeclareMathOperator{\grad}{grad} \else \DeclareMathOperator{\grad}{\vec{\nabla}} \fi \ifost@textvecdiff \DeclareMathOperator{\ost@div}{div} \else \DeclareMathOperator{\ost@div}{\vec{\nabla}\dotp} \fi \ifost@dontrenew \DeclareMathOperator{\divg}{\ost@div} \else \let\divsymb\div \renewcommand{\div}{\ost@div} \fi \ifost@textvecdiff \DeclareMathOperator{\curl}{curl} \else \DeclareMathOperator{\curl}{\vec{\nabla}\crossp} \fi \ifost@textvecdiff \DeclareMathOperator{\laplacian}{\div\grad} \DeclareMathOperator{\vlaplacian}{\div\grad} \else \DeclareMathOperator{\laplacian}{\nabla^2} \DeclareMathOperator{\vlaplacian}{\vec{\nabla}^2} \fi \newcommand{\mx}[1]{\mathbf{\bm{#1}}} \newcommand{\mt}[1]{{#1}^\mathsf{T}} \newcommand{\mh}[1]{{#1}^\mathsf{H}} \newcommand{\minv}[1]{{#1}^{-1}} \DeclareMathOperator{\tr}{tr} \DeclareMathOperator*{\argmax}{arg\,max} \DeclareMathOperator*{\argmin}{arg\,min} \ifost@dontrenew\else \let\oldRe\Re \let\oldIm\Im \renewcommand{\Re}[1]{\mathrm{Re} \left\{#1\right\}} \renewcommand{\Im}[1]{\mathrm{Im} \left\{#1\right\}} \fi \ifost@bbprobability \DeclareMathOperator*{\ost@expectation}{\mathbb{E}} \else \DeclareMathOperator*{\ost@expectation}{E} \fi \newcommand*{\E}[2][]{\ost@expectation_{#1}\left\{#2\right\}} \ifost@bbprobability \DeclareMathOperator*{\ost@variance}{\mathbb{V}} \else \DeclareMathOperator*{\ost@variance}{Var} \fi \newcommand*{\Var}[2][]{\ost@variance_{#1}\left\{#2\right\}} \ifost@bbprobability \DeclareMathOperator*{\ost@probability}{\mathbb{P}} \else \DeclareMathOperator*{\ost@probability}{Pr} \fi \ifost@dontrenew \newcommand*{\P}[2][]{\ost@probabiliy_{#1}\left\{#2\right\}} \else \renewcommand*{\P}[2][]{\ost@probabiliy_{#1}\left\{#2\right\}} \fi \DeclareMathOperator{\fourier}{\mathcal{F}} \DeclareMathOperator{\ifourier}{\mathcal{F}^{-1}} \DeclareMathOperator{\laplace}{\mathcal{L}} \DeclareMathOperator{\ilaplace}{\mathcal{L}^{-1}} \DeclareMathOperator{\ztransf}{\mathcal{Z}} \DeclareMathOperator{\iztransf}{\mathcal{Z}^{-1}} \DeclareMathOperator{\hilbert}{\mathcal{H}} \newcommand{\corresponds}{% \mbox{\setlength{\unitlength}{0.1em}% \begin{picture}(20,10)% \put(5,3){\circle{4}}% \put(7,3){\line(1,0){7}}% \put(16,3){\circle*{4}}% \end{picture}}} \newcommand{\rcorresponds}{% \mbox{\setlength{\unitlength}{0.1em}% \begin{picture}(20,10)% \put(5,3){\circle*{4}}% \put(7,3){\line(1,0){7}}% \put(16,3){\circle{4}}% \end{picture}}} \newcommand{\ost@skriptum}{\PackageWarning{No \noexpand\skriptum given}} \newcommand{\skriptum}[1]{\gdef\ost@skriptum{#1}} \newcommand{\sref}[1]{% \texttt{\textcolor{OSTBlackberry}{#1}}\nocite{\ost@skriptum}} \newcommand{\ost@textbook}{\PackageWarning{No \noexpand\textbook given}} \newcommand{\textbook}[1]{\gdef\ost@textbook{#1}} \newcommand{\bref}[1]{% \texttt{\textcolor{OSTRaspberry}{#1}}\nocite{\ost@textbook}} \definecolor{OSTBlack}{RGB}{25,25,25} \definecolor{OSTGray}{RGB}{198,198,198} \definecolor{OSTBlackberry}{RGB}{140,25,95} \definecolor{OSTRaspberry}{RGB}{215,40,100} \definecolor{OSTPurple}{RGB}{149,96,164} \definecolor{OSTDarkPurple}{RGB}{107,56,129} \definecolor{OSTLightPurple}{RGB}{208,169,208} \definecolor{OSTGreen}{RGB}{29,175,142} \definecolor{OSTDarkGreen}{RGB}{0,126,107} \definecolor{OSTLightGreen}{RGB}{167,213,194} \definecolor{OSTRed}{RGB}{232,78,15} \definecolor{OSTDarkRed}{RGB}{195,46,21} \definecolor{OSTLightRed}{RGB}{243,154,139} \definecolor{OSTBlue}{RGB}{0,134,205} \definecolor{OSTDarkBlue}{RGB}{0,115,176} \definecolor{OSTLightBlue}{RGB}{95,191,237} \definecolor{OSTOrange}{RGB}{251,186,0} \definecolor{OSTDarkOrange}{RGB}{209,143,0} \definecolor{OSTLightOrange}{RGB}{253,214,175} \hypersetup{ colorlinks=true, linkcolor=OSTBlack, citecolor=OSTBlackberry, filecolor=OSTBlack, urlcolor=OSTDarkBlue, } \lstdefinestyle{ost-base}{ belowcaptionskip=\baselineskip, breaklines=true, frame=none, inputencoding=utf8, % margin xleftmargin=\parindent, % numbers numbers=left, numbersep=5pt, numberstyle=\ttfamily\footnotesize\color{OSTGray}, % background backgroundcolor=\color{white}, showstringspaces=false, % default language language=TeX, % break long lines, and show an arrow where the line was broken breaklines=true, postbreak=\mbox{\textcolor{OSTDarkBlue}{$\hookrightarrow$}\space}, % font basicstyle=\ttfamily\small, identifierstyle=\color{OSTBlack}, keywordstyle=\color{OSTBlue}, commentstyle=\color{OSTGray}, stringstyle=\color{OSTBlackberry}, } \lstset{style=ost-base, escapechar=`} \endinput %% %% End of file `oststud.sty'.