summaryrefslogtreecommitdiff
path: root/pancake.el
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-11-21 11:33:40 +0300
committerdefanor <defanor@uberspace.net>2017-11-21 11:33:40 +0300
commit6e76e630cf28d46d3f118687c6d5ba959b12de28 (patch)
tree70b7dd06a5f4e0dd4e3914752a87f6861229ba68 /pancake.el
parent4c6d0ed3f7cfaf969ad110ab158216db86f2008f (diff)
Restore ^{} for superscripts and similar text bits in Emacs
Superscripts and subscripts, as they were rendered, shorten lines in GUI Emacs, breaking tables if those contained subscripts or superscripts. In terminal Emacs, they were just indistinguishable from regular text. And there was a minor hack for these. Mostly undoing that (for strikethrough as well), though leaving slight raising.
Diffstat (limited to 'pancake.el')
-rw-r--r--pancake.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/pancake.el b/pancake.el
index 341d74f..b56e417 100644
--- a/pancake.el
+++ b/pancake.el
@@ -195,11 +195,10 @@
(add-face-text-property start (point) face t))
(`(subscript . ,rest)
(pancake-print-line rest)
- (add-text-properties start (point) '(display (height 0.75))))
+ (add-text-properties start (point) '(display (raise -0.2))))
(`(superscript . ,rest)
(pancake-print-line rest)
- (add-text-properties start (point) '(display ((raise 0.25)
- (height 0.75)))))
+ (add-text-properties start (point) '(display (raise 0.2))))
(`(denotation (math . ,formula) . ,rest)
(pancake-print-line rest))
(`(denotation (link . ,uri) . ,rest)