From 676bbd93060044c442882f611855092aa077cc1e Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 5 Jan 2026 11:28:39 +0100 Subject: [PATCH] Update vector command --- docs/docs.tex | 5 ++++- main/style/math.tex | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/docs.tex b/docs/docs.tex index dc6d29d..f23c2f2 100644 --- a/docs/docs.tex +++ b/docs/docs.tex @@ -46,7 +46,10 @@ Please note that this will overwrite \textit{all} occurrences of \verb|\setcount and for the \verb|\stepcounter| as well -\verb|/\\stepcounter{\(.*\)s}/\\stepLabelNumber{\1}| and \verb|/\\stepcounter{all}/\\stepLabelNumber{all}/g|. +\verb|/\\stepcounter{\(.*\)s}/\\stepLabelNumber{\1}/g| and \verb|/\\stepcounter{all}/\\stepLabelNumber{all}/g|. + +Additionally, to use auto-expanding vector arrows, we have migrated to using \verb|\vect{x}| to allow for the built-in \verb|\vec{x}| to be accessible. +Thus, any documents that used the \verb|\vec| command, you can migrate them to the new format using the regex \verb|/\\vec/\\vect/g| \section{Installation} diff --git a/main/style/math.tex b/main/style/math.tex index c5864eb..c3ad0ef 100644 --- a/main/style/math.tex +++ b/main/style/math.tex @@ -5,7 +5,7 @@ % ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀ % Replace some commonly used commands with better ones -\renewcommand{\vec}[1]{\overrightarrow{#1}} +\newcommand{\vect}[1]{\overrightarrow{#1}} \renewcommand{\hat}[1]{\widehat{#1}} \renewcommand{\tilde}[1]{\widetilde{#1}} \newcommand{\proven}{$\hspace{17cm}\square$}