# sympy/sympy

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

# LaTex printing of Cycle #10210

Closed
opened this Issue Dec 7, 2015 · 0 comments

Projects
None yet
2 participants
Member

### gxyd commented Dec 7, 2015

 Currently >>> from sympy.combinatorics.permutations import Cycle >>> latex(Cycle(1, 2)) '\\left \\{ 1 : 2, \\quad 2 : 1\\right \\}'  That's something of latex for dictionary(dict). The LaTex should give the latex representation of (1 2). i.e latex(Cycle(1, 2)) should return the latex representation of (1 2). In IPython Notebook >>> init_printing(use_unicode=True) >>> Cycle(1, 2) {0:0,1:2,2:1}  You can also see the discussion here on PR #10183 . Changes should be made to file printing/latex.py(mentioned by jksuom) This will be an "easy to fix" issue.

### gxyd pushed a commit to gxyd/sympy that referenced this issue Dec 15, 2015

 latx printing of Cycle, Permutation 
Now
>>> init_printing(use_unicode=True)
>>> Cycle(1, 2, 4)(5, 6)
(1 2 4)(5 6)
>>> latex(Cycle(1, 2, 4)(5, 6))
'\\left( 1\\, 2\\, 4\\right)\\left( 5\\, 6\\right)'

same printing for Permutation

fixes sympy#10210
 e54601e 

Merged

### gxyd pushed a commit to gxyd/sympy that referenced this issue Dec 15, 2015

 latex printing of Cycle, Permutation 
Now
>>> init_printing(use_unicode=True)
>>> Cycle(1, 2, 4)(5, 6)
(1 2 4)(5 6)
>>> latex(Cycle(1, 2, 4)(5, 6))
'\\left( 1\\, 2\\, 4\\right)\\left( 5\\, 6\\right)'

same printing for Permutation

fixes sympy#10210
 e4edde8 

### gxyd pushed a commit to gxyd/sympy that referenced this issue Dec 16, 2015

 latex printing of Cycle, Permutation 
Now
>>> init_printing(use_unicode=True)
>>> Cycle(1, 2, 4)(5, 6)
(1 2 4)(5 6)
>>> latex(Cycle(1, 2, 4)(5, 6))
'\\left( 1\\; 2\\; 4\\right)\\left( 5\\; 6\\right)'

same printing for Permutation
tests fixes

fixes sympy#10210
 09e3e79 

### skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 16, 2016

 latex printing of Cycle, Permutation 
Now
>>> init_printing(use_unicode=True)
>>> Cycle(1, 2, 4)(5, 6)
(1 2 4)(5 6)
>>> latex(Cycle(1, 2, 4)(5, 6))
'\\left( 1\\; 2\\; 4\\right)\\left( 5\\; 6\\right)'

same printing for Permutation
tests fixes

fixes sympy/sympy#10210

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
 4e57dfa 

### skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

 latex printing of Cycle, Permutation 
Now
>>> init_printing(use_unicode=True)
>>> Cycle(1, 2, 4)(5, 6)
(1 2 4)(5 6)
>>> latex(Cycle(1, 2, 4)(5, 6))
'\\left( 1\\; 2\\; 4\\right)\\left( 5\\; 6\\right)'

same printing for Permutation
tests fixes

fixes sympy/sympy#10210

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
 8c4a058 

### skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

 latex printing of Cycle, Permutation 
Now
>>> init_printing(use_unicode=True)
>>> Cycle(1, 2, 4)(5, 6)
(1 2 4)(5 6)
>>> latex(Cycle(1, 2, 4)(5, 6))
'\\left( 1\\; 2\\; 4\\right)\\left( 5\\; 6\\right)'

same printing for Permutation
tests fixes

fixes sympy/sympy#10210

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
 f8c5c7a 
to join this conversation on GitHub. Already have an account? Sign in to comment