我有两个圈子:
空心圆
\circle{5}
和实心圆
\circle*{3}
我怎样才能在空心的上方绘制实心的?我们可以发出命令吗?我想将其放在文本中以符号形式显示。谢谢。
我从互联网上复制了不同的东西:
\documentclass{article}
\newcommand\bulletarrow{{\ooalign{\raise0.8ex\hbox{$\bullet$}\cr$\downarrow$}}}
\begin{document}
\raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}}
\circle*{8}
\circle{15}
\setlength{\unitlength}{1mm}
\begin{picture}(60, 40)
\put(20,30){\circle{1}}
\put(20,30){\circle*{5}}
\put(20,30){\circle{8}}
\put(40,30){\circle{1}}
\put(40,30){\circle{2}}
\put(40,30){\circle{3}}
\put(40,30){\circle{4}}
\put(40,30){\circle{5}}
\put(40,30){\circle{6}}
\put(40,30){\circle{7}}
\put(40,30){\circle{8}}
\put(40,30){\circle{9}}
\put(40,30){\circle{10}}
\put(40,30){\circle{11}}
\put(40,30){\circle{12}}
\put(40,30){\circle{13}}
\put(40,30){\circle{14}}
\put(15,10){\circle*{1}}
\put(20,10){\circle*{2}}
\put(25,10){\circle*{3}}
\put(30,10){\circle*{4}}
\put(35,10){\circle*{5}}
\end{picture}
\end{document}
答案1
使用 TikZ 的一个选项(调整设置以满足您的需要):
\documentclass{article}
\usepackage{tikz}
\newcommand\mycircle{%
\begin{tikzpicture}[baseline=-1ex]
\draw (0,0) circle [radius=5pt];
\fill (0,0) circle [radius=3pt];
\end{tikzpicture}%
}
\begin{document}
A\mycircle B
\end{document}
答案2
非常简单:
\documentclass{article}
\newcommand*\mycircle{\textcircled{\textbullet}}
\begin{document}
This symbol is (for unknown reasons) represented by \mycircle.
The symbol \mycircle{} is (for unknown reasons) not represented by anything.
\end{document}
答案3
此示例借助其他符号构造符号。它们可以在数学和文本模式下使用。
\documentclass{article}
\usepackage{latexsym}
\makeatletter
\newcommand*{\obullet}{}
\protected\def\obullet{%
\ensuremath{%
\mathbin{%
\mathpalette\@bullet@o\odot
}%
}%
}
\newcommand*{\bulletcirc}{}
\protected\def\bulletcirc{%
\ensuremath{%
\mathbin{%
\mathpalette\@bullet@o\bigcirc
}%
}%
}
\newcommand*{\@bullet@o}[2]{%
\sbox0{$#1#2\m@th$}%
\hbox to\wd0{\hfil$#1\bullet\m@th$\hfil}%
\llap{\copy0}%
}
\makeatother
\begin{document}
\[
A \odot B \obullet C \bulletcirc D
\]
\begin{center}
text \obullet\ text \bulletcirc\ text
\end{center}
\end{document}
也可以通过环境构造符号picture
:
\documentclass{article}
\newcommand*{\bulletcircle}{}
\protected\def\bulletcircle{%
\begingroup
\settoheight{\unitlength}{A}%
\begin{picture}(1,1)%
\put(.5,.5){\circle{1}}%
\put(.5,.5){\circle*{.65}}%
\end{picture}%
\endgroup
}
\begin{document}
abc \bulletcircle\ text
\end{document}
答案4
量身定制\stackinset
:
\documentclass{article}
\usepackage{stackengine}
\def\mycirc{\kern3.5pt\raisebox{3pt}{\stackinset{l}{}{c}{}{\circle{5}}{\circle*{3}}}}
\begin{document}
E\mycirc B
\end{document}