著色符號

著色符號

我有很多數據點已繪製在圖表中。我需要製作一個包含這些點的表格,並將符號作為其中一列。我需要在藍色圓圈內刻一個紅點。這必須在專欄裡。 “我還需要一個刻在藍色圓圈中的紅點,該藍色圓圈刻在三角形中。”我該怎麼做呢?

答案1

像這樣的東西嗎?與縮放因子一起使用或變更命令定義中的\bluereddot[...]預設因子。0.3

\documentclass{article}

\usepackage{tikz}

\newcommand{\bluereddot}[1][0.3]{%
  \begin{tikzpicture}[scale=#1]
    \draw[fill=red,red] (0,0) circle (0.15);
    \draw[blue] (0,0) circle (0.5);
  \end{tikzpicture}%
}


\begin{document}

\bluereddot[0.1]
\bluereddot
\bluereddot[0.5]

\bluereddot[2]

\end{document}

在此輸入影像描述

相關內容