Skip to content

Commit

Permalink
Update hsrstud.sty and hsrzf.cls
Browse files Browse the repository at this point in the history
  • Loading branch information
NaoPross committed Aug 5, 2021
1 parent 506f82e commit fcf1a78
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
24 changes: 14 additions & 10 deletions tex/hsrstud.sty
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hsrstud}[2020/04/16 v0.1 HSR-Stud Macros]
\ProvidesPackage{hsrstud}[2021/08/04 v0.2 HSR-Stud Macros]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Expand Down Expand Up @@ -143,7 +143,7 @@
%%))

%% Vector ((
\newcommand{\hsrvecbold}[1]{\mathbf{\boldsymbol{#1}}}
\newcommand{\hsrvecbold}[1]{\mathbf{\bm{#1}}}
\newcommand{\hsrvecarrow}[1]{\vv{\mathrm{#1}}} % from esvect

\newcommand{\@hsrvecf}[1]{\hsrvecbold{#1}}
Expand Down Expand Up @@ -177,11 +177,9 @@
%% Products ((
\newcommand{\dotp}{\boldsymbol\cdot}
\newcommand{\crossp}{\boldsymbol\times}
\newcommand{\cross}{\crossp}
%%))

\newcommand{\mtx}[1]{\mathrm{#1}}
\newcommand{\ten}[1]{\underline{\mathbf{\boldsymbol{#1}}}}
\newcommand{\mx}[1]{\bm{\mathrm{#1}}}

\newcommand{\heq}{\stackrel{\hat{\texttt{H}}}{=}}

Expand All @@ -195,15 +193,15 @@
\ifhsr@textvecdiff
\DeclareMathOperator{\grad}{grad}
\else
\DeclareMathOperator{\grad}{\nabla}
\newcommand{\grad}{\vec{\nabla}}
\fi
%% ))

%% Divergence ((
\ifhsr@textvecdiff
\newcommand{\@hsrdivf}{div}
\else
\newcommand{\@hsrdivf}{\nabla\cdot}
\newcommand{\@hsrdivf}{\vec{\nabla}\dotp}
\fi

\DeclareMathOperator{\divg}{\@hsrdivf}
Expand All @@ -217,15 +215,21 @@
\ifhsr@textvecdiff
\DeclareMathOperator{\curl}{curl}
\else
\DeclareMathOperator{\curl}{\nabla\times}
\DeclareMathOperator{\curl}{\vec{\nabla}\crossp}
\fi
%% ))

%% laplacian ((
\ifhsr@textvecdiff
\DeclareMathOperator{\laplace}{div grad}
\DeclareMathOperator{\laplacian}{div grad}
\else
\DeclareMathOperator{\laplace}{\nabla^2}
\DeclareMathOperator{\laplacian}{\nabla^2}
\fi

\ifhsr@textvecdiff
\DeclareMathOperator{\vlaplacian}{div grad}
\else
\DeclareMathOperator{\vlaplacian}{\vec{\nabla}^2}
\fi
%% ))

Expand Down
3 changes: 3 additions & 0 deletions tex/hsrzf.cls
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}

%% Default font
\RequirePackage{lmodern}

%% Class options
\SetupKeyvalOptions{
family=hsr,
Expand Down

0 comments on commit fcf1a78

Please sign in to comment.