
\Circle
ノードの中心ではなく、シンボル\CIRCLE
、、の中心を揃えたいのです\times
が、簡単な方法はありますか?
\documentclass[final,t]{beamer}
\mode<presentation>
\usepackage{wasysym}
\usepackage{bm}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\centering
\matrix (m) [
matrix of math nodes, row sep=3em, column sep=1.5em, minimum height=4em, %nodes in empty cells , minimum width=3em
nodes={anchor=center}
]
{
\CIRCLE^{\frac{1}{4}} & \Circle^{\frac{1}{4}} & (\Circle^{\frac{1}{4}}\CIRCLE^{\frac{1}{4}}) & \bm{\times} \\
};
\path
(m-1-1) edge (m-1-2)
(m-1-2) edge (m-1-3)
(m-1-3) edge (m-1-4);
\end{tikzpicture}
\end{document}
これが私の得たもの
答え1
すべての上付き文字に を使用する\smash{^{\frac{1}{4}}}
と、上付き文字は垂直方向のスペースを占有しないため、配置に影響しません。
\documentclass[final,t]{beamer}
\mode<presentation>
\usepackage{wasysym}
\usepackage{bm}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\centering
\matrix (m) [
matrix of math nodes, row sep=3em, column sep=1.5em, minimum height=4em, %nodes in empty cells , minimum width=3em
nodes={anchor=center}
]
{
\CIRCLE\smash{^{\frac{1}{4}}} & \Circle\smash{^{\frac{1}{4}}} & (\Circle\smash{^{\frac{1}{4}}}\CIRCLE\smash{^{\frac{1}{4}}}) & \bm{\times} \\
};
\path
(m-1-1) edge (m-1-2)
(m-1-2) edge (m-1-3)
(m-1-3) edge (m-1-4);
\end{tikzpicture}
\end{document}