[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-users
Subject:    Re: code in programlisting box goes over the right edge
From:       Paul Rubin <rubin () msu ! edu>
Date:       2010-06-23 15:35:58
Message-ID: loom.20100623T173407-991 () post ! gmane ! org
[Download RAW message or body]

Julien Rioux <jrioux <at> physics.utoronto.ca> writes:

> 
> In Document > Settings > Preamble you can add
> 
> \lstset{breaklines=true}
> 

You can also right click on the inset (the box), click Settings..., and put a
check mark next to "Break long lines" in the Style section of the Main Settings
tab.  Julien's approach is less work if you are going to have a number of
program listing insets and want to allow line breaking in all of them.

/Paul


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic