Re: [NTG-context] \definemeasure / \dimexpr
Am 04.11.22 um 11:37 schrieb Henning Hraban Ramm via ntg-context: Am 03.11.22 um 22:43 schrieb Henning Hraban Ramm via ntg-context: Am 03.11.22 um 21:51 schrieb Hans Hagen via ntg-context: On 11/3/2022 9:32 PM, Henning Hraban Ramm via ntg-context wrote: I’m constantly struggling with dimension calculations. Is there anything I can read about the possibilities and limitations? e.g. with \definemeasure[PageWidth][132mm] none of the following works: \definemeasure[FlapWidth][0.8 * \measure{PageWidth}] use \measured (with a "d" to get a dimension) Only in expressions like that or always? In https://source.contextgarden.net/syst-aux.mkiv it looks like \measured returns a dimension, while \measure returns a string (\the\measured), is this right? So I should use \measure{} in setup keyvals, and \measured in dim expressions? Now, when I use calculated measures for a page size, I get: """ You can't use '\dimexpr' in horizontal mode """ Here’s my MWE: """ \definemeasure[PageWidth][132mm] \definemeasure[FlapWidth][\measured{PageWidth} * 0.8] \definemeasure[FlapWidth][0.8\measured{PageWidth}] works Herbert \starttext FlapWidth: \measure{FlapWidth} \stoptext """ Results in: FlapWidth: 0.0pt.8 Longer example attached. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] font features
Am 03.11.22 um 12:37 schrieb Thomas A. Schmitz via ntg-context: Hi, is there an easy way to get a list of all features that a font has and typeset a sample text to see the result of every single feature? There probably is, but I couldn't find anything... You'll get only the features with otfinfo in the terminal. For example: iMac:~ voss$ otfinfo -f `kpsewhich LibertinusSerif-Regular.otf` c2sc Small Capitals From Capitals calt Contextual Alternates case Case-Sensitive Forms ccmp Glyph Composition/Decomposition cpsp Capital Spacing dlig Discretionary Ligatures frac Fractions hlig Historical Ligatures kern Kerning liga Standard Ligatures lnum Lining Figures mark Mark Positioning mkmk Mark to Mark Positioning onum Oldstyle Figures pnum Proportional Figures salt Stylistic Alternates smcp Small Capitals ss01 Stylistic Set 1 ss02 Stylistic Set 2 ss03 Stylistic Set 3 ss04 Stylistic Set 4 ss05 Stylistic Set 5 ss06 Stylistic Set 6 ss07 Stylistic Set 7 subs Subscript sups Superscript tnum Tabular Figures zero Slashed Zero Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Example from Practex Journal
Am 08.10.22 um 13:17 schrieb Jeroen via ntg-context: Could anybody help me out with the setup and a MWE to get a document exactly as the one from Steve Peter in the Practex Journal in 2005 as in https://tug.org/pracjourn/2005-1/peter/peter.pdf I find this one hard to replicate. What is the font type that was used for this document ? His email is at the end of the article ... Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___