From d20d3a5dbbb1bb1e6b6de5fc3d9c65bf844dcb56 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 23 Mar 2017 12:59:19 +0100 Subject: Ms writer: Super/subscript support. Also added some macro definitions to default template to support subscripts + better superscripts. --- data/templates/default.ms | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'data') diff --git a/data/templates/default.ms b/data/templates/default.ms index 7ca8a8e75..12f82cd55 100644 --- a/data/templates/default.ms +++ b/data/templates/default.ms @@ -11,6 +11,16 @@ $if(has-inline-math)$ delim || .EN $endif$ +\" From https://lists.gnu.org/archive/html/groff/2012-07/msg00046.html +\" Superscripts (ex tmac.e) (current versions without extra line space) +.\" (reinstate commented versions to restore extra line space) +.\" .ds { \v'-0.3m'\x'-0.2m'\\s[\\n[.s]*8u/10u] +.ds { \v'-0.3m'\\s[\\n[.s]*9u/12u] +.ds } \s0\v'0.3m' +.\" Subscripts +.\" .ds < \v'0.3m'\x'0.2m'\s[\\n[.s]*8u/10u] +.ds < \v'0.3m'\s[\\n[.s]*9u/12u] +.ds > \s0\v'-0.3m' $if(title)$ .TL $title$ -- cgit v1.2.3