Re: Two input parameter of lyx

2023-12-28 Thread Dr Eberhard W Lisse
In this particular case LyX can use colors without ERT.

el


On 28/12/2023 16:03, Jean-Marc Lasgouttes wrote:
> Le 28/12/2023 à 03:48, Jiahao Yan a écrit :
>> Hi,
>>
>> I'm a fan of lyx but I meet a question when I use it. Sometimes we
>> want input two parameter with one command, like
>> \textcolor{color}{text}, but lyx will compile the command and the
>> first curly braket, considering the first parameter as none. I wonder
>> if there is a solution. I would appreciate it if any help!
>>
> 
> Hello,
> 
> Could you send a short example file demonstrating your problem?
> 
> JMarc
> 


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


Re: Two input parameter of lyx

2023-12-28 Thread Jean-Marc Lasgouttes

Le 28/12/2023 à 03:48, Jiahao Yan a écrit :

Hi,

I'm a fan of lyx but I meet a question when I use it. Sometimes we want 
input two parameter with one command, like \textcolor{color}{text}, but 
lyx will compile the command and the first curly braket, considering the 
first parameter as none. I wonder if there is a solution. I would 
appreciate it if any help!




Hello,

Could you send a short example file demonstrating your problem?

JMarc

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


Re: Two input parameter of lyx

2023-12-28 Thread Rich Shepard

On Thu, 28 Dec 2023, Jiahao Yan wrote:


I'm a fan of lyx but I meet a question when I use it. Sometimes we want
input two parameter with one command, like \textcolor{color}{text}, but
lyx will compile the command and the first curly braket, considering the
first parameter as none. I wonder if there is a solution. I would
appreciate it if any help!


Jiahao,

The second parameter should be in square brackets, not curly braces. Try
\textcolor{mycolor}[this text].

Regards,

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