[NTG-context] Is there any command that equates to "keep with previous paragraph"?
If I have text like this, it interprets the gap as needing a paragraph break: This is some text. This is some other text, it will appear in a new paragraph. Is there any macro I can place that will ignore the gap before it, treating the next text as if it belongs at the end of that sentence? Ex. This is some text. \ignorebreak This is some other text, it will appear in a new paragraph. That way output is more like this: This is some text. This is some other text, it will appear in a new paragraph. --Joel ___ 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 ___
[NTG-context] Re: How to use fonts without typescripts?
> On 15 May 2024, at 15:33, Shiv Shankar Dayal > wrote: > > Hi, > > Defining typescripts to use a font is very painful. How can I use a font > without using a typescript? If you just want a very small amount of text in a different font you can use: \definefont [useWarningFont] [name:arialbold*default at 22pt] \starttext This is the regular body text font but {\useWarningFont BE AWARE} that others can be used. \stoptext — Bruce Horrocks Hampshire, UK ___ 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 ___
[NTG-context] Re: compatibility between \startshapetext and \startsection ?
Thanks you Wolfgang. If it's not possible to use \blank, it appears that using for example \strut\par\strut\par is OK (but \par\par is not, ) \dorecurse{5}{ \strut\par\strut\par \leftaligned{Title for section{\recurselevel}} \strut\par\strut\par \darkred\input knuth \par \darkblue\input ward} Please, what would be a \setuphead that removes the introduction of these "uncompatible" verticals skips ? I've tried several, but even this one isn't compatible. \setuphead [section] [before={}, % also tried \blank[nowhite] and \blank[back] inbetween={}, after={}, beforesection={}, aftersection={}, alternative=text, style=\tf] Le 15/05/2024 à 13:09, Wolfgang Schuster a écrit : garu...@azules.eu schrieb am 14.05.2024 um 23:13: Hi all, \startshapetext works pretty well, but when I use \startsection \stopsection, shapes are not respected anymore. I use layers, to be able to place the content anywhere, but the issue remains without layers. Any clues ? (\placeinitial seems also to break the shaping) Example : 2 pages without sectioning, and after 2 pages by uncommenting the \startsection and \stopsection commands. [...] \dorecurse{5}{ \startsection[title={Title for section{\recurselevel}}] \darkred\input knuth \par \darkblue\input ward \stopsection } The problem aren't the section command but the vertical skips added before and after each section, you can reproduce the effect when you add \blank to your example. \dorecurse{5}{ \blank \leftaligned{Title for section{\recurselevel}} \blank \darkred\input knuth \par \darkblue\input ward } 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 ___
[NTG-context] expansion question
Dear list, I have the following sample: \setupinteraction[state=start] \setupattachments[method=hidden] \protected\def\PDFfile[#1]% {\cldcontext{file.addsuffix("#1", "pdf")}} \starttext \doifelsefile{\PDFfile[xml-mkiv]} {yes}{no} \attachment[file={\PDFfile[xml-mkiv]}] \stoptext I need the \PDFfile definition to be \protected for only one case (that I cannot reproduce in my sample). Is there any way to define an unprotected command and invoke it as protected only for a particular case? Many thanks for your help, Pablo ___ 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 ___
[NTG-context] Re: How to use fonts without typescripts?
On Wed, 2024-05-15 at 20:03 +0530, Shiv Shankar Dayal wrote: > Hi, > > Defining typescripts to use a font is very painful. How can I use a > font > without using a typescript? Use \definefontfamily which is essentially the successor of the old simplefonts module. https://wiki.contextgarden.net/Command/definefontfamily Cheers, Henri > > _ > __ > 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 > _ > __ ___ 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 ___
[NTG-context] Re: How to use fonts without typescripts?
Shiv Shankar Dayal schrieb am 15.05.2024 um 16:33: Hi, Defining typescripts to use a font is very painful. How can I use a font without using a typescript? \definefontfamily [windows] [rm] [Times New Roman] \definefontfamily [windows] [ss] [Arial] \definefontfamily [windows] [tt] [Courier New] [features=none] \definetypeface [windows] [mm] [math] [termes] % use \definetypeface to load a math font \setupbodyfont[windows] \starttext \showbodyfont \stoptext 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 ___
[NTG-context] How to use fonts without typescripts?
Hi, Defining typescripts to use a font is very painful. How can I use a font without using a typescript? -- Respect, Shiv Shankar Dayal ___ 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 ___
[NTG-context] Re: what am I missing in the typescript?
madiazm.eo...@gmail.com schrieb am 15.05.2024 um 14:01: indeed! thanks a lot, I'm trying different things since yesterday and got no clues... I just adapted it to the other script that works good (and there reads [SerifRegular]...[SerifItalic]...[SerifBold]... why is no Regular needed here? (just trying to learn) Below is a snippet from font-unk.mkxl where you can see which names are mapped to a certain font alternative, e.g. \tf (the normal upright style) expect a fontsynonym with the name Serif. \definebodyfont [default] [rm] [\s!tf=Serif sa 1, \s!bf=SerifBold sa 1, \s!it=SerifItalic sa 1, \s!sl=SerifSlanted sa 1, \s!bi=SerifBoldItalic sa 1, \s!bs=SerifBoldSlanted sa 1, \s!sc=SerifCaps sa 1] % obsolete, is a font feature now 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 ___
[NTG-context] Re: what am I missing in the typescript?
indeed! thanks a lot, I'm trying different things since yesterday and got no clues... I just adapted it to the other script that works good (and there reads [SerifRegular]...[SerifItalic]...[SerifBold]... why is no Regular needed here? (just trying to learn) thanks in advance ___ 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 ___
[NTG-context] Re: what am I missing in the typescript?
> On 15 May 2024, at 13:38, madiazm.eo...@gmail.com wrote: > > > \definefontsynonym [SerifRegular] [Cormorant-Regular] > [features=default] The line above should read: > \definefontsynonym [Serif] [Cormorant-Regular] > [features=default] Best wishes, Taco ___ 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 ___
[NTG-context] what am I missing in the typescript?
Hi all, I'm trying to configure my document to use Libertinus font for the general text and Cormorant for the headings, but I can't get the cormorant-font applied (neither in the text self). The Libertinus fonts get loaded without problems but for cormorant I don't get even a message in log, as if it was invisible. What am I missing? here my script: \definefontfeature[Libertinusfeatures][ mode=node, ccmp=yes, % character composition liga=yes, tlig=yes, % ligatures tnum=yes, cpsp=yes, % capital spacing kern=yes, language=dflt, protrusion=quality, expansion=quality, ] \definefontfeature[smallcaps][% use with \addff smcp=yes, % smallcaps % c2sc=yes, % caps to smallcaps ] \starttypescript[serif][libertinus] \definefontsynonym[LibertinusSerif-Regular] [file:/fonts/LibertinusSerif-Regular.otf] \definefontsynonym[LibertinusSerif-Italic] [file:/fonts/LibertinusSerif-Italic.otf] \definefontsynonym[LibertinusSerif-Bold] [file:/fonts/LibertinusSerif-Semibold.otf] \definefontsynonym[LibertinusSerif-BoldItalic] [file:/fonts/LibertinusSerif-SemiboldItalic.otf] \definefontsynonym[LibertinusSerif-Slanted] [file:/fonts/LibertinusSerif-Italic.otf] \stoptypescript \starttypescript[serif][libertinus][name] \definefontsynonym [Serif] [LibertinusSerif-Regular] [features=Libertinusfeatures] \definefontsynonym [SerifRegular] [LibertinusSerif-Regular] [features=Libertinusfeatures] \definefontsynonym [SerifItalic] [LibertinusSerif-Italic] [features=Libertinusfeatures] \definefontsynonym [SerifSlanted] [LibertinusSerif-Italic] [features=Libertinusfeatures] \definefontsynonym [SerifCaps] [LibertinusSerif-Regular] [features={Libertinusfeatures,smallcaps}] \definefontsynonym [SerifBold] [LibertinusSerif-Bold] [features=Libertinusfeatures] \definefontsynonym [SerifBoldItalic] [LibertinusSerif-BoldItalic] [features=Libertinusfeatures] \definefontsynonym [SerifBoldSlanted] [LibertinusSerif-BoldItalic] [features=Libertinusfeatures] \stoptypescript % SANS \starttypescript[sans][libertinussans] \definefontsynonym[LibertinusSans-Regular] [file:/fontsSans/LibertinusSans-Regular.otf] \definefontsynonym[LibertinusSans-Italic] [file:/fontsSans/LibertinusSans-Italic.otf] \definefontsynonym[LibertinusSans-Bold] [file:/fontsSans/LibertinusSans-Bold.otf] \stoptypescript \starttypescript[sans][libertinussans][name] \definefontsynonym [Sans] [LibertinusSans-Regular] [features=Libertinusfeatures] \definefontsynonym [SansItalic] [LibertinusSans-Italic] [features=Libertinusfeatures] \definefontsynonym [SansSlanted] [LibertinusSans-Italic] [features=Libertinusfeatures] \definefontsynonym [SansCaps] [LibertinusSans-Regular] [features={Libertinusfeatures,smallcaps}] \definefontsynonym [SansBold] [LibertinusSans-Bold] [features=Libertinusfeatures] \stoptypescript %MONO \starttypescript[mono][libertinusmono] \definefontsynonym[LibertinusMono-Regular] [file:/fontsMono/LibertinusMono-Regular.otf] \stoptypescript \starttypescript[mono][libertinusmono][name] \definefontsynonym [Mono] [LibertinusMono-Regular] [features=none] \stoptypescript %CORMORANT \starttypescript[serif][cormorant] \definefontsynonym[Cormorant-Regular][file:/fonts/Cormorant-Regular.otf] \stoptypescript \starttypescript[serif][cormorant][name] \definefontsynonym [SerifRegular] [Cormorant-Regular] [features=default] \stoptypescript % FAMILY \starttypescript[miFuente] \definetypeface [miFuente] [rm] [serif] [libertinus] [default] \definetypeface [miFuente] [ss] [sans] [libertinussans] [default] \definetypeface [miFuente] [tt] [mono] [libertinusmono] [default] \stoptypescript \starttypescript[miCorm] \definetypeface [miCorm] [rm] [serif] [cormorant] [default] \stoptypescript \setupbodyfont[miFuente, 12pt] \starttext \startsection[title=Aspectos generales] Esta guía contiene toda la documentación necesaria para administrar la {\it prueba unificada de certificación} que ha diseñado la comisión de alemán. Se ruega al profesorado que se familiarice con las secciones del documento a través del índice y acuda a ellas según vaya siendo necesario, de manera que se pueda {\bf administrar y corregir} la prueba de la manera más satisfactoria posible. %%% trying to get cormorant working... \startsubsection[title=Organización de carpetas] {\switchtobodyfont[miCorm] {\tfc la fuente Cormorant no funciona}} \stopsubsection Las carpetas aparecen nombradas {\ss por idioma}, nivel y set de pruebas, no apareciendo ninguna referencia a convocatorias ni tampoco fechas. Sí aparece la referencia a la convocatoria en cada una de las guías de administración para los diferentes niveles. La carpeta correspondiente a cada nivel contiene las distintas
[NTG-context] Re: compatibility between \startshapetext and \startsection ?
garu...@azules.eu schrieb am 14.05.2024 um 23:13: Hi all, \startshapetext works pretty well, but when I use \startsection \stopsection, shapes are not respected anymore. I use layers, to be able to place the content anywhere, but the issue remains without layers. Any clues ? (\placeinitial seems also to break the shaping) Example : 2 pages without sectioning, and after 2 pages by uncommenting the \startsection and \stopsection commands. [...] \dorecurse{5}{ \startsection[title={Title for section{\recurselevel}}] \darkred\input knuth \par \darkblue\input ward \stopsection } The problem aren't the section command but the vertical skips added before and after each section, you can reproduce the effect when you add \blank to your example. \dorecurse{5}{ \blank \leftaligned{Title for section{\recurselevel}} \blank \darkred\input knuth \par \darkblue\input ward } 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 ___