Skip to content
New issue

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.

Already on GitHub? Sign in to your account

latex names #19657

Closed
sagetrac-fwclarke mannequin opened this issue Dec 1, 2015 · 27 comments
Closed

latex names #19657

sagetrac-fwclarke mannequin opened this issue Dec 1, 2015 · 27 comments

Comments

@sagetrac-fwclarke
Copy link
Mannequin

sagetrac-fwclarke mannequin commented Dec 1, 2015

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')

These, and some other, inconsistencies need ironing out.

Depends on #30372

CC: @tscrim @kliem

Component: number fields

Keywords: latex_name

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/19657

@sagetrac-fwclarke sagetrac-fwclarke mannequin added this to the sage-6.10 milestone Dec 1, 2015
@sagetrac-fwclarke sagetrac-fwclarke mannequin added the p: major / 3 label Dec 1, 2015
@sagetrac-fwclarke

This comment has been minimized.

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented Dec 1, 2015

Changed keywords from none to latex_name

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented Dec 2, 2015

Branch: u/fwclarke/latex_names

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 2, 2015

Commit: 65fb4a2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 2, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

65fb4a2fix NumberFieldFactory

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented Dec 2, 2015

comment:4

First we ensure that NumberFieldFactory passes latex_name on in every case. Now

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

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 3, 2015

Changed commit from 65fb4a2 to 807b378

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 3, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

807b378fix latex_name for variable fields and latex_variable_names

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented Dec 3, 2015

comment:6

Now require that the extension method passes on latex_name, that the NumberField_generic class defines the _latex_names attribute so that the latex_variable_names method works as it should, and similarly that the NumberField_relative class defines that attribute appropriately. This gives

sage: K.<a> = NumberField(x^3 - 6, latex_name='alpha')
sage: K.latex_variable_names()
['alpha']
sage: L.<b> = K.extension(x^2 - 5, latex_name='beta')
sage: L.latex_variable_names()
['beta', 'alpha']

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 6, 2015

Changed commit from 807b378 to 71bfd96

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 6, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

71bfd96adjust _latex for elements of relative number fields

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 7, 2015

Changed commit from 71bfd96 to f0abaf3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 7, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

f0abaf3Treat latex_names in a similar manner to names

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 8, 2015

Changed commit from f0abaf3 to 794f6bb

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 8, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

794f6bbdoctests

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented Dec 8, 2015

Author: Francis Clarke

@sagetrac-fwclarke

This comment has been minimized.

@rwst
Copy link
Contributor

rwst commented Aug 22, 2016

Work Issues: merge conflict

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 17, 2020

comment:12

See also #30372 - Replace NumberField_generic.__latex_variable_name by ._latex_names

@mkoeppe mkoeppe modified the milestones: sage-6.10, sage-9.2 Aug 17, 2020
@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 17, 2020

Changed work issues from merge conflict to merge with #30372

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 17, 2020

Dependencies: #30372

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 17, 2020

comment:14

I have taken some of the commits here and merged/reworked them in #30360, where I did similar work.
This ticket can be closed.

@mkoeppe mkoeppe removed this from the sage-9.2 milestone Aug 17, 2020
@tscrim
Copy link
Collaborator

tscrim commented Aug 17, 2020

Changed work issues from merge with #30372 to none

@tscrim
Copy link
Collaborator

tscrim commented Aug 17, 2020

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Aug 17, 2020

Changed author from Francis Clarke to none

@slel
Copy link
Member

slel commented Oct 11, 2020

Changed commit from 794f6bb to none

@slel
Copy link
Member

slel commented Oct 11, 2020

Changed branch from u/fwclarke/latex_names to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants