sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.47k stars 486 forks source link

Unicode in LaTeX #6417

Closed 33ed3c44-b956-4a42-9afa-d42f0b0b8ca6 closed 15 years ago

33ed3c44-b956-4a42-9afa-d42f0b0b8ca6 commented 15 years ago

In a %latex cell I couldn't use any accentuated letter. I had to write \"o to get ö.

Using this patch I can write unicode characters directly. For example Hungarian chars:

http://www.math.bme.hu/~morap/sage_unicode_latex.png

This feature is important because most of the world uses more than the first 128 characters of ANSII.

Component: misc

Keywords: unicode LaTeX

Author: Peter Mora

Reviewer: John Palmieri

Merged: sage-4.1.rc0

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

33ed3c44-b956-4a42-9afa-d42f0b0b8ca6 commented 15 years ago
comment:1

Attachment: 12538.patch.gz

jhpalmieri commented 15 years ago
comment:2

Looks good to me except that it doesn't pass doctests. Apply the patch at #6434 and you're good to go.

So this patch depends on #6434; modulo that, positive review.

89c6e537-b2e3-45e6-882d-d4957b74ffe5 commented 15 years ago
comment:3

sage -t "devel/sage-main/sage/misc/latex.py" fails after applying this patch.

jhpalmieri commented 15 years ago
comment:4

sage -t "devel/sage-main/sage/misc/latex.py" fails after applying this patch.

As my comment says, doctests don't pass until you apply the patch at #6434. Once #6434 gets in, this one is ready to go. Is there some way to label this besides "positive review" to indicate this?

89c6e537-b2e3-45e6-882d-d4957b74ffe5 commented 15 years ago
comment:5

Replying to @jhpalmieri:

sage -t "devel/sage-main/sage/misc/latex.py" fails after applying this patch.

As my comment says, doctests don't pass until you apply the patch at #6434.

My bad, wasn't paying enough attention.

89c6e537-b2e3-45e6-882d-d4957b74ffe5 commented 15 years ago

Merged: sage-4.1.rc0

89c6e537-b2e3-45e6-882d-d4957b74ffe5 commented 15 years ago

Reviewer: John Palmieri

89c6e537-b2e3-45e6-882d-d4957b74ffe5 commented 15 years ago

Author: Peter Mora

7c09a680-e216-4024-bb8e-9bfd4aa7f313 commented 15 years ago
comment:7

See #6464 for a related issue. It concerns Unicode in Notebook worksheets.