add mathsymb package
mathsymb package for math-related symbols or operators that are not purely textual. Move some commands from mkessler-math to this new package
This commit is contained in:
parent
13699cacca
commit
e0d20609f2
2 changed files with 37 additions and 14 deletions
|
@ -133,22 +133,8 @@
|
|||
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
|
||||
\node[shape=circle,draw,inner sep=2pt] (char) {#1};}}
|
||||
|
||||
%Print a warning sign
|
||||
\newcommand\Warning{%
|
||||
\makebox[1.4em][c]{%
|
||||
\makebox[0pt][c]{\raisebox{.1em}{\small!}}%
|
||||
\makebox[0pt][c]{\color{red}\Large$\bigtriangleup$}}}%
|
||||
|
||||
% Add \contra symbol to denote contradiction (from Gilles Castell)
|
||||
\usepackage{stmaryrd} % for \lightning
|
||||
\newcommand\contra{\scalebox{1.5}{$\lightning$}}
|
||||
|
||||
%\def\thevocab{}
|
||||
%\newcommand{\vocab}[2][\thevocab]{\renewcommand\thevocab{#2}\textbf{\color{blue} #2}\index{#1}}
|
||||
|
||||
\newcommand{\emphasize}[1]{{\color{red} #1}}
|
||||
|
||||
|
||||
%Short commands for \mathbb{}
|
||||
\newcommand{\C}{\ensuremath{\mathbb{C}}}
|
||||
\newcommand{\F}{\ensuremath{\mathbb{F}}}
|
||||
|
|
37
mkessler-mathsymb.sty
Normal file
37
mkessler-mathsymb.sty
Normal file
|
@ -0,0 +1,37 @@
|
|||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{mkessler-mathsymb}[2021-09-06 - Some extra math-related symbols]
|
||||
|
||||
%%%%%%%%%%%%%%%%%%
|
||||
% A collection of math-related symbols / tools I often use, mainly collected together from Stack Overflow or hacked together myself
|
||||
|
||||
% noloc command by
|
||||
% user 'egreg' (https://tex.stackexchange.com/users/4427/egreg)
|
||||
% posted on
|
||||
% https://tex.stackexchange.com/questions/546713/spacing-in-colon (Spacing in \colon)
|
||||
% Prints a mirrored \colon correctly
|
||||
\RequirePackage{amsmath}
|
||||
\newcommand\noloc{%
|
||||
\nobreak
|
||||
\mspace{6mu plus 1mu}
|
||||
{:}
|
||||
\nonscript\mkern-\thinmuskip
|
||||
\mathpunct{}
|
||||
\mspace{2mu}
|
||||
}
|
||||
|
||||
% \contra command from Gilles Castel, taken from
|
||||
% https://github.com/gillescastel/university-setup/blob/master/preamble.tex
|
||||
% (retrieved 2021-09-08)
|
||||
% The preamble linked above is MIT-licensed by Gilles Castel
|
||||
\RequirePackage{stmaryrd} % for \lightning
|
||||
\RequirePackage{graphicx}
|
||||
\newcommand\contra{\scalebox{1.5}{$\lightning$}}
|
||||
|
||||
|
||||
|
||||
%Print a warning sign
|
||||
\RequirePackage{pgf}
|
||||
\newcommand\Warning{%
|
||||
\makebox[1.4em][c]{%
|
||||
\makebox[0pt][c]{\raisebox{.1em}{\small!}}%
|
||||
\makebox[0pt][c]{\color{red}\Large$\bigtriangleup$}}}%
|
Loading…
Reference in a new issue