ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Issue with latest in math mode
       [not found] <54d841eb-b253-41bb-a3a9-233f53272713@Spark>
@ 2024-06-02 12:08 ` Alex
  2024-06-02 12:38   ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Alex @ 2024-06-02 12:08 UTC (permalink / raw)
  To: Hans Hagen via ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 320 bytes --]

Hi everyone,

I’m facing an error with the latest LMTX with my custom font definition: Math error: parameter 'subshiftdown' with id 49 in style 0 is not set

\usetypescriptfile[alegreya_libertinus]
\setupbodyfont[alegreya-light,ss,10pt]

\starttext

Hello

\startformula \Gamma_1 \stopformula

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 572 bytes --]

[-- Attachment #2: libertinus-with-alegreya-math.lfg --]
[-- Type: application/octet-stream, Size: 10339 bytes --]


local common  = fonts.goodies.load("common-math.lfg")
local presets = common.mathematics.tweaks.presets

return {
    name = "libertinus-with-alegreya-math",
    version = "1.00",
    comment = "Goodies that complement libertinus.",
    author = "Hans Hagen & Mikael Sundqvist",
    copyright = "ConTeXt development team",
    mathematics = {
        parameters = {
            FractionRuleThickness          =   50,
            OverbarRuleThickness           =   50,
            UnderbarRuleThickness          =   50,
            AccentTopShiftUp               =  -35,
            FlattenedAccentTopShiftUp      =  -35,
            AccentBaseDepth                =   10,
            DelimiterPercent               =   85,
            DelimiterShortfall             =  400,
            DelimiterDisplayPercent        =   90,
            DelimiterDisplayShortfall      =  400,
            PrimeShiftUp                   = "1.2*SuperscriptShiftUp",
            PrimeShiftUpCramped            = "1.2*SuperscriptShiftUp",
            -- RadicalDisplayStyleVerticalGap    = "RadicalVerticalGap", --170, 90
            RadicalDisplayStyleVerticalGap = 50,-- 170
            RadicalVerticalGap             = 50,-- 90
        },
        tweaks = {
            aftercopying = {
                {
                    tweak    = "version",
                    expected = "Version 7.040",
                },
                {
                    tweak = "addmirrors",
                },
                -- At the moment we do fix integrals
                -- For this font this means that we do always
                -- get the extensible in displaystyle
                -- Disable fixintegrals if that is not wanted
                {
                    tweak = "fixintegrals",
                },
                presets.scripttocalligraphic { },
                presets.rsfstoscript         { rscale  = 0.97 },
                presets.rsfsuprighttoscript  { rscale  = 0.97 },
                presets.moderntocalligraphic { rscale  = 0.97 },
                presets.eulertocalligraphic  { rscale  = 0.97 },
                presets.xitsarabic           { rscale  = 0.85 },
                presets.fallbacks            { },
                presets.moveitalics          { correct = true },
                presets.moveitalics          { correct = true, letters = true },
                presets.moveintegrals        { factor = 1.5 },
                presets.wipeitalics          { },
                {
                    tweak = "checkaccents",
                },
                {
                    tweak = "simplifykerns",
                },
                {
                    tweak = "kerns",
                    list  = {
                        [0x002F]                = { topleft  = -0.15, bottomright = -0.15 },
                        ["0x7D.parts.top"]      = { topright = -0.2,                      }, -- right brace top
                        ["0x7D.parts.bottom"]   = {                   bottomright = -0.2  }, -- right brace bottom
                        ["0x29.parts.top"]      = { topright = -0.15,                     }, -- right parenthesis top
                        ["0x29.parts.bottom"]   = {                   bottomright = -0.15 }, -- right parenthesis bottom
                        ["0x29.variants.*"]     = { topright = -0.15, bottomright = -0.15 }, -- right parenthesis variants
                        ["0x221A.parts.top"]    = { topright =  0.2,                      }, -- right radical top
                        ["0x221A.parts.bottom"] = {                   bottomright =  0.2  }, -- right radical bottom
                        ["0x221A.variants.*"]   = { topright =  0.2,  bottomright =  0.2  }, -- right radical variants
                        [0x27E9]                = { topright = -0.1,  bottomright = -0.1  }, -- angle
                        ["0x27E9.variants.*"]   = { topright = -0.2,  bottomright = -0.2  },
                        [0x27EB]                = { topright = -0.1,  bottomright = -0.1  },
                        ["0x27EB.variants.*"]   = { topright = -0.2,  bottomright = -0.2  },
                        --
                        [0x00393] = { bottomright = -0.30, }, -- upright Gamma

                    },
                },
                -- Accents are a mess. We migrate the extensibles from the combiners to the base accent
                -- and then need to tweak the width (which is auto set because it was zero with a large
                -- accent anchor offset). First we copy and fix.
                {
                    tweak = "extendaccents",
                },
                {
                    tweak = "fixaccents",
                },
                {
                    tweak = "dimensions",
                    list  = {
                        [0x00060] = { yoffset = -0.075 },                    -- grave
                        [0x000B4] = { yoffset = -0.075 },                    -- acute
                        [0x002C6] = { yoffset = -0.075 },                    -- hat
                        [0x002DC] = { yoffset = -0.075 },                    -- tilde
                     -- [0x000AF] = { yoffset = -0.1 },                      -- bar
                        [0x002D8] = { yoffset = -0.075 },                    -- breve
                        [0x002D9] = { yoffset = -0.05 },                     -- dot
                        [0x000A8] = { yoffset = -0.02 },                     -- ddot
                        [0x020DB] = { yoffset = -0.02 },                     -- dddot
                        [0x002DA] = { yoffset = -0.1 },                      -- ring
                     -- [0x002C7] = { yoffset = -0.1 },                      -- check
                        [0x020D7] = { yoffset = -0.1 },                      -- vec

                        [0x00300] = { yoffset = -0.1,  all = true },         -- widegrave
                        [0x00301] = { yoffset = -0.1,  all = true },         -- wideacute
                        [0x00302] = { yoffset = -0.1,  all = true },         -- widehat
                        [0x00303] = { yoffset = -0.09, all = true },         -- widetilde
                     -- [0x00304] = { yoffset = -0.12, all = true },         -- widebar
                        [0x00306] = { yoffset = -0.05, all = true },         -- widebreve
                        [0x00307] = { yoffset = -0.02, all = true },         -- widedot
                        [0x00308] = { yoffset = -0.02, all = true },         -- wideddot
                     -- [0x020DB] = { yoffset = -0.1,  all = true },         -- widedddot
                        [0x0030A] = { yoffset = -0.12, all = true },         -- widering
                        [0x0030C] = { yoffset = -0.04, all = true },         -- widecheck

                     -- [0x1D44F] = { width = 1, italic = 0, anchor = 1.5 }, -- b (6.8)
                     -- [0x1D451] = { width = 1, italic = 0, anchor = 1.2 }, -- d (6.8)
                     [0x1D453] = { width = 2.1, xoffset = 0.5, italic = 0, anchor = 1.5 }, -- f (6.8)
                     -- [0x0210E] = { width = 1, italic = 0, anchor = 1.5 }, -- h (6.8)
                     -- [0x1D458] = { width = 1, italic = 0, anchor = 1.5 }, -- k (6.8)
                    },
                },
                {
                    tweak = "copyaccents",
                },
                -- So far for the accents.
                {
                    tweak   = "radicaldegreeanchors",
                    list = {
                        [0x221A]                = { location = "left", hfactor  = .0, vfactor  = .625 },
                        ["0x221A.variants.*"]   = { location = "left", hfactor  = .0, vfactor  = .5 },
                        ["0x221A.variants.1"]   = { location = "left", hfactor  = .0, vfactor  = .55 },
                        ["0x221A.parts.bottom"] = { location = "left", hfactor  = .0, vfactor  = 1.15 },
                    }
                },
                {
                    tweak   = "fixprimes",
                    scale   = 1.5,
                 -- smaller = true,
                    factor  = 0.9,
                    fake    = 0.8,
                },
                {
                    tweak = "checkspacing",
                },
                {
                    tweak = "addscripts",
                },
                {
                    tweak = "accentdimensions",
                },
                {
                    tweak = "addrules",
                },
                {
                    tweak   = "addbars",
                    advance = 0.5,
                },
                {
                    tweak    = "replacerules",
                    minus    = {
                        height      = .176,
                        yoffset     = .825,
                        leftoffset  = .065,
                        rightoffset = .065,
                    },
                    fraction = {
                        height  = .176,
                        yoffset = .825,
                    },
                    radical  = {
                        height     = .140,
                        yoffset    = .800,
                        leftoffset = .075,
                        yscale     = .950,
                    },
                    stacker  = {
                        height  = .176,
                        yoffset = .825,
                    },
                },
                {
                    tweak = "addactuarian",
                },
                {
                    tweak = "addequals",
                },
                {
                    tweak = "addfourier",
                    variant = 1,
                },
                {
                    tweak = "addprimed",
                },
                {
                    -- needed for integrals (bad axis) and (less prominent) fences
                    tweak = "setoptions",
                    set   = { "ignorekerndimensions" }
                },
                -- this is the mkiv section
                {
                    tweak   = "emulatelmtx",
                    feature = "emulatelmtx",
                    comment = "this is for mkiv",
                },
            },
        },
        bigslots = {
            1, 3, 5, 7
        },
    },
}

[-- Attachment #3: type-imp-alegreya_libertinus.mkiv --]
[-- Type: application/octet-stream, Size: 12574 bytes --]

\starttypescriptcollection [alegreya_libertinus]

\usetypescriptfile[libertinus]
\loadfontgoodies[libertinus-with-alegreya-math]

\definefontfeature[alefeatures][
  mode=node,
  liga=yes,
  kern=yes,
  tlig=yes,
  ccmp=yes,
  language=dflt,
  protrusion=quality,
  expansion=quality
]

\starttypescript [sans] [alegreya,alegreya-light,alegreya-medium]
  \definefontsynonym[AlegreyaSans-Thin]             [file:AlegreyaSans-Thin]
  \definefontsynonym[AlegreyaSans-ThinItalic]       [file:AlegreyaSans-ThinItalic]
  \definefontsynonym[AlegreyaSans-ThinCaps]         [file:AlegreyaSansSC-Thin]
  \definefontsynonym[AlegreyaSans-ThinItalicCaps]   [file:AlegreyaSansSC-ThinItalic]
  \definefontsynonym[AlegreyaSans-Light]            [file:AlegreyaSans-Light]
  \definefontsynonym[AlegreyaSans-LightItalic]      [file:AlegreyaSans-LightItalic]
  \definefontsynonym[AlegreyaSans-LightCaps]        [file:AlegreyaSansSC-Light]
  \definefontsynonym[AlegreyaSans-LightItalicCaps]  [file:AlegreyaSansSC-LightItalic]
  \definefontsynonym[AlegreyaSans-Regular]          [file:AlegreyaSans-Regular]
  \definefontsynonym[AlegreyaSans-Italic]           [file:AlegreyaSans-Italic]
  \definefontsynonym[AlegreyaSans-Caps]             [file:AlegreyaSansSC-Regular]
  \definefontsynonym[AlegreyaSans-ItalicCaps]       [file:AlegreyaSansSC-Italic]
  \definefontsynonym[AlegreyaSans-Medium]           [file:AlegreyaSans-Medium]
  \definefontsynonym[AlegreyaSans-MediumItalic]     [file:AlegreyaSans-MediumItalic]
  \definefontsynonym[AlegreyaSans-MediumCaps]       [file:AlegreyaSansSC-Medium]
  \definefontsynonym[AlegreyaSans-MediumItalicCaps] [file:AlegreyaSansSC-MediumItalic]
  \definefontsynonym[AlegreyaSans-Bold]             [file:AlegreyaSans-Bold]
  \definefontsynonym[AlegreyaSans-BoldItalic]       [file:AlegreyaSans-BoldItalic]
  \definefontsynonym[AlegreyaSans-BoldCaps]         [file:AlegreyaSansSC-Bold]
  \definefontsynonym[AlegreyaSans-BoldItalicCaps]   [file:AlegreyaSansSC-BoldItalic]
  \definefontsynonym[AlegreyaSans-ExtraBold]        [file:AlegreyaSans-ExtraBold]
  \definefontsynonym[AlegreyaSans-ExtraBoldItalic]  [file:AlegreyaSans-ExtraBoldItalic]
  \definefontsynonym[AlegreyaSans-ExtraBoldCaps]    [file:AlegreyaSansSC-ExtraBold]
  \definefontsynonym[AlegreyaSans-ExtraBoldItalicCaps][file:AlegreyaSansSC-ExtraBoldItalic]
  \definefontsynonym[AlegreyaSans-Black]             [file:AlegreyaSans-Black]
  \definefontsynonym[AlegreyaSans-BlackItalic]       [file:AlegreyaSans-BlackItalic]
  \definefontsynonym[AlegreyaSans-BlackCaps]         [file:AlegreyaSansSC-Black]
  \definefontsynonym[AlegreyaSans-BlackItalicCaps]   [file:AlegreyaSansSC-BlackItalic]
\stoptypescript

\starttypescript [serif] [alegreya]
  \definefontsynonym[AlegreyaSerif-Regular]         [file:Alegreya-Regular]
  \definefontsynonym[AlegreyaSerif-Italic]          [file:Alegreya-Italic]
  \definefontsynonym[AlegreyaSerif-Caps]            [file:AlegreyaSC-Regular]
  \definefontsynonym[AlegreyaSerif-Bold]            [file:Alegreya-Bold]
  \definefontsynonym[AlegreyaSerif-BoldItalic]      [file:Alegreya-BoldItalic]
  \definefontsynonym[AlegreyaSerif-BoldCaps]        [file:AlegreyaSC-Bold]
  \definefontsynonym[AlegreyaSerif-Black]           [file:Alegreya-Black]
  \definefontsynonym[AlegreyaSerif-BlackItalic]     [file:Alegreya-BlackItalic]
  \definefontsynonym[AlegreyaSerif-BlackCaps]       [file:AlegreyaSC-Black]
\stoptypescript

\starttypescript [sans] [alegreya,alegreya-light,alegreya-medium] [name]
  \definefontsynonym [Sans]           [AlegreyaSans-Regular]     [features=alefeatures]
  \definefontsynonym [SansItalic]     [AlegreyaSans-Italic]      [features=alefeatures]
  \definefontsynonym [SansSlanted]    [AlegreyaSans-Italic]      [features=alefeatures]
  \definefontsynonym [SansBold]       [AlegreyaSans-Bold]        [features=alefeatures]
  \definefontsynonym [SansBoldItalic] [AlegreyaSans-BoldItalic]  [features=alefeatures]
  \definefontsynonym [SansBoldSlanted][AlegreyaSans-BoldItalic]  [features=alefeatures]
  \definefontsynonym [SansCaps]       [AlegreyaSans-Caps]        [features=alefeatures]
  \definefontsynonym [SansThin]         [AlegreyaSans-Thin]      [features=alefeatures]
  \definefontsynonym [SansThinItalic]   [AlegreyaSans-ThinItalic][features=alefeatures]
  \definefontsynonym [SansThinSlanted]  [AlegreyaSans-ThinItalic][features=alefeatures]
  \definefontsynonym [SansThinCaps]     [AlegreyaSans-ThinCaps]  [features=alefeatures]
  \definefontsynonym [SansLight]        [AlegreyaSans-Light]     [features=alefeatures]
  \definefontsynonym [SansLightItalic]  [AlegreyaSans-LightItalic][features=alefeatures]
  \definefontsynonym [SansLightSlanted] [AlegreyaSans-LightItalic][features=alefeatures]
  \definefontsynonym [SansLightCaps]    [AlegreyaSans-LightCaps]  [features=alefeatures]
  \definefontsynonym [SansMedium]       [AlegreyaSans-Medium]     [features=alefeatures]
  \definefontsynonym [SansMediumItalic] [AlegreyaSans-MediumItalic][features=alefeatures]
  \definefontsynonym [SansMediumSlanted][AlegreyaSans-MediumItalic][features=alefeatures]
\stoptypescript

\starttypescript [sans] [alegreya-light] [name]
  \definefontsynonym [Sans]           [AlegreyaSans-Light]         [features=alefeatures]
  \definefontsynonym [SansItalic]     [AlegreyaSans-LightItalic]   [features=alefeatures]
  \definefontsynonym [SansSlanted]    [AlegreyaSans-LightItalic]   [features=alefeatures]
  \definefontsynonym [SansCaps]       [AlegreyaSans-LightCaps]     [features=alefeatures]
  \definefontsynonym [SansBold]       [AlegreyaSans-Medium]        [features=alefeatures]
  \definefontsynonym [SansBoldItalic] [AlegreyaSans-MediumItalic]  [features=alefeatures]
  \definefontsynonym [SansBoldSlanted][AlegreyaSans-MediumItalic]  [features=alefeatures]
\stoptypescript

\starttypescript [sans] [alegreya-medium] [name]
  \definefontsynonym [Sans]           [AlegreyaSans-Medium]         [features=alefeatures]
  \definefontsynonym [SansItalic]     [AlegreyaSans-MediumItalic]   [features=alefeatures]
  \definefontsynonym [SansSlanted]    [AlegreyaSans-MediumItalic]   [features=alefeatures]
  \definefontsynonym [SansCaps]       [AlegreyaSans-MediumCaps]     [features=alefeatures]
  \definefontsynonym [SansBold]       [AlegreyaSans-ExtraBold]        [features=alefeatures]
  \definefontsynonym [SansBoldItalic] [AlegreyaSans-ExtraBoldItalic]  [features=alefeatures]
  \definefontsynonym [SansBoldSlanted][AlegreyaSans-ExtraBoldItalic]  [features=alefeatures]
\stoptypescript

\starttypescript [serif] [alegreya] [name]
  \definefontsynonym [Serif]           [AlegreyaSerif-Regular]     [features=alefeatures]
  \definefontsynonym [SerifItalic]     [AlegreyaSerif-Italic]      [features=alefeatures]
  \definefontsynonym [SerifSlanted]    [AlegreyaSerif-Italic]      [features=alefeatures]
  \definefontsynonym [SerifBold]       [AlegreyaSerif-Bold]        [features=alefeatures]
  \definefontsynonym [SerifBoldItalic] [AlegreyaSerif-BoldItalic]  [features=alefeatures]
  \definefontsynonym [SerifBoldSlanted][AlegreyaSerif-BoldItalic]  [features=alefeatures]
  \definefontsynonym [SerifCaps]       [AlegreyaSerif-Caps]        [features=alefeatures]
\stoptypescript

\starttypescript [mono] [overpass]
  \definefontsynonym[OverpassMono-Regular]     [file:overpass-mono-regular]
  \definefontsynonym[OverpassMono-Light]       [file:overpass-mono-light]
\stoptypescript

\starttypescript [mono] [overpass]  [name]
  \definefontsynonym [Mono]           [OverpassMono-Regular]     [features=]
\stoptypescript

\starttypescript [mono] [overpass-light]  [name]
  \definefontsynonym [Mono]           [OverpassMono-Light]     [features=]
\stoptypescript

\starttypescript [alegreya]
  \definetypeface [alegreya] [rm] [serif] [alegreya] [default]
  \definetypeface [alegreya] [ss] [sans]  [alegreya]  [default]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercaseitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercaseitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercasenormal,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercasenormal,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercasegreekitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercasegreekitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercasegreeknormal,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercasegreeknormal,force=yes]
  \definefontfeature[inlinemath][lnum=yes,pnum=yes]
  \definefallbackfamily [alegreya] [math] [Alegreya]
    [preset=math:digitsnormal,features=inlinemath,force=yes]
  \definefallbackfamily [alegreya] [math] [Alegreya]
    [preset=math:digitsbold,features=inlinemath,force=yes]
  \definefallbackfamily [alegreya] [math] [Alegreya]
    [range=superscriptsandsubscripts,force=yes]
  \definefontfamily [alegreya] [math] [LibertinusMath] [goodies=libertinus-with-alegreya-math.lfg]
  \definefontfamily [alegreya] [tt] [overpass] [scale=0.9]
\stoptypescript

\starttypescript [alegreya-light]
  \definetypeface [alegreya-light] [rm] [serif] [alegreya] [default]
  \definetypeface [alegreya-light] [ss] [sans]  [alegreya-light]  [default]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:lowercaseitalic,force=yes]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:uppercaseitalic,force=yes]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:lowercasenormal,force=yes]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:uppercasenormal,force=yes]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:lowercasegreekitalic,force=yes]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:uppercasegreekitalic,force=yes]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:lowercasegreeknormal,force=yes]
  \definefallbackfamily
       [alegreya-light] [math] [Alegreya]
       [preset=math:uppercasegreeknormal,force=yes]
  \definefontfeature[inlinemath][lnum=yes,pnum=yes]
  \definefallbackfamily [alegreya-light] [math] [Alegreya]
    [preset=math:digitsnormal,features=inlinemath,force=yes]
  \definefallbackfamily [alegreya-light] [math] [Alegreya]
    [preset=math:digitsbold,features=inlinemath,force=yes]
  \definefallbackfamily [alegreya-light] [math] [Alegreya]
    [range=superscriptsandsubscripts,force=yes]
  \definefontfamily [alegreya-light] [math] [LibertinusMath] [goodies=libertinus-with-alegreya-math.lfg]
  \definefontfamily [alegreya-light] [tt] [overpass-light] [scale=0.9]
\stoptypescript

\starttypescript [alegreya-medium]
  \definetypeface [alegreya] [rm] [serif] [alegreya] [default]
  \definetypeface [alegreya] [ss] [sans]  [alegreya-medium]  [default]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercaseitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercaseitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercasenormal,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercasenormal,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercasegreekitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercasegreekitalic,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:lowercasegreeknormal,force=yes]
  \definefallbackfamily
       [alegreya] [math] [Alegreya]
       [preset=math:uppercasegreeknormal,force=yes]
  \definefontfeature[inlinemath][lnum=yes,pnum=yes]
  \definefallbackfamily [alegreya] [math] [Alegreya]
    [preset=math:digitsnormal,features=inlinemath,force=yes]
  \definefallbackfamily [alegreya] [math] [Alegreya]
    [preset=math:digitsbold,features=inlinemath,force=yes]
  \definefallbackfamily [alegreya] [math] [Alegreya]
    [range=superscriptsandsubscripts,force=yes]
  \definefontfamily [alegreya] [math] [LibertinusMath] [goodies=libertinus-with-alegreya-math.lfg]
  \definefontfamily [alegreya] [tt] [overpass] [scale=0.9]
\stoptypescript

\stoptypescriptcollection

[-- Attachment #4: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: Issue with latest in math mode
  2024-06-02 12:08 ` [NTG-context] Issue with latest in math mode Alex
@ 2024-06-02 12:38   ` Wolfgang Schuster
  2024-06-02 12:43     ` Alex
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2024-06-02 12:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Alex

Alex schrieb am 02.06.2024 um 14:08:
> Hi everyone,
>
> I’m facing an error with the latest LMTX with my custom font 
> definition: Math error: parameter 'subshiftdown' with id 49 in style 0 
> is not set
>
> \usetypescriptfile[alegreya_libertinus]
> \setupbodyfont[alegreya-light,ss,10pt]
>
> \starttext
>
> Hello
>
> \startformula \Gamma_1 \stopformula
>
> \stoptext

Add

     features=math\mathsizesuffix

to \definefontfamily when you set the math font. By default all font 
(including monospace and math) get "features=default".

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: Issue with latest in math mode
  2024-06-02 12:38   ` [NTG-context] " Wolfgang Schuster
@ 2024-06-02 12:43     ` Alex
  2024-06-02 12:58       ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Alex @ 2024-06-02 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Wolfgang Schuster


[-- Attachment #1.1: Type: text/plain, Size: 837 bytes --]

Thank you so much Wolfgang, it solved it! I guess this is new as with LMTX from last week(s) it wasn’t required.
Le 2 juin 2024 à 14:38 +0200, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>, a écrit :
> Alex schrieb am 02.06.2024 um 14:08:
> > Hi everyone,
> >
> > I’m facing an error with the latest LMTX with my custom font
> > definition: Math error: parameter 'subshiftdown' with id 49 in style 0
> > is not set
> >
> > \usetypescriptfile[alegreya_libertinus]
> > \setupbodyfont[alegreya-light,ss,10pt]
> >
> > \starttext
> >
> > Hello
> >
> > \startformula \Gamma_1 \stopformula
> >
> > \stoptext
>
> Add
>
>     features=math\mathsizesuffix
>
> to \definefontfamily when you set the math font. By default all font
> (including monospace and math) get "features=default".
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 1350 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: Issue with latest in math mode
  2024-06-02 12:43     ` Alex
@ 2024-06-02 12:58       ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2024-06-02 12:58 UTC (permalink / raw)
  To: ntg-context

On 6/2/2024 2:43 PM, Alex wrote:
> Thank you so much Wolfgang, it solved it! I guess this is new as with 
> LMTX from last week(s) it wasn’t required.

you were just lucky that you got decent math at all (actually it 
probbaly also needs a proper lfg file)

in the latest lmts the default feature also wipes math stuff from the 
font just to make sure that it doesn't interfere (e.g. the latest dejavu 
has some math in the regular text fonts that makes no sense and might 
even be wrong); in a few case (as with euler) we explicitly now have to 
do wipemath=no

Hans

> Le 2 juin 2024 à 14:38 +0200, Wolfgang Schuster 
> <wolfgang.schuster.lists@gmail.com>, a écrit :
>> Alex schrieb am 02.06.2024 um 14:08:
>>> Hi everyone,
>>>
>>> I’m facing an error with the latest LMTX with my custom font
>>> definition: Math error: parameter 'subshiftdown' with id 49 in style 0
>>> is not set
>>>
>>> \usetypescriptfile[alegreya_libertinus]
>>> \setupbodyfont[alegreya-light,ss,10pt]
>>>
>>> \starttext
>>>
>>> Hello
>>>
>>> \startformula \Gamma_1 \stopformula
>>>
>>> \stoptext
>>
>> Add
>>
>>     features=math\mathsizesuffix
>>
>> to \definefontfamily when you set the math font. By default all font
>> (including monospace and math) get "features=default".
>>
>> Wolfgang
>>
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________

-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-02 12:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <54d841eb-b253-41bb-a3a9-233f53272713@Spark>
2024-06-02 12:08 ` [NTG-context] Issue with latest in math mode Alex
2024-06-02 12:38   ` [NTG-context] " Wolfgang Schuster
2024-06-02 12:43     ` Alex
2024-06-02 12:58       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).