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?

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.

Reply via email to