Using the return value of "server-get-layout"

Pavel Sanda sanda at lyx.org
Sat Jan 7 23:15:35 UTC 2023


On Wed, Dec 28, 2022 at 04:53:30PM +0200, Udicoudco wrote:
> I was wondering, is there a way to manipulate
> the string returned by the LFUN "server-get-layout"
> and pass the result as an argument to the LFUN "layout"
> using only LFUN's?

You could use scripting, e.g. if you are on linux: 
$ LAYOUT=`lyxclient -c LYXCMD:server-get-layout|sed s/INFO:server-get-layout://`

Then manipulate the result in LAYOUT variable and pass it back again via lyxclient.

Pavel


More information about the lyx-users mailing list