我想设计一个新的元素符号。如何将红线和蓝线(不同的代码\myin
\mynotin
)添加到我的代码中?
\documentclass[a5paper]{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage{tikz}
\def\h {1.3ex} % cup and cap height
\def\w {1.2ex} % cup and cap width
\def\lw{0.12ex} % cup and cap line width
\def\spp{0.7269ex} % space before and after
\newcommand{\myinn}[1]
{
\hspace{\spp}
\tikz[line width=\lw,line cap=round,rotate=#1,baseline=-0.4ex]
{\draw (-0.5*\w,0.5*\h) -- (-0.5*\w,0.5*\w-0.5*\h)
arc (-180:0:0.5*\w) -- (0.5*\w,0.5*\h);}
\hspace{\spp}
}
\newcommand{\myin}{\myinn{270}}
\begin{document}
\[\myin\]
\end{document}