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: |
Description
Accented letters produced in notebook by command like this
%latex ěščřžýáíéďĎ
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)
Change History (6)
Changed 11 years ago by
comment:1 Changed 11 years ago by
- Status changed from new to needs_review
comment:2 Changed 11 years ago by
- Reviewers set to John Palmieri
- Status changed from needs_review to positive_review
comment:3 Changed 11 years ago by
Out of curiosity: Do other font encodings ever conflict with T1
? Other alphabets may require a different one, e.g., for
%latex Теория чисел
one can use
sage.misc.latex.latex.extra_preamble('\\usepackage[T2A]{fontenc}')
comment:4 Changed 11 years ago by
- Merged in set to sage-4.3.2.alpha1
- Resolution set to fixed
- Status changed from positive_review to closed
Merged latex_T1_fonts.patch.
Note: See
TracTickets for help on using
tickets.
Works as advertised in the notebook. Note that executing
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 likebut this garbles the string s. Anyway, this belongs on another ticket.