Re: avoid prepending \protect to custom inset

2022-02-23 Thread Jürgen Spitzmüller via lyx-users
Am Mittwoch, dem 23.02.2022 um 13:52 + schrieb tush via lyx-users: > From the TeX point of view, is there really a reason for the protect > in this case? Yes, I think the argument of \marginpar can move. Jürgen signature.asc Description: This is a digitally signed message part -- lyx-user

Re: avoid prepending \protect to custom inset

2022-02-23 Thread tush via lyx-users
Thanks a lot. That's right. Modifying InsetLayout Marginal located in the stdinsets.inc file indeed controls the presence or absence of "\protect". The reason I want to get rid of it is because that without the protect, the exported tex file looks more the way I would have typed in a text editor

Re: avoid prepending \protect to custom inset

2022-02-21 Thread Jürgen Spitzmüller via lyx-users
Am Mo., 21. Feb. 2022 um 18:23 Uhr schrieb tush via lyx-users < lyx-users@lists.lyx.org>: > I created the following module that adds the parbox command to LyX. That > is, inserts the latex code "\parbox{\marginparwidth}{text goes here}" as an > inset. > > For some reason lyx prepends "\protect" to