How to use the environment defined by \lstnewenvironment in LyX

2021-11-23 Thread Guofeng Zhang
Hi,

I have created the new listing environment and use it in LyX by Tex Code
well.Is there any way that I could configure LyX (for example,  LyX's
Programming Listings) to use this listing environment?

Searched by google, but no way to go , so I tried to create a LyX inset to
use it. So another question: can I define an inset that always has full
line width in the editor?

Thanks for your help!

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


Using Chinese with LyX 2/XeTeX?

2011-03-20 Thread Guofeng Zhang
Hi,

 

LyX 2 support XeTeX, which is described that XeTeX directly support
Unicode and fonts in our system ( I use Windows XP), so I think it might
be better Chinese support.

 

So I downloaded LyX 2 RC1 and want to make a trial how to use Chinese
with LyX 2.

 

I create a new article, then Document->Settings...->Fonts->Use non-TeX
fonts (via XeTeX/LuaTeX). Then type some Chinese characters, and use
View->PDF (XeTeX). No Chinese characters are displayed.

 

If I select a Chinese font for typewriter, I get an error message says
that 'fontspec error: "font-not-found'.

 

How can I use Chinese with XeTex?

 

Thanks for your help.

 

Guofeng

 

 



RC1: Why there is no binary for Winsows

2011-03-08 Thread Guofeng Zhang
Hi,

 

I found that there is not any binary for Windows in Beta 4 and RC 1.
Will the support for Windows be available in the next release?

 

Thanks

 

Guofeng