fancy patch formatting breaking tex document

In the Curve class of patches.py, where we are doing:

_style_list["-"] = Curve

and interpolating this into a rest table via patches._pprint_styles,
which looks like this::

    ======== ====== =============================================
    Class Name Attrs
    ======== ====== =============================================
    Curve - None
    CurveB -> head_length=0.4,head_width=0.2
    BracketB -[ widthB=1.0,lengthB=0.2,angleB=None
    CurveA <- head_length=0.4,head_width=0.2
    CurveAB <-> head_length=0.4,head_width=0.2
    Fancy fancy head_length=0.4,head_width=0.4,tail_width=0.4
    Simple simple head_length=0.5,head_width=0.5,tail_width=0.2
    Wedge wedge tail_width=0.3,shrink_factor=0.5
    ======== ====== =============================================

tex is inserting the following into the tex doc::

   Curve
    & \begin{itemize}
   \item {}
   \end{itemize}
    &
   None
   \\

It looks like it thinks the hyphen is starting an itemize list, and
this is breaking the tex table environment. Any ideas how to fix
this?

For now, I am going to quote the Name column with single quotes, eg '-' and '->'

Thanks,
JDH

John,

I remember that "-" is also rendedered as a dot in the HTML output.

Using "\-" instead of "-" seems to work. But, I'm afraid that the help
(or similar) command, which I frequently use in interactive sessions,
may show "\-" instead of "-".

So, quoting seems to be a best option to me.

Regards,

-JJ

···

On Mon, Dec 8, 2008 at 5:04 PM, John Hunter <jdh2358@...287...> wrote:

In the Curve class of patches.py, where we are doing:

_style_list["-"] = Curve

and interpolating this into a rest table via patches._pprint_styles,
which looks like this::

   ======== ====== =============================================
   Class Name Attrs
   ======== ====== =============================================
   Curve - None
   CurveB -> head_length=0.4,head_width=0.2
   BracketB -[ widthB=1.0,lengthB=0.2,angleB=None
   CurveA <- head_length=0.4,head_width=0.2
   CurveAB <-> head_length=0.4,head_width=0.2
   Fancy fancy head_length=0.4,head_width=0.4,tail_width=0.4
   Simple simple head_length=0.5,head_width=0.5,tail_width=0.2
   Wedge wedge tail_width=0.3,shrink_factor=0.5
   ======== ====== =============================================

tex is inserting the following into the tex doc::

  Curve
   & \begin{itemize}
  \item {}
  \end{itemize}
   &
  None
  \\

It looks like it thinks the hyphen is starting an itemize list, and
this is breaking the tex table environment. Any ideas how to fix
this?

For now, I am going to quote the Name column with single quotes, eg '-' and '->'

Thanks,
JDH

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options