Re: Creating a new description environment

2015-05-20 Thread Guenter Milde
On 2015-05-20, ga...@free.fr wrote:

 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?

 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


If you want to use the new environment *instead of* description, you can
also just create an alias makro in DocumentSettingsLaTeX preamble:

\renewenvironment{description}%
{\theotherenvironmentname}
{\endtheotherenvironmentname}


Günter





Re: Creating a new description environment

2015-05-20 Thread Guenter Milde
On 2015-05-20, ga...@free.fr wrote:

 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?

 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


If you want to use the new environment *instead of* description, you can
also just create an alias makro in DocumentSettingsLaTeX preamble:

\renewenvironment{description}%
{\theotherenvironmentname}
{\endtheotherenvironmentname}


Günter





Re: Creating a new description environment

2015-05-20 Thread Guenter Milde
On 2015-05-20, ga...@free.fr wrote:

> 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?

> 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


If you want to use the new environment *instead of* "description", you can
also just create an alias makro in Document>Settings>LaTeX preamble:

\renewenvironment{description}%
{\theotherenvironmentname}
{\endtheotherenvironmentname}


Günter





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: Creating a new description environment

2015-05-19 Thread Richard Heck

On 05/19/2015 08:02 PM, ga...@free.fr wrote:

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


Very good! But do remember to include the appropriate format tag, e.g.
Format 49
for 2.1.x.

Richard



Creating a new description environment

2015-05-19 Thread Victor Porton
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?

-- 
Victor Porton - http://portonvictor.org


Creating a new description environment

2015-05-19 Thread Victor Porton
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?

-- 
Victor Porton - http://portonvictor.org


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: Creating a new description environment

2015-05-19 Thread Richard Heck

On 05/19/2015 08:02 PM, ga...@free.fr wrote:

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


Very good! But do remember to include the appropriate format tag, e.g.
Format 49
for 2.1.x.

Richard



Creating a new description environment

2015-05-19 Thread Victor Porton
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?

-- 
Victor Porton - http://portonvictor.org


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: Creating a new description environment

2015-05-19 Thread Richard Heck

On 05/19/2015 08:02 PM, ga...@free.fr wrote:

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


Very good! But do remember to include the appropriate format tag, e.g.
Format 49
for 2.1.x.

Richard