# 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
BracketB -[ widthB=1.0,lengthB=0.2,angleB=None
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
BracketB -[ widthB=1.0,lengthB=0.2,angleB=None
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