# pst-node replacement for LuaTeX

I have code that uses pst-node package to draw overbrace. What package should i use to compile it with LuaTeX?

\documentclass[preview,border=10pt]{standalone}

\usepackage{amsmath}
\usepackage{pst-node}

\begin{document}
$\overset{\rnode{C}{\scriptstyle c}}{410}\text{ pounds} + \overset{\rnode{V}{\scriptstyle v}}{90}\text{ pounds}$
\ncarc[angleB=180]{C}{V}
\end{document}


MWE

needs only lualatex --shell-escape <file>

\documentclass{article}
\usepackage{amsmath}
\usepackage{pst-node}
\usepackage{auto-pst-pdf-lua}

\begin{document}
\begin{postscript}
$\overset{\rnode{C}{\scriptstyle c}}{410}\text{ pounds} + \overset{\rnode{V}{\scriptstyle v}}{90}\text{ pounds}$
\ncarc[angleB=180]{C}{V}
\end{postscript}
\end{document}

• I use the brace in inline math node. So i need to compile postscript the whole paragraph? Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. $\overset{\rnode{C}{\scriptstyle c}}{410}\text{ pounds} + \overset{\rnode{V}{\scriptstyle v}}{90}\text{ pounds}$ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. – Denys Potapov Dec 9 '18 at 13:35
• It doesn't work for me. I get (not really surprising) error messages from dvips dvips: Can't open font metric file [lmroman10-regular]:+tlig;.tfm dvips: I will use cmr10.tfm instead, so expect bad output. and glyphs are missing. The code contains a reference to a package pst-pdf-lua but this is never loaded (and also seems not to exist). – Ulrike Fischer Dec 9 '18 at 13:40
• @DenysPotapov: Only the PSTricks part must be in the postscript environment. Not the complete paragraph. – user2478 Dec 9 '18 at 15:25
• @UlrikeFischer: I see, wrong package name, but has nothing to do with your problem. – user2478 Dec 9 '18 at 15:36

I've got a pretty close result with TikZ:

\documentclass[preview,border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}

\begin{document}
\tikzstyle{every picture}+=[remember picture]
\tikzstyle{na} = [baseline=-.5ex]

$\overset{c \tikz[na] \coordinate (c-node);}{410}\text{ pounds} + \overset{\tikz[na] \coordinate (v-node); v }{90}\text{ pounds}$

\begin{tikzpicture}[overlay]
\path[-,black] (c-node) edge [out=5,in=175] (v-node);
\end{tikzpicture}

\end{document}