TFG_Sixto/conjuntos_TFG.sty
2025-05-06 13:15:59 +02:00

42 lines
2.1 KiB
TeX

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{conjuntos}
\RequirePackage{amsmath, amssymb, amsfonts}
\newcommand{\formatoconjuntogotico}[1]{\ensuremath{\mathfrak{#1}}}
\newcommand{\formatoconjuntopizarra}[1]{\ensuremath{\mathbb{#1}}}
\newcommand{\formatoconjunto}[1]{\formatoconjuntopizarra{#1}}
\DeclareOption{gotico}{\renewcommand{\formatoconjunto}[1]{\formatoconjuntogotico{#1}}}
\DeclareOption{pizarra}{\renewcommand{\formatoconjunto}[1]{\formatoconjuntopizarra{#1}}}
\newcommand{\conjunto}[1]{\ensuremath{ \left\lbrace #1\right\rbrace }}
\newcommand{\definicionconjuntobarra}[2]{\conjunto{#1 \left\lvert #2 \right.}}
\newcommand{\definicionconjuntodospuntos}[2]{\conjunto{#1 \; : \; #2}}
\newcommand{\definicionconjunto}[2]{\definicionconjuntobarra{#1}{#2}}
\DeclareOption{barra}{\renewcommand{\definicionconjunto}[2]{\definicionconjuntobarra{#1}{#2}}}
\DeclareOption{dos puntos}{\renewcommand{\definicionconjunto}[2]{\definicionconjuntodospuntos{#1}{#2}}}
\newcommand{\complejos} {\ensuremath{\formatoconjunto{C}}}
\newcommand{\reales} {\ensuremath{\formatoconjunto{R}}}
\newcommand{\racionales}{\ensuremath{\formatoconjunto{Q}}}
\newcommand{\enteros} {\ensuremath{\formatoconjunto{Z}}}
\newcommand{\naturales} {\ensuremath{\formatoconjunto{N}}}
\newcommand{\enterosmodulo}[1]{\ensuremath{\enteros_{#1}}}
\newcommand{\naturalescero}{\ensuremath{\naturales_{0}}}
\newcommand{\naturalesmas}{\ensuremath{\naturales^{+}}}
%\newcommand{\imagen}[1]{\ensuremath{\text{Im}\!\left(#1\right)}}
\newcommand{\multiconjunto}[1]{\ensuremath{ \left\lbrace\!\! \left\lbrace #1\right\rbrace \!\!\right\rbrace }}
\newcommand{\partes}[1]{\ensuremath{\mathcal{P}\!\left(#1\right)}}
\newcommand{\cociente}[2]{\ensuremath{\nicefrac{#1}{#2}}}
\newcommand{\claseequivalencia}[1]{\ensuremath{\left[ #1 \right]}}
\newcommand{\union}[2]{\ensuremath{#1 \cup #2}}
\newcommand{\interseccion}[2]{\ensuremath{#1 \cap #2}}
\newcommand{\Union}[2]{\ensuremath{\bigcup_{#2} #1}}
\newcommand{\Interseccion}[2]{\ensuremath{\bigcap_{#2} #1}}
\newcommand{\complementario}[1]{\ensuremath{ {#1}^{\text{C}} }}
\ProcessOptions\relax