# HG changeset patch
# User Andrey Novoseltsev <novoselt@gmail.com>
# Date 1311352453 7200
# Node ID b21c8aaedd74336eaa6873477bdeaadf6db075d9
# Parent 16627cd96c572dc863ac1f3d9f735d2b6bec41a3
A test verifying that a LaTeX bug has been fixed for CyclotomicField.
diff r 16627cd96c57 r b21c8aaedd74 sage/rings/number_field/number_field.py
a

b


6837  6837  sage: latex(Z) # indirect doctest 
6838  6838  \Bold{Q}(\zeta_{4}) 
6839  6839  
6840   Latex printing respects the generator name. 
6841   
6842   :: 
 6840  Latex printing respects the generator name:: 
6843  6841  
6844  6842  sage: k.<a> = CyclotomicField(4) 
6845  6843  sage: latex(k) 
… 
… 

6848  6846  Cyclotomic Field of order 4 and degree 2 
6849  6847  sage: k.gen() 
6850  6848  a 
 6849  
 6850  TESTS: 
 6851  
 6852  We check that the bug reported on Trac #8938 is fixed:: 
 6853  
 6854  sage: C5.<z> = CyclotomicField(5) 
 6855  sage: P.<s, t> = C5[] 
 6856  sage: f = (z^2 + z)*s 
 6857  sage: f 
 6858  (z^2 + z)*s 
 6859  sage: latex(f) 
 6860  \left(z^{2} + z\right) s 
6851  6861  """ 
6852  6862  v = self.latex_variable_name() 
6853  6863  if v.startswith('\\zeta_'): 