Last active
March 9, 2025 04:37
-
-
Save WrichikBasu/845d3b4f439ce4734b20c5a7961edf1b to your computer and use it in GitHub Desktop.
LaTeX macros for math
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
% DO NOT MODIFY THIS FILE (UNLESS TO ADD SOMETHING)! | |
% Use a separate file for project-specific macros. | |
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{mathsettings}[2021/09/06 Math settings package] | |
\RequirePackage{amssymb} | |
\RequirePackage{mathtools} | |
\RequirePackage{physics} | |
\RequirePackage{array} % For extended column definitions | |
\RequirePackage{multirow} % For merging rows | |
\RequirePackage{xcolor} | |
\RequirePackage{cases} % Provides numcases and subnumcases environments | |
\RequirePackage{soul} % Provides \ul{} command for breaking underline | |
\RequirePackage{accents} | |
\RequirePackage{emptypage} | |
\RequirePackage{graphicx} | |
\RequirePackage{siunitx} | |
\RequirePackage{scalerel} % Eg.: $V_{\scaleto{CC}{4pt}}$ | |
\RequirePackage{centernot} % To cancel out expressions (better than cancel package) | |
\RequirePackage{enumitem} | |
\RequirePackage{tabularx} | |
\RequirePackage{makecell} | |
% \RequirePackage[none]{hyphenat} % PLEASE IMPORT THIS IN YOUR PROJECT MAIN FILE. Not all projects will want this; hence it has been disabled. | |
\RequirePackage{xparse} | |
\RequirePackage{setspace} | |
\RequirePackage[colorlinks=true, | |
linkcolor=blue, | |
urlcolor=blue, | |
citecolor=blue, | |
linktoc=page, | |
unicode=true]{hyperref} | |
\newcolumntype{C}{>{$}c<{$}} % Math mode in table column, centre-aligned | |
\newcolumntype{L}{>{$}l<{$}} % Math mode in table column, left-aligned | |
\newcolumntype{R}{>{$}r<{$}} % Math mode in table column, right-aligned | |
\newcommand{\dint}{\int\limits} | |
\newcommand{\dsum}{\sum\limits} | |
\newcommand{\dprod}{\prod\limits} | |
\newcommand{\tendsto}{\ensuremath{\rightarrow}} | |
\newcommand{\e}[1]{\ensuremath{\mathrm{e}^{#1}}} | |
\newcommand{\bfnt}[1]{{\bfseries #1}} | |
\newcommand{\ifnt}[1]{{\itshape #1}} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment