Opened 11 years ago

Closed 11 years ago

#8083 closed enhancement (fixed)

fix accents in LaTeX output

Reported by: robert.marik Owned by: was
Priority: major Milestone: sage-4.3.2
Component: notebook Keywords: latex
Cc: Merged in: sage-4.3.2.alpha1
Authors: Robert Mařík Reviewers: John Palmieri
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


Accented letters produced in notebook by command like this


produce letters composed from two objects - letter and accent - and this does not look good in some cases, especially the letter ď. The solution is to use correct fonts in LaTeX.

Attachments (2)

latex_T1_fonts.patch (1.0 KB) - added by robert.marik 11 years ago.
trac_8083-experimental.patch (1.7 KB) - added by jhpalmieri 11 years ago.
do not merge: for illustration and testing only

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by robert.marik

comment:1 Changed 11 years ago by robert.marik

  • Status changed from new to needs_review

comment:2 Changed 11 years ago by jhpalmieri

  • Reviewers set to John Palmieri
  • Status changed from needs_review to positive_review

Works as advertised in the notebook. Note that executing

sage: view(s = u"ěščřžýáíéďĎ")

from the command line doesn't work at all, and I can't figure out how to fix it. I can get it not to throw an error -- see the experimental patch. I think that the command to write the LaTeX file (in the definition of the view function) should be something like, mode='w', encoding='utf_8').write(s)

but this garbles the string s. Anyway, this belongs on another ticket.

Changed 11 years ago by jhpalmieri

do not merge: for illustration and testing only

comment:3 Changed 11 years ago by mpatel

Out of curiosity: Do other font encodings ever conflict with T1? Other alphabets may require a different one, e.g., for

Теория чисел

one can use


comment:4 Changed 11 years ago by mvngu

  • Merged in set to sage-4.3.2.alpha1
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.