On Apr 5, 5:46 pm, "David Joyner" <[EMAIL PROTECTED]> wrote:
> On Sat, Apr 5, 2008 at 10:14 AM, Martin Albrecht
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> > On Saturday 05 April 2008, David Joyner wrote:
> > > I tried following the README in the devel/doc/ref section and am
> > > having latex compilation problems.
> > > First, in mwrank somewhere there is a \Sha which latex has trouble with.
> > > Second, in sage.rings.polynomial.pbori there is a \Sage, \var{other}
> > > and var[ring] which
> > > I think latex doesn't like. (Could be wrong though.)
>
> > This is quite likely that I just forgot to add an r""" to the docstring
> > such
> > that the backslashes are passed through.
>
> > > Third, I think in code_constructions there is a line
> > > ValueError including a traceback error message: "x must divide x^4
> > -
> > > 1" which latex complains about a missing $ sign. (I'm not sure though.)
>
> > x^4 is only valid in math mode.
>
> > > The problem is that when I try to correct them and rerun build_pdf, the
> > new
> > > corrections are not taken into account. They I went into
> > > devel/doc/ref/sage and deleted
> > > the corresponding *.tex files and still, the compilation failed at the
> > > same places.
>
> > You need to edit the source (*.py, *.pyx) files rather than the TeX, so
> > e.g.
>
> > SAGE_ROOT/devel/sage/sage/rings/polynomial/pbori.pyx
hi David,
> Yes, I did that, then deleted the associated tex file (which gets
> autogenerated anyway), but got the same compile error error. Maybe
> I should delete the latex aux file too?
Depending on the TeX distribution that might be needed. We use TeTeX,
so if you use TexLive it seems to be required. There is already a
ticket to delete those files upon distribution of the sources.
> Or maybe I need to run sage -br first?
>
./rebuild does run "sage -b", so if you are using that there is no
need to run it manually. Fixing LaTeX bugs in docstrings is usually
the fun part right at the end of a release cycle, so I haven't looked
into this for 3.0 yet. Feel free to fix it and submit a patch, I
promise that my feelings won't be hurt ;)
Cheers,
Michael
>
> > Hope that helps,
> > Martin
>
> > --
> > name: Martin Albrecht
> > _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> > _www:http://www.informatik.uni-bremen.de/~malb
> > _jab: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---