Opened 9 years ago

Closed 9 years ago

#13955 closed defect (fixed)

LaTeX output for Weyl group elements with prefix

Reported by: stumpc5 Owned by: sage-combinat
Priority: major Milestone: sage-5.7
Component: combinatorics Keywords: Weyl groups
Cc: nthiery, aschilling, hivert, chapoton Merged in: sage-5.7.beta1
Authors: Christian Stump Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

This short ticket provides the new behaviour

sage: W = WeylGroup(['A',2,1], prefix="s")
sage: [s0,s1,s2]=W.simple_reflections()
sage: latex(s0*s1) # indirect doctest
s_{0}s_{1}

to obtain proper latex output for Weyl groups with prefix.

Attachments (1)

trac_13955-latex_output_for_weyl_group_elements-cs.patch (1.5 KB) - added by stumpc5 9 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by stumpc5

  • Authors set to Christian Stump
  • Status changed from new to needs_review

comment:2 Changed 9 years ago by stumpc5

  • Cc chapoton added

comment:3 follow-up: Changed 9 years ago by chapoton

Maybe write that without a for, something like that ?

sage: "".join(["s_{%d}"%k for k in range(6)])
's_{0}s_{1}s_{2}s_{3}s_{4}s_{5}'

comment:4 in reply to: ↑ 3 Changed 9 years ago by stumpc5

Replying to chapoton:

Maybe write that without a for, something like that ?

sage: "".join(["s_{%d}"%k for k in range(6)])
's_{0}s_{1}s_{2}s_{3}s_{4}s_{5}'

thanks, fixed...

comment:5 follow-up: Changed 9 years ago by chapoton

  • Status changed from needs_review to positive_review

ok for me, and the bot is happy. Positive review

comment:6 in reply to: ↑ 5 Changed 9 years ago by stumpc5

Replying to chapoton:

ok for me, and the bot is happy. Positive review

thanks!

comment:7 Changed 9 years ago by jdemeyer

  • Reviewers set to Frédéric Chapoton

comment:8 Changed 9 years ago by jdemeyer

  • Merged in set to sage-5.7.beta1
  • Resolution set to fixed
  • Status changed from positive_review to closed
  • Summary changed from Latex output for Weyl group elements with prefix to LaTeX output for Weyl group elements with prefix
Note: See TracTickets for help on using tickets.