Re: how can i set up a shortcut for equation label?

2015-08-10 Thread gadmm

Dear Chen,

See in Preferences > Keyboard shortcuts. The action is label-insert and 
you can define a shortcut of your choice for it. In your case you will 
find label-copy-as-reference useful too, to later paste the reference.


GM


Le 10/08/2015 17:58, Chen Lian a écrit :

Hi there,

I need to use the function of equation labelling everyday. How can i set up a 
shortcut for it? I google a lot and fail to find a solution. Thanks a lot!

Best,
Chen






Re: Creating a new description environment

2015-05-19 Thread gadmm

Dear Victor,

Here's a solution that can be adapted to many other contexts. In 
Document Setting > Local Layout, you can define your custom environment 
with the following code:


Style Description2
  CopyStyle Description
  LatexName "description2"
End


For more information about the layout syntax see the customization guide.


On 05/19/15 20:52, Victor Porton wrote:

I need to create a new environment which could work exactly as
Description with one change: It should use another LaTeX environment
(not "description"), when exporting.

Can it be done?






Re: How to use align inside table?

2015-04-30 Thread gadmm

On 04/30/15 15:24, Anders Host-Madsen wrote:

How can you put an align or align* environment inside a table?
There seems to be some pure latex solutions, i.e., using
tabularx instead of tabular or aligned instead of align
(I haven't tried), but they appear to be incompatible with lyx.




Aligned is present in lyx. They must be treated like array, e.g. you 
insert them with \aligned in a math inset. This is what I would 
recommend for your problem.