%% MACROS.sty
%% https://francofantomius.com/latex/MACROS.sty

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{MACROS}[2026/02/27 v1.2.0]

\RequirePackage{amsmath}
\RequirePackage{amsthm}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}

% ====== Personalized Theorems ======
%\theoremstyle{defstyle} %<---- to use this you also need https://francofantomius.com/latex/styles.sty

% Adapts to the document class (uses chapter if available, otherwise section)
\ifx\chapter\undefined
	\newtheorem{theorem}{Theorem}[section]
	\newtheorem{corollary}{Corollary}[section]
	\newtheorem{lemma}{Lemma}[section]
	\newtheorem{proposition}{Proposition}[section]
\else
	\newtheorem{theorem}{Theorem}[chapter]
	\newtheorem{corollary}{Corollary}[chapter]
	\newtheorem{lemma}{Lemma}[chapter]
	\newtheorem{proposition}{Proposition}[chapter]
\fi

\newtheorem*{definition}{Definition}
\newtheorem*{example}{Example}
\newtheorem{remark}{Remark}[section]
\newtheorem{note}{Note}[section]

% ===== Easy Format =====
\newcommand{\ds}{\displaystyle}

% ===== Number Sets =====
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}

% ===== Calligraphy =====
\newcommand{\calV}{\mathcal{V}}
\newcommand{\calW}{\mathcal{W}}
\newcommand{\calX}{\mathcal{X}}
\newcommand{\calY}{\mathcal{Y}}
\newcommand{\calZ}{\mathcal{Z}}

\endinput