This post is building from the post found here developed by Gonzalo Medina. How to get the same equation to behave correctly on two different pages? In my code, the under braces do not fall in the correct position.
Here is my code:
\documentclass{book}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{mathptmx}
\usepackage{calc}
\usepackage{tikz}
\usetikzlibrary{tikzmark,calc,decorations.pathreplacing}
\usepackage{lipsum}
\begin{document}
\begin{equation}
L_{\omega_{m}}=\frac{1}{8}\dfrac{FkT}{\tikzmark{starta}P_{s~av}\tikzmark{enda}}\dfrac{\omega_{o}^{2}}{\omega_{m}^{2}}\left(\dfrac{P_{in}}{\tikzmark{startb}\omega_{o}W_{e}\tikzmark{endb}}%
+ \dfrac{1}{\tikzmark{startc}Q_{unl}\tikzmark{endc}}+\dfrac{P_{sig}}{\tikzmark{startd}\omega_{o}W_{e}\tikzmark{endd}} \right)^{2} \left(1 + \dfrac{\omega_{c}}{\tikzmark{starte}\omega_{m}\tikzmark{ende}} \right)
\end{equation}
\begin{tikzpicture}[remember picture,overlay]
\foreach \Value/\Length/\Text in {%
a/15pt/{Phase\\perturbation},%
b/40pt/{Input power\\over\\reactive power},%
c/20pt/{Resonator $Q$},%
d/40pt/{Signal power\\over\\reactive power},%
e/20pt/{Flicker\\effect}%
}
{
\draw[decorate,decoration={brace,mirror,raise=5pt}]
({pic cs:start\Value}) -- coordinate (aux-\Value) ({pic cs:end\Value}|-{pic cs:start\Value});
\draw
([yshift=-7pt]aux-\Value) -- ++(0pt,-\Length)
node[below,align=center] {\Text};
}
\end{tikzpicture}
\lipsum[1-4]
\begin{equation}
L_{\omega_{m}}=\frac{1}{8}\dfrac{FkT}{\tikzmark{starta}P_{s~av}\tikzmark{enda}}\dfrac{\omega_{o}^{2}}{\omega_{m}^{2}}\left(\dfrac{P_{in}}{\tikzmark{startb}\omega_{o}W_{e}\tikzmark{endb}}%
+ \dfrac{1}{\tikzmark{startc}Q_{unl}\tikzmark{endc}}+\dfrac{P_{sig}}{\tikzmark{startd}\omega_{o}W_{e}\tikzmark{endd}} \right)^{2} \left(1 + \dfrac{\omega_{c}}{\tikzmark{starte}\omega_{m}\tikzmark{ende}} \right)
\end{equation}
\begin{tikzpicture}[remember picture,overlay]
\foreach \Value/\Length/\Text in {%
a/15pt/{Phase\\perturbation},%
b/40pt/{Input power\\over\\reactive power},%
c/20pt/{Resonator $Q$},%
d/40pt/{Signal power\\over\\reactive power},%
e/20pt/{Flicker\\effect}%
}
{
\draw[decorate,decoration={brace,mirror,raise=5pt}]
({pic cs:start\Value}) -- coordinate (aux-\Value) ({pic cs:end\Value}|-{pic cs:start\Value});
\draw
([yshift=-7pt]aux-\Value) -- ++(0pt,-\Length)
node[below,align=center] {\Text};
}
\end{tikzpicture}
\end{document}


