On Tue, 10 Nov 1998, Jitse Niesen wrote:

> I have a block of lyx-code (in a figure float) that I want to center as a 
> whole. However, if I choose Layout->Paragraph->Center, than it is 
> centered line by line. So I want to get
> 
> |                 int main(int argc, char* argv[])                      |
> |                 {                                                     |
> |                    return 1;                                          |
> |                 }                                                     |
>  
> (where the vertical lines denote the margins), but I *do* get
> 
> |                 int main(int argc, char* argv[])                      |
> |                                  {                                    |
> |                              return 1;                                |
> |                                  }                                    |
> 
> So, anybody has some idea how to achieve this? Maybe by changing the 
> lyxcode-environment in the preamble?

You can use a table to get the above effect (without any lines).
The table is centered as hole, and in the cells you can use a left
justification.



Bernhard 



> 
> Thanks in advance!
> 
> Jitse Niesen
> 
> -- 
>               +++ the lyx project user mailing list +++
>                 To unsubscribe from this list send mail to 
>                          [EMAIL PROTECTED]
>                     with the **Subject** unsubscribe.
> 
> 
-------------------------------------------
Bernhard Kohn
Max-Planck-Institut fuer Stroemungsforschung
Bunsenstr. 10
37073 Goettingen

Tel.: 0551-5176-578 Buero I
               -574 Buero II
               -709 Labor

Fax:  0551-5176-607 
               -704 

email: [EMAIL PROTECTED]
--------------------------------------------



-- 
                +++ the lyx project user mailing list +++
                To unsubscribe from this list send mail to 
                         [EMAIL PROTECTED]
                    with the **Subject** unsubscribe.

Reply via email to