
Quero alinhar os centros dos símbolos ,,, \Circle
e não os centros dos nós. Existe uma maneira simples?\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}
Isto é o que eu recebo
Responder1
Você pode usar \smash{^{\frac{1}{4}}}
todos os sobrescritos, então eles não ocuparão nenhum espaço vertical e, portanto, não afetarão o alinhamento.
\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}