From fcf1a782960c3bba37bb9840f2765d129d29b314 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 5 Aug 2021 15:13:43 +0200 Subject: [PATCH] Update hsrstud.sty and hsrzf.cls --- tex/hsrstud.sty | 24 ++++++++++++++---------- tex/hsrzf.cls | 3 +++ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/tex/hsrstud.sty b/tex/hsrstud.sty index 517c9cd..5c1ddfc 100644 --- a/tex/hsrstud.sty +++ b/tex/hsrstud.sty @@ -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] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -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}} @@ -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}}}{=}} @@ -195,7 +193,7 @@ \ifhsr@textvecdiff \DeclareMathOperator{\grad}{grad} \else - \DeclareMathOperator{\grad}{\nabla} +\newcommand{\grad}{\vec{\nabla}} \fi %% )) @@ -203,7 +201,7 @@ \ifhsr@textvecdiff \newcommand{\@hsrdivf}{div} \else - \newcommand{\@hsrdivf}{\nabla\cdot} +\newcommand{\@hsrdivf}{\vec{\nabla}\dotp} \fi \DeclareMathOperator{\divg}{\@hsrdivf} @@ -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 %% )) diff --git a/tex/hsrzf.cls b/tex/hsrzf.cls index e929e8d..3717e27 100644 --- a/tex/hsrzf.cls +++ b/tex/hsrzf.cls @@ -57,6 +57,9 @@ \RequirePackage{kvoptions} \RequirePackage{etoolbox} +%% Default font +\RequirePackage{lmodern} + %% Class options \SetupKeyvalOptions{ family=hsr,