Latex で 6 つのピラミッド型のドットを生成する

Latex で 6 つのピラミッド型のドットを生成する

この質問をどこにすればいいのか分かりませんが、Latex を使用してピラミッド型の 6 つのドットを持つグラフィック要素を作成することは可能ですか?

Unicode 文字ブロックからこのシンボルを見つけることができないので、次は Latex または同様の方法で作成してみることにします。これが機能しない場合は、png 画像を受け入れるだけです...

下のシンボル T3=6 は私が作成しようとしているものです。

ピラミッド型の点

答え1

tikz で実行できます。\pyrdotコマンド定義のコメントを参照してください。

ここに画像の説明を入力してください

\documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{calc}

\newcommand{\pyrdot}[1]{
    % you can tune the size of the pyramid using the scale option
    \begin{tikzpicture}[scale=.4] 
        \pgfmathsetmacro{\n}{#1}                            % define \n, the number of rows 
        \edef\m{0}                                          % define \m, the total number of circles
        \foreach \i in {1, ..., \n} {                       % vertical loop
            \foreach \k in {1, ..., \i} {                   % horizontal loop
                \fill ($(\k,-\i)+(-.5*\i,0)$) circle (4mm); % draw the circle (size = 4mm, shifted to the left)
                \pgfmathparse{int(\m+1)}                    % increment \m
                \xdef\m{\pgfmathresult}
            }
        }
        % put the text below the pyramid
        \node[anchor=north] at (current bounding box.south) {$T_{\n}=\m$};
    \end{tikzpicture}
}

\begin{document}

\section{pyramidical dots}
\pyrdot{1}
\pyrdot{2}
\pyrdot{3}
\pyrdot{4}
\pyrdot{5}
\pyrdot{6}

\end{document}

参考文献

関連情報