|
18 | 18 |
|
19 | 19 | The fonts \cal, \rm, \it, and \tt are allowed. |
20 | 20 |
|
| 21 | + The following accents are provided: \hat, \breve, \grave, \bar, |
| 22 | + \acute, \tilde, \vec, \dot, \ddot. All of them have the same |
| 23 | + syntax, eg to make an overbar you do \bar{o} or to make an o umlaut |
| 24 | + you do \ddot{o}. |
| 25 | +
|
21 | 26 | The spacing elements \ , \/ and \hspace{num} are provided. \/ |
22 | 27 | inserts a small space, and \hspace{num} inserts a fraction of the |
23 | 28 | current fontsize. Eg, if num=0.5 and the fontsize is 12.0, |
24 | 29 | hspace{0.5} inserts 6 points of space |
25 | 30 |
|
| 31 | +
|
26 | 32 | |
27 | 33 | If you find TeX expressions that don't parse or render properly, |
28 | 34 | please email me, but please check KNOWN ISSUES below first. |
@@ -484,7 +490,7 @@ def set_origin(self, ox, oy): |
484 | 490 |
|
485 | 491 | if loc=='above': |
486 | 492 | nx = self.centerx() - element.width()/2.0 |
487 | | - ny = self.ymax() + self.pady() |
| 493 | + ny = self.ymax() + self.pady() - element.ymax() + element.oy + element.height() |
488 | 494 | #print element, self.ymax(), element.height(), element.ymax(), element.ymin(), ny |
489 | 495 | elif loc=='below': |
490 | 496 | nx = self.centerx() - element.width()/2.0 |
@@ -789,9 +795,15 @@ def accent(self, s, loc, toks): |
789 | 795 | accent, sym = toks[0] |
790 | 796 |
|
791 | 797 | d = { |
792 | | - r'\hat' : r'\circumflexaccent', |
793 | | - r'\breve' : r'\combiningbreve', |
794 | | - r'\bar' : r'\combiningoverline', |
| 798 | + r'\hat' : r'\circumflexaccent', |
| 799 | + r'\breve' : r'\combiningbreve', |
| 800 | + r'\bar' : r'\combiningoverline', |
| 801 | + r'\grave' : r'\combininggraveaccent', |
| 802 | + r'\acute' : r'\combiningacuteaccent', |
| 803 | + r'\ddot' : r'\combiningdiaeresis', |
| 804 | + r'\tilde' : r'\combiningtilde', |
| 805 | + r'\dot' : r'\combiningdotabove', |
| 806 | + r'\vec' : r'\combiningrightarrowabove', |
795 | 807 | } |
796 | 808 | above = SymbolElement(d[accent]) |
797 | 809 | sym.neighbors['above'] = above |
|
0 commit comments