On 17 Apr, 08:46, Nicolas Keller <[EMAIL PROTECTED]> wrote:
> I'm aware of the problem with the overflows but I don't have the time
> to fix it yet. The problem is with latex that doesn't do any breaks in
> courier formated text. I tried some workarounds I found on the web but
> without any luck. I use the listings package for the python code. If
> someone can help me here I would be glad.

I've used listings and I believe the code can be wrapped by setting
the breaklines property in the lstset command - see below:

%---------------------------------------------------------------
\lstset{                                        % setting the listing
properties
    basicstyle=\small\ttfamily,                 % small, typewriter
type format
    keywordstyle=\bfseries\color{MidnightBlue}, % blue keywords
    commentstyle=\color{ForestGreen},           % green comments
    stringstyle=\color{BrickRed},               % red strings
    fontadjust=true,                            % fontadjust
    breaklines=true,                            % wrap long lines
    showstringspaces=false}                     % no special string
spaces
%---------------------------------------------------------------

HTH,
Dave


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to