[NTG-context] special chapter label
Am working on a book where most chapters are simply labeled Chapter One, Chapter Two etc., and this has been achieved easily enough with \setuplabeltext[chapter=Chapter ] (also including \setupheads[conversion=Words] to get One, Two instead of 1 2). But several chapter labels need to have a date range after them, e.g. *Chapter Three: 1820-1880*. I have tried introducing a new \setuplabeltext[chapter=Chapter: 1820-1880 ] just before the \startchapter command, but this results in*:** * *Chapter: 1820-1880 Three* (and I also hope that introducing this does not also affect Chapter Four since that will have a different set of dates). How can I get a specific labeltext set up so that the result is *Chapter Three: 1820-1880*, and also ensure that other chapters either return to just the chapter number or, if needs be, can also indicate different date ranges? I have looked everywhere on the wiki for ideas to help me, but so far no luck. Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] defining font family for several options
That's now clear. Thank you. Julian On 2/9/20 9:59 am, Otared Kavian wrote: Hi Julian, What Aditya means is that you define two (or more) font families: one is named mainface as yu have already done, the other named mychapterfont (for instance) where you attribute whatever fonts you wish to sans serif and else. Then when you want to use the special font in some of the titles you use {\switchtobodyfont[mychapterfont]\ss my text} You can use also \start \switchtobodyfont[mychapterfont] \ss my text \stop in case the braces are not convenient for a longer text. Best regards: Otared On 2 Sep 2020, at 01:22, jbf wrote: I presume you mean, {\switchtobodyfont[itcavantgarde]\ss My text} for the case I mentioned? Because at no point in the example I gave of \definefontfamily[mainface] had I defined ss as an AvanteGarde typeface, and that is the heart of my question. Can I somehow define two kinds of sans serif for different uses? It was earlier suggested (Hraban) I might be able to do away with the serif font or use calligraphy, but I need the rm and I don't need cg (though, was the suggestion that I could use the initials cg but set up the typeface in fact as a sans serif, in this case AvantGarde? Is that possible? In which case I could also use hw as well for a different typeface as well?). As you can see, I am trying to get to grips with this whole typeface issue which I find a bit complicated. Julian On 2/9/20 9:08 am, Aditya Mahajan wrote: On Tue, 1 Sep 2020, jbf wrote: Perhaps someone can assist me with the following query. I have a situation where I need to use more than one sans serif fonts (especially within complicated chapter heads). I currently have the following: \definefontfamily [mainface] [rm] [alegreya] \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular] \definefontfamily [mainface] [mm] [alegreya] \setupbodyfont[mainface] \setupbodyfont[11pt] But what if I need to have, in addition to the Dax sans serif typeface, an additional sans serif typeface such as ITCAvantGarde? How do I declare that? Do I just give it another name, e.g. \definefontfamily[chapter][itcavantgarde] etc? If I did that, how then do I refer to it? Obviously not just as {\ss my text} since that would call in the dax font. {\switchtobodyfont[chapter]\ss my text} I tried to improve the explanation on the wiki: https://wiki.contextgarden.net/Font_Switching#Switching_typefaces Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] defining font family for several options
Hi Julian, What Aditya means is that you define two (or more) font families: one is named mainface as yu have already done, the other named mychapterfont (for instance) where you attribute whatever fonts you wish to sans serif and else. Then when you want to use the special font in some of the titles you use {\switchtobodyfont[mychapterfont]\ss my text} You can use also \start \switchtobodyfont[mychapterfont] \ss my text \stop in case the braces are not convenient for a longer text. Best regards: Otared > On 2 Sep 2020, at 01:22, jbf wrote: > > I presume you mean, {\switchtobodyfont[itcavantgarde]\ss My text} for the > case I mentioned? > > Because at no point in the example I gave of \definefontfamily[mainface] had > I defined ss as an AvanteGarde typeface, and that is the heart of my > question. Can I somehow define two kinds of sans serif for different uses? > > It was earlier suggested (Hraban) I might be able to do away with the serif > font or use calligraphy, but I need the rm and I don't need cg (though, was > the suggestion that I could use the initials cg but set up the typeface in > fact as a sans serif, in this case AvantGarde? Is that possible? In which > case I could also use hw as well for a different typeface as well?). As you > can see, I am trying to get to grips with this whole typeface issue which I > find a bit complicated. > > Julian > > > On 2/9/20 9:08 am, Aditya Mahajan wrote: >> On Tue, 1 Sep 2020, jbf wrote: >> >>> Perhaps someone can assist me with the following query. I have a >>> situation where I need to use more than one sans serif fonts (especially >>> within complicated chapter heads). I currently have the following: >>> >>> \definefontfamily [mainface] [rm] [alegreya] >>> \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular] >>> \definefontfamily [mainface] [mm] [alegreya] >>> \setupbodyfont[mainface] >>> \setupbodyfont[11pt] >>> >>> But what if I need to have, in addition to the Dax sans serif typeface, >>> an additional sans serif typeface such as ITCAvantGarde? How do I >>> declare that? Do I just give it another name, e.g. >>> \definefontfamily[chapter][itcavantgarde] etc? If I did that, how then >>> do I refer to it? Obviously not just as {\ss my text} since that would >>> call in the dax font. >> {\switchtobodyfont[chapter]\ss my text} >> >> I tried to improve the explanation on the wiki: >> https://wiki.contextgarden.net/Font_Switching#Switching_typefaces >> >> Aditya >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___ > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] defining font family for several options
I presume you mean, {\switchtobodyfont[itcavantgarde]\ss My text} for the case I mentioned? Because at no point in the example I gave of \definefontfamily[mainface] had I defined ss as an AvanteGarde typeface, and that is the heart of my question. Can I somehow define two kinds of sans serif for different uses? It was earlier suggested (Hraban) I might be able to do away with the serif font or use calligraphy, but I need the rm and I don't need cg (though, was the suggestion that I could use the initials cg but set up the typeface in fact as a sans serif, in this case AvantGarde? Is that possible? In which case I could also use hw as well for a different typeface as well?). As you can see, I am trying to get to grips with this whole typeface issue which I find a bit complicated. Julian On 2/9/20 9:08 am, Aditya Mahajan wrote: On Tue, 1 Sep 2020, jbf wrote: Perhaps someone can assist me with the following query. I have a situation where I need to use more than one sans serif fonts (especially within complicated chapter heads). I currently have the following: \definefontfamily [mainface] [rm] [alegreya] \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular] \definefontfamily [mainface] [mm] [alegreya] \setupbodyfont[mainface] \setupbodyfont[11pt] But what if I need to have, in addition to the Dax sans serif typeface, an additional sans serif typeface such as ITCAvantGarde? How do I declare that? Do I just give it another name, e.g. \definefontfamily[chapter][itcavantgarde] etc? If I did that, how then do I refer to it? Obviously not just as {\ss my text} since that would call in the dax font. {\switchtobodyfont[chapter]\ss my text} I tried to improve the explanation on the wiki: https://wiki.contextgarden.net/Font_Switching#Switching_typefaces Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] defining font family for several options
On Tue, 1 Sep 2020, jbf wrote: > Perhaps someone can assist me with the following query. I have a > situation where I need to use more than one sans serif fonts (especially > within complicated chapter heads). I currently have the following: > > \definefontfamily [mainface] [rm] [alegreya] > \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular] > \definefontfamily [mainface] [mm] [alegreya] > \setupbodyfont[mainface] > \setupbodyfont[11pt] > > But what if I need to have, in addition to the Dax sans serif typeface, > an additional sans serif typeface such as ITCAvantGarde? How do I > declare that? Do I just give it another name, e.g. > \definefontfamily[chapter][itcavantgarde] etc? If I did that, how then > do I refer to it? Obviously not just as {\ss my text} since that would > call in the dax font. {\switchtobodyfont[chapter]\ss my text} I tried to improve the explanation on the wiki: https://wiki.contextgarden.net/Font_Switching#Switching_typefaces Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] defining font family for several options
> Am 01.09.2020 um 05:22 schrieb jbf : > > Perhaps someone can assist me with the following query. I have a situation > where I need to use more than one sans serif fonts (especially within > complicated chapter heads). I currently have the following: > > \definefontfamily [mainface] [rm] [alegreya] > \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular] > \definefontfamily [mainface] [mm] [alegreya] > \setupbodyfont[mainface] > \setupbodyfont[11pt] > > But what if I need to have, in addition to the Dax sans serif typeface, an > additional sans serif typeface such as ITCAvantGarde? How do I declare that? > Do I just give it another name, e.g. > \definefontfamily[chapter][itcavantgarde] etc? If I did that, how then do I > refer to it? Obviously not just as {\ss my text} since that would call in the > dax font. If you don’t need the roman font, you can (ab)use that. Or try handwriting/hw (it was commonly declared in MkII; didn’t try if it just works nowadays). Otherwise, since you probably will use only special font variants in setups like headers, use something like \definedfont[ITCAvantGarde-Semibold*default at 36pt]. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Import a metapost extension
Taco Hoekwater schrieb am 01.09.2020 um 19:12: Hi, On 1 Sep 2020, at 16:46, Hans Hagen wrote: On 9/1/2020 3:04 PM, Fabrice Couvreur wrote: Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file. A logfile of a failed run would have been more helpful in trying to track down the problem. But I did notice that there is a LaTeX file loaded in your succesful run. So perhaps the extension depends on LaTeX I looked for the file online [1] and it uses LaTeX commands (even begin/end blocks) for all text boxes. [1] https://melusine.eu.org/syracuse/poulecl/mp-scratch/ Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX
On 9/1/2020 5:47 PM, mf wrote: \unexpanded\def\groupedwordorparagraphright{\dosingleempty\dogroupedwordorparagraphright} \def\dogroupedwordorparagraphright[#1]{\groupedcommand{\setbox\scratchbox\hbox\bgroup} {\egroup\ifdim\wd\scratchbox < \hsize \wordright{\unhbox\scratchbox} \else \par\penalty1 \startalignment[flushright]\unhbox\scratchbox\stopalignment \fi}} \unexpanded\def\wordorparagraphright#1{% \setbox\scratchbox\hbox{#1} \ifdim\wd\scratchbox < \hsize \wordright{#1} \else \par\penalty1 \startalignment[flushright]\unhbox\scratchbox\stopalignment \fi} \starttext \type{\wordorparagraphright} should use \type{\wordright} if its argument is narrower than \type{\hsize}, or make a right-aligned paragraph with it when it's wider. Below, \type{\wordorparagraphright} is tested with a short text, that has enough room on the same line. \blank Reference: \input ward\wordright{same line, right} \blank Implementation as a grouped command (it doesn't work): \input ward\groupedwordorparagraphright{same line, right} \blank Normal implementation, not as a grouped command (it works): \input ward\wordorparagraphright{same line, right} \stoptext Unfortunately the grouped version is the one I need, because it's used in a register, and it would give an error if not defined through \groupedcommand: \setupregister[myregister] [pageleft=\wordorparagraphright\bgroup,pageright=\egroup] fortunately there is a solution that takes less code: \unexpanded\def\whatever {\dosingleempty\dowhatever} \def\dowhatever[#1]% {\dowithnextbox {\ifdim\wd\nextbox<\hsize \wordright{\box\nextbox}% \par \else \par \penalty1 \startalignment[flushright]\unhbox\nextbox\stopalignment \fi}\hbox} \starttext \input ward \whatever{same line, right} \blank \input ward \whatever{\input tufte } \stoptext - 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Import a metapost extension
Hi, > On 1 Sep 2020, at 16:46, Hans Hagen wrote: > > On 9/1/2020 3:04 PM, Fabrice Couvreur wrote: >> Hi Taco, >> Thank you for your help. I specify that this extension works perfectly by >> compiling the following file. A logfile of a failed run would have been more helpful in trying to track down the problem. But I did notice that there is a LaTeX file loaded in your succesful run. So perhaps the extension depends on LaTeX? > > input "mp-scratch.mp" ; > > maybe the path you look for is not part of the search path either > > mtxrun --expand-path MPINPUTS > > Hans > > - > 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 / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] strange behavior with \groupedcommand in recent versions of LMTX
Hello list, this is a MWE that worked right in MkIV and in LMTX versions (at least) until April 22nd, 2020. There's a macro, \wordorparagraphright, that takes one argument, makes a hbox with it and measures its width - if its width is less than \hsize, then it calls \wordright - if its width is more than \hsize, then it ends the current paragraph and starts a right-aligned paragraph with the argument There are two implementations in the MWE: one is through \groupedcommand, and that's the one that worked once and doesn't now. \unexpanded\def\groupedwordorparagraphright{\dosingleempty\dogroupedwordorparagraphright} \def\dogroupedwordorparagraphright[#1]{\groupedcommand{\setbox\scratchbox\hbox\bgroup} {\egroup\ifdim\wd\scratchbox < \hsize \wordright{\unhbox\scratchbox} \else \par\penalty1 \startalignment[flushright]\unhbox\scratchbox\stopalignment \fi}} \unexpanded\def\wordorparagraphright#1{% \setbox\scratchbox\hbox{#1} \ifdim\wd\scratchbox < \hsize \wordright{#1} \else \par\penalty1 \startalignment[flushright]\unhbox\scratchbox\stopalignment \fi} \starttext \type{\wordorparagraphright} should use \type{\wordright} if its argument is narrower than \type{\hsize}, or make a right-aligned paragraph with it when it's wider. Below, \type{\wordorparagraphright} is tested with a short text, that has enough room on the same line. \blank Reference: \input ward\wordright{same line, right} \blank Implementation as a grouped command (it doesn't work): \input ward\groupedwordorparagraphright{same line, right} \blank Normal implementation, not as a grouped command (it works): \input ward\wordorparagraphright{same line, right} \stoptext Unfortunately the grouped version is the one I need, because it's used in a register, and it would give an error if not defined through \groupedcommand: \setupregister[myregister] [pageleft=\wordorparagraphright\bgroup,pageright=\egroup] TIA, Massi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Error with negative superscript
On 9/1/2020 2:42 PM, Jan Willem Flamma wrote: Dear list, I noticed that negative superscripts are not printed correctly. ConTeXt ver: 2020.08.31 22:16 LMTX fmt: 2020.9.1 \starttext 10\high{6} 10\high{-6} \stoptext i swapped an option .. fixed in next version (btw, looks like some issue in luatex too, but i'll deal with that later) Hans - 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Import a metapost extension
On 9/1/2020 3:04 PM, Fabrice Couvreur wrote: Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file. input mp-scratch; Scratchversion:=3; beginfig(1); draw Drapeau; draw Repeter("4"); draw Avancer("100"); draw Tournerd("90"); draw FinBlocRepeter; endfig; end But what you are proposing unfortunately does not work. what if you add a suffix: input "mp-scratch.mp" ; maybe the path you look for is not part of the search path either mtxrun --expand-path MPINPUTS Hans - 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Import a metapost extension
Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file. input mp-scratch; Scratchversion:=3; beginfig(1); draw Drapeau; draw Repeter("4"); draw Avancer("100"); draw Tournerd("90"); draw FinBlocRepeter; endfig; end But what you are proposing unfortunately does not work. Fabrice Le mar. 1 sept. 2020 à 14:25, Taco Hoekwater a écrit : > Hi, > > I think you need this: > > \startMPinclusions > input mp-scratch; > \stopMPinclusions > > \startMPcode > Scratchversion:=3; > …. > > If that also doesn’t work, perhaps attach the log file / terminal output > to a new message. > > Best wishes, > Taco > > > On 1 Sep 2020, at 13:07, Fabrice Couvreur > wrote: > > > > Hello > > Is it possible to import a metapost extension into a file compiled with > the lmtx engine ? > > I tried unsuccessfully with this example : > > > > begin test.tex > > > > \starttext > > \startMPcode > > input mp-scratch; > > > > Scratchversion:=3; > > > > draw Drapeau; > > draw Repeter("4"); > > draw Avancer("50"); > > draw Tournerd("90"); > > draw FinBlocRepeter; > > > > \stopMPcode > > \stoptext > > > > end test.tex > > > > Thanks > > Fabrice > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > ___ > > Taco Hoekwater > Elvenkind BV > > > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > This is MetaPost, version 2.00 (TeX Live 2020) (kpathsea version 6.3.2) 1 SEP 2020 15:01 **scratch-1.mp (/home/viserion/texlive/2020/texmf-dist/metapost/base/mpost.mp (/home/viserion/texlive/2020/texmf-dist/metapost/base/plain.mp Preloading the plain mem file, version 1.005) ) (./scratch-1.mp (/home/viserion/texmf/metapost/mp-scratch.mp (/home/viserion/texmf/metapost/LATEXScratch.mp) (/home/viserion/texmf/metapost/Mouvement.mp) (/home/viserion/texmf/metapost/Apparence.mp) (/home/viserion/texmf/metapost/Sons.mp) (/home/viserion/texmf/metapost/Stylo.mp ) (/home/viserion/texmf/metapost/Controle.mp) (/home/viserion/texmf/metapost/Evenements.mp) (/home/viserion/texmf/metapost/Bloc.mp) (/home/viserion/texmf/metapost/Divers.mp) (/home/viserion/texmf/metapost/Capteurs.mp) (/home/viserion/texmf/metapost/Variable.mp)) (./mptextmp.mp) (./mptextmp.mp) >> 34.55159 >> 55.29037 (./mptextmp.mp) (./mptextmp.mp) >> 105.50436 (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) >> 39.74248 >> 63.32898 (./mptextmp.mp) (./mptextmp.mp) >> 84.05197 (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) >> 56.92798 >> 92.35968 (./mptextmp.mp) (./mptextmp.mp) >> 112.43477 (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) >> 97.13678 >> 127.64769 (./mptextmp.mp) (./mptextmp.mp) >> 171.08908 (./mptextmp.mp) [1{psfonts.map}{crlt_csjzgd.enc}] ) 1 output file written: scratch-1.1 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Error with negative superscript
Dear list, I noticed that negative superscripts are not printed correctly. ConTeXt ver: 2020.08.31 22:16 LMTX fmt: 2020.9.1 \starttext 10\high{6} 10\high{-6} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new upload
On 9/1/2020 2:50 AM, Jairo A. del Rio wrote: Is there an analogue for display math? Could discretionaries be applicable to math formulas when "split=yes" is enabled, for instance? can you give an example of usage Hans - 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Import a metapost extension
Hi, I think you need this: \startMPinclusions input mp-scratch; \stopMPinclusions \startMPcode Scratchversion:=3; …. If that also doesn’t work, perhaps attach the log file / terminal output to a new message. Best wishes, Taco > On 1 Sep 2020, at 13:07, Fabrice Couvreur wrote: > > Hello > Is it possible to import a metapost extension into a file compiled with the > lmtx engine ? > I tried unsuccessfully with this example : > > begin test.tex > > \starttext > \startMPcode > input mp-scratch; > > Scratchversion:=3; > > draw Drapeau; > draw Repeter("4"); > draw Avancer("50"); > draw Tournerd("90"); > draw FinBlocRepeter; > > \stopMPcode > \stoptext > > end test.tex > > Thanks > Fabrice > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Taco Hoekwater Elvenkind BV ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Import a metapost extension
Hello Is it possible to import a metapost extension into a file compiled with the lmtx engine ? I tried unsuccessfully with this example : begin test.tex \starttext \startMPcode input mp-scratch; Scratchversion:=3; draw Drapeau; draw Repeter("4"); draw Avancer("50"); draw Tournerd("90"); draw FinBlocRepeter; \stopMPcode \stoptext end test.tex Thanks Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] own answer to part of the question re typeface options
I have come up with part answers to my two questions. The remaining unanswered question is in the final line. The question I can now answer, after some experimenting, is how to ensure that I can use small caps as part of the Alegreya family when I need to do so. This is how my definitions now look (the solutions are highlighted): \definefontfamily [mainface] [rm] [alegreya] *[sc=file:alegreyasc-bold]* \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular] \definefontfamily [mainface] [mm] [alegreya] \setupbodyfont[mainface] This now enables me to do: {\sc text in small caps} and the rest of the paragraph as normal (alegreya-regular)... I also now know, using the same type of solution above, that I can use two different weights of Dax, as follows: \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular,*bf=file:dax-medium*] which enables me to do as follows: {\ss\bf My subheading} and it will be in Dax-medium font. But I also want to be able to use a second sans serif font, namely ITCAvantGardePro-Md. Can I have two 'mainface' definitions for [ss]? Or how would I achieve this? Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim typing and compound breakpoints
On Tue, Sep 1, 2020 at 10:50 AM Christoph Reller wrote: > I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE: > > \definetype[typeLUA][option=LUA] > \setbreakpoints[compound] > \starttext > \typeLUA{function(argument)} > \stoptext > > Sadly, it does not compile. > I found that resetting the breakpoints within the typing command works: \setbreakpoints[compound] \definetype[typeLUA][option=LUA, command=\resetbreakpoints] \starttext \typeLUA{function(argument)}\par If compound break points are enabled then this text line is broken after the slash/next line. \stoptext Nonetheless: Is this bug? Cheers, Christoph ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Verbatim typing and compound breakpoints
Dear List, I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE: \definetype[typeLUA][option=LUA] \setbreakpoints[compound] \starttext \typeLUA{function(argument)} \stoptext Sadly, it does not compile. The problem seems to be the simultaneous use of compound breakpoints and parenthesis. The error message is: callback error: ...est/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:509: bad argument #1 to 'prehyphenchar' (luatex.lang expected, got no value) stack traceback: [C]: in function 'lang.prehyphenchar' ...est/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:509: in field 'prehyphenchar' ...est/tex/texmf-context/tex/context/base/mkiv/typo-brk.lua:171: in local 'method' ...est/tex/texmf-context/tex/context/base/mkiv/typo-brk.lua:392: in upvalue 'typesetters_breakpoints_handler' [string "local tonut = nodes.tonut..."]:16: in function <[string "local tonut = nodes.tonut..."]:11> (...tail calls...) ...est/tex/texmf-context/tex/context/base/mkiv/node-pro.lua:88: in function <...est/tex/texmf-context/tex/context/base/mkiv/node-pro.lua:79> How can I prevent this? Is this a bug? Cheers, Christoph ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] a little more specific on switching fonts
Earlier my question was 'what if I want to add an extra sans serif typeface?' (you can see below that I already have one ss - dax, but I need to add ITCAvantGarde as well as part of mainface or in some other way??). *I would like to add to that question, since it is closely connected.* This time, realizing I needed to also use small caps, and because AlegreyaSC of various weights is available in my system, you can see how I thought I would need to add it into the definitions below - in the second line. Then in the body of the document where I needed small caps, I did as follows: {\sc The text I need in small caps} and the rest of the paragraph follows... But the result is that the entire document is now in small caps. Clearly I am doing something wrong. \definefontfamily [mainface] [rm] [alegreya] \definefontfamily [mainface] [sc] [alegreyasc][[tf=file:alegreyasc-regular]] \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular] \definefontfamily [mainface] [mm] [alegreya] \setupbodyfont[mainface] Anyone able to help me with this please? Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___