My question is:
Is it possible to align any two nodes by aligning their subnodes?
For TikZ nodes, is it possible to add a new anchor to an existed nodes?
(for example: addnode-b.northas an new anchor ofnode-a)
In this example, I try to put the "Delta" of 2 nodes on a same vertical line, but I failed.
\documentclass[10pt,a4paper, utf-8]{article}
\usepackage{
amsmath,
mathtools,
amsfonts,
amssymb,
tikz
}
\usetikzlibrary{
tikzmark,
positioning,
matrix,
}
\begin{document}
\begin{tikzpicture}[remember picture]
\node(a) [draw] {$A \subnode[draw]{sub-a}{\Delta} B \wedge C$};
\node(b) [draw,anchor=sub-b,below=1pt of sub-a]{$A \wedge C \subnode{sub-b}{\Delta} B$};
\end{tikzpicture}
\end{document}
My idea is to drop the anchor of b from sub-b to sub-a (like matrix: you can set matrix anchor=inner node).
I use tikzmark to obtain two "Delta"s' coordinates.
When I try to set the starting point of anchor, it doesn't work.
An simple analogy may help you understand my idea:
if node b is a ship, then
command "anchor=..." set the release point of the anchor,
command "below=..." set the destination of the anchor.
PS:
Although matrix is a possible solution,
but it's troublesome when the "Delta" was inside a fraction(for example, the "Delta" is inside the denominator) .
The code block shown above is just an simple example,
what I really hope to see is a more general solution(stated in the title).
The first question has been answered, but I really like to see the answer of the second question(For TikZ nodes, is it possible to add a new anchor to an existed nodes?).
And please, do not delete your original answer. They are also useful ^__^.


below=of foo, that will automatically setanchor=north. Hence, if you want to use a different anchor, theanchorsetting has to come after the positioning setting, e.g.below=of foo, anchor=north east. However, it doesn't look like you can usesub-bas an anchor in your example. – Torbjørn T. Oct 16 '20 at 16:56tikzmarknodes on showed way is close enough for show a way how to solve OP's problem. Apparently I'm wrong. – Zarko Oct 16 '20 at 21:56