Opened 7 years ago

Last modified 2 years ago

#19657 closed defect

latex names — at Version 1

Reported by: Francis Clarke Owned by:
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: number fields Keywords: latex_name
Cc: Travis Scrimshaw, gh-kliem Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Francis Clarke)

As pointed out in http://ask.sagemath.org/question/31223, there are various problems with defining latex_name for the generators of number fields. For example

sage: K.<a> = NumberField(x^3 - 5, latex_name='alpha')
sage: latex(a), K.latex_variable_name()
(alpha, 'alpha')
sage: y = polygen(K, 'y')
sage: L.<b> = K.extension(y^3 + a - 1, latex_name='beta')
sage: latex(b), L.latex_variable_name()
(b, 'beta')
sage: M.<c> = NumberField(y^3 + a - 1, latex_name='gamma')
sage: latex(c), M.latex_variable_name()
(c, 'c')

Also

sage: E.<rho> = NumberField(x^3 - 5)
sage: latex(rho), E.latex_variable_name()
(\rho, '\\rho')
sage: F.<rho> = NumberField(x^3 - 5, latex_name='rho')
sage: latex(rho), F.latex_variable_name()
(rho, 'rho')
sage: G.<rho> = NumberField(x^3 - 5, latex_name='sigma')
sage: latex(rho), G.latex_variable_name()
(sigma, 'sigma')

All these inconsistencies need ironing out.

Change History (1)

comment:1 Changed 7 years ago by Francis Clarke

Component: PLEASE CHANGEnumber fields
Description: modified (diff)
Keywords: latex_name added
Type: PLEASE CHANGEdefect
Note: See TracTickets for help on using tickets.