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-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


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 
outside of LyX.

From the TeX point of view, is there really a reason for the protect in this 
case?

--- Original Message ---
On Tuesday, February 22nd, 2022 at 9:28 AM, Jürgen Spitzmüller  
wrote:

> Am Mo., 21. Feb. 2022 um 18:23 Uhr schrieb tush via lyx-users 
> :
>
>> 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 this command when inserted inside 
>> a box, which itself is inserted inside a marginal note. See image.
>
> This is since InsetMargin has NeedProtect.
>
>> I added the NeedProtect option for this Inset and toggled both boolean 
>> values but the "\protect" is still there.
>>
>> I don't want it to appear there.
>
> Why? It is most likely needed. Is there a reason you want to get rid of it?
>
> Jürgen
>
>>-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


chkconfig

2022-02-23 Thread Wolfgang Engelmann via lyx-users

how do I configure the start of my lyx?
Klicking on a lyx file in a directory says

Unable to determine the system directory having searched
/usr/local/share/lyx/
Use the '-sysdir' command line parameter or set the environment variable
LYX_DIR_24x to the LyX system directory containing the file `chkconfig.ltx'.


wolfgang@Fuji:/usr$ chkconfig
bash: chkconfig: Kommando nicht gefunden.
wolfgang@Fuji:/usr$ sudo chkconfig
[sudo] Passwort für wolfgang:
sudo: chkconfig: Befehl nicht gefunden
wolfgang@Fuji:/usr$

my lyx240 is in
/usr/local/share
and there is also chkconfig.ltx

I am on Debian and use lyx2.4.0dev

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users