#9107: Nested class name mangling can be wrong in case of double nesting
------------------------------+--------------------------------------------
       Reporter:  hivert      |        Owner:  nthiery
           Type:  defect      |       Status:  needs_work
       Priority:  major       |    Milestone:  sage-5.12
      Component:  categories  |   Resolution:
       Keywords:              |    Merged in:
        Authors:  Simon King  |    Reviewers:  Volker Braun, Florent Hivert
Report Upstream:  N/A         |  Work issues:
         Branch:              |       Commit:
   Dependencies:  #12808      |     Stopgaps:
------------------------------+--------------------------------------------

Comment (by nthiery):

 Thanks much Travis for investigating!

 I agree that there should be a recommendation for not nesting classes
 too deep, for the sake of readability. But having a hard arbitrary
 limit -- especially that small -- is annoying. Shame on LaTeX. Of
 course, one can always spin off a subtree of nested classes into a
 separate tree, but there are cases where one has a deep tree with very
 few lines and no natural splitting point. For example, #10963
 introduces
 {{{
 
DistributiveMagmasAndAdditiveMagmas.AdditiveAssociative.AdditiveCommutative.AdditiveUnital.AdditiveInverse
 }}}

 Hmm. Altogether, I would call this a LaTeX arbitrary hard
 limitation. Luckily there seems to be an easy solution to increase
 this limitation to something large enough to cover our current use
 cases, namely to use the package enumitem [1]. By itself, it brings
 the nesting level to 6, and we could even increase it further (10
 should be really safe) using \setlistdepth{9}.

 I have attached the little latex file I used for testing.

 What do you think? Shall we add enumitems to the list of latex
 packages loaded by Sphinx? Is this standard enough, or shall we add
 enumitem.sty to the Sage distribution?

 Cheers,
                                      Nicolas

 [1] http://stackoverflow.com/questions/1935952/maximum-nesting-level-of-
 lists-in-latex

--
Ticket URL: <http://trac.sagemath.org/ticket/9107#comment:42>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to