summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/fonts/mkiv/antykwa-math.lfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/fonts/mkiv/antykwa-math.lfg')
-rw-r--r--Master/texmf-dist/tex/context/fonts/mkiv/antykwa-math.lfg174
1 files changed, 149 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/context/fonts/mkiv/antykwa-math.lfg b/Master/texmf-dist/tex/context/fonts/mkiv/antykwa-math.lfg
index 112a3f9a7a9..5bbd2cf6ce5 100644
--- a/Master/texmf-dist/tex/context/fonts/mkiv/antykwa-math.lfg
+++ b/Master/texmf-dist/tex/context/fonts/mkiv/antykwa-math.lfg
@@ -1,11 +1,115 @@
-local msam = { name = "msam10.tfm", vector = "tex-ma" }
-local msbm = { name = "msbm10.tfm", vector = "tex-mb" }
+local common = fonts.goodies.load("common-math-jmn.lfg")
+local helpers = common.mathematics.helpers
+
+if not fonts.encodings.math["extensible-jmn-private"] then
+
+ local nps = fonts.helpers.newprivateslot
+
+ fonts.encodings.math["extensible-jmn-private"] = {
+ [nps("rule middle piece")] = 200, -- minusjmn
+ [nps("rule right piece")] = 201, -- minusrightjmn
+ [nps("rule left piece")] = 202, -- minusleftjmn
+ [nps("double rule middle piece")] = 203, -- equaljmn
+ [nps("double rule right piece")] = 204, -- equalrightjmn
+ [nps("double rule left piece")] = 205, -- equalleftjmn
+ [nps("arrow left piece")] = 206, -- arrowleftjmn
+ [nps("arrow right piece")] = 207, -- arrowrightjmn
+ [nps("double arrow left piece")] = 208, -- arrowdblleftjmn
+ [nps("double arrow right piece")] = 209, -- arrowdblrightjmn
+ }
+
+end
+
+local fraction = .25
+
+local badones = {
+ summationtext = fraction,
+ producttext = fraction,
+ integraltext = fraction,
+ uniontext = fraction,
+ intersectiontext = fraction,
+ unionmultitext = fraction,
+ logicalandtext = fraction,
+ logicalortext = fraction,
+ summationdisplay = fraction,
+ productdisplay = fraction,
+ integraldisplay = fraction,
+ uniondisplay = fraction,
+ intersectiondisplay = fraction,
+ unionmultidisplay = fraction,
+ logicalanddisplay = fraction,
+ logicalordisplay = fraction,
+ coproducttext = fraction,
+ coproductdisplay = fraction,
+
+ braceleftBig = fraction,
+ braceleftBigg = fraction,
+ braceleftbig = fraction,
+ braceleftbigg = fraction,
+ parenleftBig = fraction,
+ parenleftBigg = fraction,
+ parenleftbig = fraction,
+ parenleftbigg = fraction,
+ bracketleftBig = fraction,
+ bracketleftBigg = fraction,
+ bracketleftbig = fraction,
+ bracketleftbigg = fraction,
+ ceilingleftBig = fraction,
+ ceilingleftBigg = fraction,
+ ceilingleftbig = fraction,
+ ceilingleftbigg = fraction,
+ floorleftBig = fraction,
+ floorleftBigg = fraction,
+ floorleftbig = fraction,
+ floorleftbigg = fraction,
+ anglebracketleftBig = fraction,
+ anglebracketleftBigg = fraction,
+ anglebracketleftbig = fraction,
+ anglebracketleftbigg = fraction,
+
+ bracerightBig = fraction,
+ bracerightBigg = fraction,
+ bracerightbig = fraction,
+ bracerightbigg = fraction,
+ parenrightBig = fraction,
+ parenrightBigg = fraction,
+ parenrightbig = fraction,
+ parenrightbigg = fraction,
+ bracketrightBig = fraction,
+ bracketrightBigg = fraction,
+ bracketrightbig = fraction,
+ bracketrightbigg = fraction,
+ ceilingrightBig = fraction,
+ ceilingrightBigg = fraction,
+ ceilingrightbig = fraction,
+ ceilingrightbigg = fraction,
+ floorrightBig = fraction,
+ floorrightBigg = fraction,
+ floorrightbig = fraction,
+ floorrightbigg = fraction,
+ anglebracketrightBig = fraction,
+ anglebracketrightBigg = fraction,
+ anglebracketrightbig = fraction,
+ anglebracketrightbigg = fraction,
+
+ backslashBig = fraction,
+ backslashBigg = fraction,
+ backslashbig = fraction,
+ backslashbigg = fraction,
+}
+
+local uglyones = {
+ braceleft = true,
+ braceright = true,
+ vextendsingle = true,
+ vextenddouble = true,
+}
return {
name = "antykwa-math",
version = "1.00",
comment = "Goodies that complement antykwa math.",
- author = "Hans, Mojca, Aditya",
+ author = "Hans, Mojca, Aditya, Mikael",
copyright = "ConTeXt development team",
mathematics = {
mapfiles = {
@@ -13,45 +117,65 @@ return {
"antt-mi.map",
"antt-sy.map",
"antt-ex.map",
- "mkiv-base.map",
+ -- "mkiv-base.map",
+ },
+ variables = {
+ notshiftfactor = 0.075,
},
virtuals = {
["antykwa-math"] = {
- { name = "file:AntykwaTorunska-Regular", features = "virtualmath", main = true },
+ { name = "file:LatinModern-Math", features = "virtualmath-antykwa", main = true, parameters = false },
+ --
+ { name = "rm-anttr.tfm", vector = "tex-mr", skewchar=0x7F },
{ name = "mi-anttri.tfm", vector = "tex-mi", skewchar=0x7F },
{ name = "mi-anttri.tfm", vector = "tex-it", skewchar=0x7F },
- { name = "sy-anttrz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } ,
- { name = "ex-anttr.tfm", vector = "tex-ex", extension = true } ,
- msam,
- msbm,
+ { name = "mi-anttbi.tfm", vector = "tex-bi", skewchar=0x7F },
+ { name = "rm-anttb.tfm", vector = "tex-bf", skewchar=0x7F },
+ { name = "sy-anttrz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true, ignore = uglyones }, -- jmn = true
+ { name = "sy-anttrz.tfm", vector = "extensible-jmn-private", skewchar=0x30 },
+ { name = "file:AntykwaTorunska-Regular", vector = "tex-ex-braces", backmap = false },
+ { name = "ex-anttr.tfm", vector = "tex-ex", extension = true, badones = badones, ignore = uglyones },
},
["antykwa-light-math"] = {
- { name = "file:AntykwaTorunskaLight-Regular", features = "virtualmath", main = true },
+ { name = "file:LatinModern-Math", features = "virtualmath-antykwa-light", main = true, parameters = false },
+ --
+ { name = "rm-anttl.tfm", vector = "tex-mr", skewchar=0x7F },
{ name = "mi-anttli.tfm", vector = "tex-mi", skewchar=0x7F },
{ name = "mi-anttli.tfm", vector = "tex-it", skewchar=0x7F },
- { name = "sy-anttlz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } ,
- { name = "ex-anttl.tfm", vector = "tex-ex", extension = true } ,
- msam,
- msbm,
+ { name = "mi-anttri.tfm", vector = "tex-bi", skewchar=0x7F },
+ { name = "rm-anttr.tfm", vector = "tex-bf", skewchar=0x7F },
+ { name = "sy-anttlz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true, ignore = uglyones }, -- jmn = true
+ { name = "sy-anttlz.tfm", vector = "extensible-jmn-private", skewchar=0x30 },
+ { name = "file:AntykwaTorunskaLight-Regular", vector = "tex-ex-braces", backmap = false },
+ { name = "ex-anttl.tfm", vector = "tex-ex", extension = true, badones = badones, ignore = uglyone },
},
["antykwa-cond-math"] = {
- { name = "file:AntykwaTorunskaCond-Regular", features = "virtualmath", main = true },
+ { name = "file:LatinModern-Math", features = "virtualmath-antykwa-cond", main = true, parameters = false },
+ --
+ { name = "rm-anttcr.tfm", vector = "tex-mr", skewchar=0x7F },
{ name = "mi-anttcri.tfm", vector = "tex-mi", skewchar=0x7F },
{ name = "mi-anttcri.tfm", vector = "tex-it", skewchar=0x7F },
- { name = "sy-anttcrz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } ,
- { name = "ex-anttcr.tfm", vector = "tex-ex", extension = true } ,
- msam,
- msbm,
+ { name = "mi-anttcbi.tfm", vector = "tex-bi", skewchar=0x7F },
+ { name = "rm-anttcb.tfm", vector = "tex-bf", skewchar=0x7F },
+ { name = "sy-anttcrz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true, ignore = uglyones }, -- jmn = true
+ { name = "sy-anttcrz.tfm", vector = "extensible-jmn-private", skewchar=0x30 },
+ { name = "file:AntykwaTorunskaCond-Regular", vector = "tex-ex-braces", backmap = false },
+ { name = "ex-anttcr.tfm", vector = "tex-ex", extension = true, badones = badones, ignore = uglyone },
},
["antykwa-lightcond-math"] = {
- { name = "file:AntykwaTorunskaCondLight-Regular", features = "virtualmath", main = true },
+ { name = "file:LatinModern-Math", features = "virtualmath-antykwa-lightcond", main = true, parameters = false },
+ --
+ { name = "rm-anttcl.tfm", vector = "tex-mr", skewchar=0x7F },
{ name = "mi-anttcli.tfm", vector = "tex-mi", skewchar=0x7F },
{ name = "mi-anttcli.tfm", vector = "tex-it", skewchar=0x7F },
- { name = "sy-anttclz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } ,
- { name = "ex-anttcl.tfm", vector = "tex-ex", extension = true } ,
- msam,
- msbm,
+ { name = "mi-anttcri.tfm", vector = "tex-bi", skewchar=0x7F },
+ { name = "rm-anttcr.tfm", vector = "tex-bf", skewchar=0x7F },
+ { name = "sy-anttclz.tfm", vector = "tex-sy", skewchar=0x30, parameters = true, ignore = uglyones }, -- jmn = true
+ { name = "sy-anttclz.tfm", vector = "extensible-jmn-private", skewchar=0x30 },
+ { name = "file:AntykwaTorunskaCondLight-Regular", vector = "tex-ex-braces", backmap = false },
+ { name = "ex-anttcl.tfm", vector = "tex-ex", extension = true, badones = badones, ignore = uglyone },
}
- }
+ },
+ addmissing = helpers.addmissing,
}
}