Created
November 6, 2021 16:06
-
-
Save nonchris/4c0d1a33c2c62559fe8467970c9d13de to your computer and use it in GitHub Desktop.
Things I use for making my life easier using LaTeX
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
% OWN macros | |
% vereinfacht den Befehl \texttt | |
\newcommand{\tttt}[1]{\texttt{#1}} | |
% vereinfacht den Befehl \textbf | |
\newcommand{\ttf}[1]{\textbf{#1}} | |
% vereinfacht den Befehl \textbf | |
\newcommand{\ttsl}[1]{\textsl{#1}} | |
\newcommand{\ttsf}[1]{\textsf{#1}} | |
% underline | |
% \newcommand{\ul}[1]{\underline{#1}} | |
%math mode | |
\newcommand{\mbf}[1]{\mathbf{#1}} | |
\newif\ifstartedinmathmode | |
\newcommand{\tf}[1]{% | |
\ifstartedinmathmode \mbf{#1} \else \ttf{#1}\fi% | |
} | |
\newcommand{\tsl}[1]{% | |
\ifstartedinmathmode \mathit{#1} \else \ttsl{#1}\fi% | |
} | |
\newcommand{\ttt}[1]{% | |
\ifstartedinmathmode \mathtt{#1} \else \tttt{#1}\fi% | |
} | |
\newcommand{\tsf}[1]{% | |
\ifstartedinmathmode \mathsf{#1} \else \ttsf{#1}\fi% | |
} | |
% shorthand for element in (...) | |
\newcommand{\eIn}[1]{\in \mathbb{#1}} | |
% short for this fancy mathematical letters | |
\newcommand{\mc}[1]{\mathcal{#1}} | |
\newcommand{\mb}[1]{\mathbb{#1}} | |
% shorthand for wraping text in set brackets | |
\newcommand{\wpbr}[1]{\{#1\}} | |
\newcommand{\curly}[1]{\left\{#1\right\}} | |
\newcommand{\round}[1]{\left(#1\right)} | |
\newcommand{\N}{\mathbb{N}} | |
\newcommand{\Z}{\mathbb{Z}} | |
\newcommand{\R}{\mathbb{R}} | |
% shorthand for element in (...) | |
\newcommand{\eN}[0]{\in \mathbb{N}} | |
\newcommand{\eZ}[0]{\in \mathbb{Z}} | |
\newcommand{\eQ}[0]{\in \mathbb{Q}} | |
\newcommand{\eR}[0]{\in \mathbb{R}} | |
\newcommand{\eI}[0]{\in \mathbb{I}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment