[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Wolfgang Schuster
Jeroen schrieb am 19.03.2024 um 19:34: This one unbolds the margin text: \setupmargindata[inouter][style=\tf] This one works well, it unbolds and reduces the size of the margin text: \setupmargindata   [inouter]   [style={\switchtobodyfont[8pt]}] This one does not seem to make a change

[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Jeroen
This one unbolds the margin text: \setupmargindata[inouter][style=\tf] This one works well, it unbolds and reduces the size of the margin text: \setupmargindata [inouter] [style={\switchtobodyfont[8pt]}] This one does not seem to make a change: \setupmargindata[inmargin][style={\tf

[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Wolfgang Schuster
in the document? \setupmargindata[inouter][style=] or \setupmargindata[inleft][style={\switchtobodyfont[8pt]}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] Re: additional font faces

2024-03-08 Thread Henning Hraban Ramm
rinstance \starttypescript [sans] [AlegreyaMedium] and then use \switchtobodyfont[AlegreyaMedium]\sl or \AlegreyaMedium\sl which is also more efficient than adding more variants Ok, thank you – that’s what I was usually doing. So I won’t change it. Hraban

[NTG-context] Re: additional font faces

2024-03-08 Thread Hans Hagen
] [AlegreyaMedium] and then use \switchtobodyfont[AlegreyaMedium]\sl or \AlegreyaMedium\sl which is also more efficient than adding more variants Hans % adapted from font-pre.mkxl \definefontalternative[md] \definefontalternative[mi] \definefontalternative[ms] \definealternativestyle [medium

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
yes,1em] \setupinterlinespace [line=2\bodyfontsize, height=0.9, depth=0.1] \setupruby [style={\switchtobodyfont[6pt]}] \setuppagenumbering [alternative=doublesided, location=none] \setuphead [title,subject] [align=middle] \startsetups [header:rightpage] \startframed

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
ameter 'subshiftdown' with id 49 in style 2 is not set \math_m_nop #1->\relax \ifmmode #1\else \normalstartimath \usemathstyleparameter \mathematicsparameter \c!mathstyle \expand \everyinsidemathematics \relax \begingroup #1\endgroup \normalstopimath \fi

[NTG-context] Re: issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Mikael Sundqvist
yfontenvironment[16pt] > \setupbodyfont[mainface, 16pt] > \starttext > \startmakeup[standard][style=\bf] > \switchtobodyfont[coverface] > This is a cover. > \stopmakeup > > This is text. > \stoptext > > Compiling the sample with current latest (2024.01.08 11:23),

[NTG-context] issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[coverface][rm][TeX Gyre Termes] \setupbodyfont[mainface, 16pt] \starttext \startmakeup[standard][style=\bf] \switchtobodyfont[coverface] This is a cover. \stopmakeup

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, before={\switchtobodyfont[global]}, after={}, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}\blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1

[NTG-context] About framedtext

2023-12-13 Thread Fabrice Couvreur
, toffset=\zeropoint, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[9pt]}, align={right, broad}, frame=off, corner=00, radius=0.5em, width=10cm] \definedescription [Info] [before

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
, ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, before={\switchtobodyfont[global]}, after={}, frame=off

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-02 Thread Vincent Hennebert
to be using the goodies file even though it’s not mentioned in the typescript. Any idea of why? For example: \usetypescriptfile[adobesource] \usebodyfont[adobesource] \setupbodyfont[adobesource-nodesignsize] \starttext This text is typeset in Display when Regular should be used. \switchtobodyfont

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-01 Thread Hans Hagen via ntg-context
[adobesource-nodesignsize] \starttext This text is typeset in Display when Regular should be used. \switchtobodyfont[adobesource] This text is typeset in Regular with design sizes enabled. \stoptext What’s Next === * A harmonious-looking companion math font. * A harmonious-looking

[NTG-context] Adobe Source Typescript With Design Sizes

2023-10-31 Thread Vincent Hennebert
[adobesource] \usebodyfont[adobesource] \setupbodyfont[adobesource-nodesignsize] \starttext This text is typeset in Display when Regular should be used. \switchtobodyfont[adobesource] This text is typeset in Regular with design sizes enabled. \stoptext What’s Next === * A harmonious

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
; draw b; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay [CountFrame] [\useMPgraphic{CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bod

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bodyfont=11pt, style={\tt}, ] \def\FrameTitle#1% {\setMPtext{CountFrame} {\hbox spread 1em{\hss\strut#1\hss}}}\setMPtext{

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
higher font size gives less slanted text (or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1} {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Hans Hagen
(or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1}   {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1}   {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted}\par} \stoptext Wolfgang

[NTG-context] Font switching, default features, and a request

2023-08-13 Thread Hamid,Idris
Dear gang, Consider the following example: == \setupdirections[bidi=global,method=one] \startTEXpage[offset=1em,width=14in] \definedfont[almfixed*arabic] \switchtobodyfont[almfixed*arabic] \switchtobodyfont[almfixed] % \addff{arabic} \startbuffer[] \startlines الثَّعْلَبُ

[NTG-context] Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
Dear gang, I. In Context, as is well known, scaling a character is not independent of switching the font: === \startTEXpage[offset=1em] \definefont[Times][times @ 14pt] \Times Test \tfx Test \setupinterlinespace \Times Test \switchtobodyfont[x]Test \Times Test \high{Test} \stopTEXpage

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
amed >[background=test, > foregroundstyle=\switchtobodyfont[small]] >{test} > > \stoptext > > From now on many commands accept (properly) nested [] inside commands > that use [] as fences (like the setup commands) where it makes sense. It > i

[NTG-context] upload

2023-08-09 Thread Hans Hagen
} TEST}] \framed [background=test, foregroundstyle=\switchtobodyfont[small]] {test} \stoptext From now on many commands accept (properly) nested [] inside commands that use [] as fences (like the setup commands) where it makes sense. It is up to the user

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Hans van der Meer via ntg-context
\def\relationsFontSize{8pt}\starttextHello World!\crlf\switchtobodyfont[\relationsFontSize]Hello, world!\stoptext Untitled.pdf Description: Adobe PDF document dr. Hans van der MeerOn 19 May 2023, at 11:43, Gerben Wierda via ntg-context wrote:I want to use a variable for a font size so I can set

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Wolfgang Schuster via ntg-context
\starttext \switchtobodyfont[\relationsFontSize] Hello, world! \stoptext %=== How can I use a variable to steer \switchtobodyfont size? You need \the\, i.e. \switchtobodyfont[\the\relationsFontSize] but I would use the measure command, e.g. \definemeasure[relationsFontSize][8pt

[NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Gerben Wierda via ntg-context
I want to use a variable for a font size so I can set it based on language (as some translated texts have widely different sizes) This fails: %=== \newdimen\relationsFontSize \relationsFontSize=8pt \starttext \switchtobodyfont[\relationsFontSize] Hello, world! \stoptext

Re: [NTG-context] Non-standard font alternatives

2023-04-20 Thread Pawel Urbanski via ntg-context
: \switchtobodyfont[roboto,20pt] in the \setuphead[] call the font is not embedded and seems to be not used. I am more optimistic but still confused what can be wrong. ___ If your question is of interest to others as well

Re: [NTG-context] Non-standard font alternatives

2023-04-19 Thread Pawel Urbanski via ntg-context
[roboto] \setuphead[chapter] [style={\switchtobodyfont[roboto,20pt]\ss}] \starttext      \startchapter[title=Whatever is the best title]          \input tufte      \stopchapter \startchapter[title={Just a second title}] Some random text. \stopchapter \stoptext \definefontfeature[robotofeatures

Re: [NTG-context] Non-standard font alternatives

2023-04-19 Thread Henning Hraban Ramm via ntg-context
. I use the following simplest setup command: \setuphead[chapter][style={\switchtobodyfont[roboto,20pt]\ss}] \switchtobodyfont[roboto,ss,20pt] is better than what you have; don’t know if it makes a difference. Does \setupbodyfont[roboto] work for the main (i.e. body) font? Hraban

Re: [NTG-context] Non-standard font alternatives

2023-04-19 Thread Pawel Urbanski via ntg-context
hapter][style={\switchtobodyfont[roboto,20pt]\ss}] I will be glad to join forces and create the typescript file but maybe missing something obvious. While I could use an inline definition suggested by Hans in the other thread, Roboto is a great font and I or other people would like to use it as a

Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.

2023-04-18 Thread Hans Hagen via ntg-context
={\switchtobodyfont[roboto-flex,20pt]\ss}] While the Garamond is embedded and text is styled, the chapter tible is typeset with Garamond not Roboto. Any hints or feed back will be very appriciated. \usetypescriptfile[ebgaramond] \starttypescript [sans] [robotoflex] \setups[font:fallback:sans

Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.

2023-04-18 Thread Pawel Urbanski via ntg-context
er for the body contents. > > I followed the Context wiki example and consistant examples from the web. > > Here is my code: > \usemodule[fonts-variable] > \definefontfamily[roboto-flex][ss][rotoboflex] > % robotoflex.ttf is the recognized font file name. > \setuphead[chapt

Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.

2023-04-18 Thread Pawel Urbanski via ntg-context
the Context wiki example and consistant examples from the web. Here is my code: \usemodule[fonts-variable] \definefontfamily[roboto-flex][ss][rotoboflex] % robotoflex.ttf is the recognized font file name. \setuphead[chapter] [style={\switchtobodyfont[roboto-flex,20pt]\ss}] While the Garamond

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
=\vbox,align=middle,stack=yes] \defineuserdata [margintext] [alternative=margintext] \defineuserdataalternative [margintext] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [ style={\switchtobodyfont[10pt]}, width=\rightmarginwidth

Re: [NTG-context] update

2023-02-24 Thread Otared Kavian via ntg-context
}_{=2} = 1 \stopformula and it works great ! Best regards : Otared > On 23 Feb 2023, at 22:07, Hans Hagen via ntg-context > wrote: > > Hi, > > I uploaded a new version. We further improved Antykwa support, > > \switchtobodyfont[antykwa] > > \startTEXpage[of

[NTG-context] update

2023-02-23 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version. We further improved Antykwa support, \switchtobodyfont[antykwa] \startTEXpage[offset=1dk] \im{ f' = f'' = f''' = f = a + b + \ldots + c + \overbar{x} + \overbar{S} + \bar{x} + \widebar{x} } \im{ \fenced[doublebar]{x

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Pablo Rodriguez via ntg-context
efinefont[InitialCapFont][name:antpoltcondregular*default sa 4]* > *\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]* > > Has anybody any idea why this doesn't work? Hi Geert, this works for me: \definefont[InitialCapFont][name:antpoltcondregular*default sa 4] %\setupinitial[s

Re: [NTG-context] Best way to access casul fonts

2023-01-30 Thread Mattias Märka via ntg-context
][calligraphy][lucbr][default][features=default] \definetypeface[luc][hw][handwriting][lucbr][default][features=default] \stoptypescript \def\lucbr{\switchtobodyfont[lucbr]} \def\lucfax{\switchtobodyfont[lucfax]} \def\lucss{\switchtobodyfont[lucss]} \def\luctt{\switchtobodyfont[luctt]} \def\lucsstt

[NTG-context] Best way to access casul fonts

2023-01-23 Thread Mattias Märka via ntg-context
, but I don't know how to go about this. Currently I'm just defining a new typescript and making Lucida Casual a synonym for Serif and then using \switchtobodyfont --- but this feel silly. I searched the wiki and skimmed the reference manual, but to no avail. Perhaps I don't know what I should

Re: [NTG-context] Non-standard font alternatives

2022-12-14 Thread Matthew McCabe via ntg-context
and then just switch > between these, as in: > > at the top of your document you say > > \usebodyfont[plex] % preloads > \usebodyfont[plex-light] % preloads > > \setupbodyfont[plex]

Re: [NTG-context] Non-standard font alternatives

2022-12-13 Thread Hans Hagen via ntg-context
after that {\switchtobodyfont[plex-light] } will do a consistent switch Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477

Re: [NTG-context] accessing ital axis in variable font

2022-12-02 Thread Hans Hagen via ntg-context
][Literata] [features={default, myaxis}, designsize=auto] \setupbodyfont[mainface] \starttext \scale[width=\textwidth] {\switchtobodyfont[7pt]\tf Regular, \it Italic} \scale[width=\textwidth] {\switchtobodyfont[12pt]\tf Regular, \it Italic} \scale[width=\textwidth

Re: [NTG-context] accessing ital axis in variable font

2022-12-02 Thread Pablo Rodriguez via ntg-context
atures={default, myaxis}, designsize=auto] \setupbodyfont[mainface] \starttext \scale[width=\textwidth] {\switchtobodyfont[7pt]\tf Regular, \it Italic} \scale[width=\textwidth] {\switchtobodyfont[12pt]\tf Regular, \it Italic} \scale[width=\textwidth] {\switchtobodyfont[36pt]\tf

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-12 Thread Fabrice Couvreur via ntg-context
\usetikzlibrary[matrix,decorations.pathreplacing,fit,positioning] \stopenvironment\startenvironment[premiere-macros] \unexpanded\def\R{\math{\mathbb{R}}\autoinsertnextspace} \protected\def\N{\doifnextcharelse{*}\MyNstarred\MyNnormal} \def\MyNstarred*{\m{\mathbb{N}^*}\autoinsertnextspace} \def\

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
; On Sat, Oct 1, 2022 at 7:43 PM Fabrice Couvreur via ntg-context > wrote: > > > > Hi Hans, > > When the rectangles are not identical, how to have the same type of > hatching in both ? > > Thanks. > > Fabrice > > > > > > \starttext > > \st

Re: [NTG-context] About macro numberstriped ()

2022-10-01 Thread Mikael Sundqvist via ntg-context
t; \startlinecorrection[blank] > \startmidaligned > \switchtobodyfont[9pt] > \startMPcode > path p, q, r, b ; > p := unitsquare xyscaled (4cm,4cm) ; > z[0] = (2cm,0cm) ; > z[1] = (2cm,4cm) ; > z[2] = (0cm,2cm) ; > q := llcorner p--z[0]--z[1]--z[2]--cyc

Re: [NTG-context] About macro numberstriped ()

2022-10-01 Thread Fabrice Couvreur via ntg-context
Hi Hans, When the rectangles are not identical, how to have the same type of hatching in both ? Thanks. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \switchtobodyfont[9pt] \startMPcode path p, q, r, b ; p := unitsquare xyscaled (4cm,4cm) ; z[0

Re: [NTG-context] About macro numberstriped ()

2022-09-28 Thread Fabrice Couvreur via ntg-context
22 7:49 PM, Fabrice Couvreur via ntg-context wrote: > > Hello, > > I notice a strange behavior of the macro numberstriped ( ). > > Thanks. > > Fabrice > > > > \starttext > > \switchtobodyfont[9pt] > > \startMPcode > > > >path p

Re: [NTG-context] About macro numberstriped ()

2022-09-27 Thread Hans Hagen via ntg-context
On 9/27/2022 7:49 PM, Fabrice Couvreur via ntg-context wrote: Hello, I notice a strange behavior of the macro numberstriped ( ). Thanks. Fabrice \starttext  \switchtobodyfont[9pt]  \startMPcode   path p, q, r, b ;   p  := unitsquare xyscaled (4cm,4cm) ;   z[0] = (2cm,0cm) ;   z[1] = (2cm

[NTG-context] About macro numberstriped ()

2022-09-27 Thread Fabrice Couvreur via ntg-context
Hello, I notice a strange behavior of the macro numberstriped ( ). Thanks. Fabrice \starttext \switchtobodyfont[9pt] \startMPcode path p, q, r, b ; p := unitsquare xyscaled (4cm,4cm) ; z[0] = (2cm,0cm) ; z[1] = (2cm,4cm) ; z[2] = (0cm,2cm) ; q := llcorner p--z[0]--z[1]--z[2

Re: [NTG-context] Hebrew punctuation with SBL Hebrew

2022-08-31 Thread Joey McCollum via ntg-context
designed specifically for that kind of > stuff). A missing seeting? > > > > Best, > > Denis > > > > \definefontfamily[notok][rm][SBL Hebrew][features=hebrew] > > \definefontfamily[ok][rm][Linux Libertine O][features=hebrew] > > > > \setupdirectio

[NTG-context] Hebrew punctuation with SBL Hebrew

2022-08-31 Thread Denis Maier via ntg-context
nis \definefontfamily[notok][rm][SBL Hebrew][features=hebrew] \definefontfamily[ok][rm][Linux Libertine O][features=hebrew] \setupdirections[bidi=global,method=unicode] \starttext Ok: {\switchtobodyfont[notok] חִיוּחוחַ } Broken: {\switchtobodyfont[notok] חִיוּחוֹחַ } Linux Libertine works in both cases:

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-13 Thread Mojca Miklavec via ntg-context
l need to investigate what's going on with the full document. On an unrelated note: I cannot make \startnarrow[middle=1cm] (or left=... for that matter) produce any offset on the left. I was playing with the following code, but the frame refuses to be shifted to the right \setupvimtyping

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-13 Thread Mojca Miklavec via ntg-context
make \startnarrow[middle=1cm] (or left=... for that matter) produce any offset on the left. I was playing with the following example, but the frame refuses to be shifted to the right \setupvimtyping [before={ \startnarrow[left=1cm,before={\blank[10pt]}] \switchtobodyfont[8pt]

Re: [NTG-context] Using alegreya typescript

2022-07-06 Thread Hans Hagen via ntg-context
\usetypescriptfile[alegreya] \usebodyfont[alegreya-light] \usebodyfont[alegreya-medium] \setupbodyfont[alegreya] \setuplayout[tight] \starttext \switchtobodyfont[alegreya-light]\input tufte \par \switchtobodyfont[alegreya] \input tufte \par \switchtobodyfont

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
I've used something like the following before. \starttext \startMPcode label("normal label", (0, 0)); label("{\switchtobodyfont[3pt] tiny label}", (0, 18)); label("{\switchtobodyfont[72pt] giant label}", (0, -72)); \stopMPcode \stoptext Henning Hraban R

Re: [NTG-context] Odd behaviour with Plex typescript

2022-06-30 Thread Max Chernoff via ntg-context
just preload it, as in: \usebodyfont[modern] \setupbodyfont[plex] \setuphead [section] [style={\switchtobodyfont[modern]}] \starttext \section{A} A \stoptext That seems to have fixed it. Thanks! -- Max

Re: [NTG-context] Odd behaviour with Plex typescript

2022-06-30 Thread Hans Hagen via ntg-context
On 6/30/2022 10:36 AM, Max Chernoff via ntg-context wrote: If you load the Plex typescript, a spurious space is added on the first switch to another font, messing up any alignment. This doesn't happen with any other fonts; only with Plex. MWE:     \setuphead[section][style={\switchtobodyfont

[NTG-context] Odd behaviour with Plex typescript

2022-06-30 Thread Max Chernoff via ntg-context
If you load the Plex typescript, a spurious space is added on the first switch to another font, messing up any alignment. This doesn't happen with any other fonts; only with Plex. MWE: \setuphead[section][style={\switchtobodyfont[modern]}] \setupbodyfont[plex] \starttext

Re: [NTG-context] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-06 Thread Pablo Rodriguez via ntg-context
ont[archimate] \definefontfamily [mgopencosm] [ss] [MgOpenCosmetica] [preset=range:greek, force=yes] \startsetups[greek-typeface] \switchtobodyfont[mgopencosm] \stopsetups \setuplanguage[agr][setups={greek-typeface}] \startbuffer Ο κόσμος θα ήταν απίσ

[NTG-context] ugly bug

2022-06-01 Thread Steffen Wolfrum via ntg-context
\startdelimitedtext[narrowtext] \switchtobodyfont[8pt]\setuplocalinterlinespace[line=11pt] \input linden\par \stopdelimitedtext \stop \stoptext ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Changing font and font size inside textex

2022-05-31 Thread Stefan Nedeljkovic via ntg-context
xdefinition storexheight [#1] > % Placing the first use of \switchtobodyfont inside a group messes > % with the definitions, so we need to reset the font family > manually. > \edef\oldfontclass{\fontclass} > > \switchtobodyfont[#1] >

Re: [NTG-context] Changing font and font size inside textex

2022-05-31 Thread Max Chernoff via ntg-context
Thanks Max that works perfectly! But It would still be useful if I could change families inside a MPpage. Sure, but you'll need to store the x-heights first: \starttexdefinition storexheight [#1] % Placing the first use of \switchtobodyfont inside a group messes

Re: [NTG-context] Changing font and font size inside textex

2022-05-30 Thread Stefan Nedeljkovic via ntg-context
setxheight [#1][#2] > > \switchtobodyfont[#1, 12pt] > > \scratchdimen=\dimexpr#2\relax > > \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / > tex.sp"1ex" > > * tex.sp"1em" .. "sp"}] > > \stoptexdefinition > > > > But I can't

Re: [NTG-context] Changing font and font size inside textex

2022-05-30 Thread Max Chernoff via ntg-context
I'm using the following macro to set the font size via h-height: \starttexdefinition setxheight [#1][#2] \switchtobodyfont[#1, 12pt] \scratchdimen=\dimexpr#2\relax \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / tex.sp"1ex" * tex.sp"1em" .. "sp&quo

[NTG-context] Changing font and font size inside textex

2022-05-30 Thread Stefan Nedeljkovic via ntg-context
Dear list, I want to be able to change the font and the font size inside a MPpage. But if I try to prepend \switchtobodyfont to the text inside textext it doesn't work. I'm using the following macro to set the font size via h-height: \starttexdefinition setxheight [#1][#2] \switchtobodyfont

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
old version expected direct input, not a \dimen. Try this: > > \starttexdefinition setxheight [#1][#2] > \switchtobodyfont[#1, 12pt] > \scratchdimen=\dimexpr#2\relax > \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / > tex.sp"1ex"

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Max Chernoff via ntg-context
] \switchtobodyfont[#1, 12pt] \scratchdimen=\dimexpr#2\relax \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / tex.sp"1ex" * tex.sp"1em" .. "sp"}] \stoptexdefinition \definemeasure[xheight][2.5pt] \starttext \setxheight[advento

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
How would one specify the font size in LMTX, but via x-height? >> >> You could try this: >> >> \starttexdefinition setxheight [#1][#2] >> \switchtobodyfont[#1, 12pt] >> \switchtobodyfont[#1, \cldcontext{tex.sp"#2" / tex.sp&qu

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
Awesome, thank you very much Max! On Sat, May 28, 2022 at 8:49 AM Max Chernoff wrote: > > How would one specify the font size in LMTX, but via x-height? > > You could try this: > > \starttexdefinition setxheight [#1][#2] > \switchtobodyfont[#1, 12pt] >

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Max Chernoff via ntg-context
How would one specify the font size in LMTX, but via x-height? You could try this: \starttexdefinition setxheight [#1][#2] \switchtobodyfont[#1, 12pt] \switchtobodyfont[#1, \cldcontext{tex.sp"#2" / tex.sp"1ex" * tex.sp"1em" .. "

[NTG-context] spooky jumping headerline

2022-05-25 Thread Steffen Wolfrum via ntg-context
] \definedelimitedtext [narrowtext] [leftmargin=6mm,rightmargin=0mm]%, \starttext %%Test 1: \dorecurse{6}{\input linden} %%Test 2: %\dorecurse{5}{\input tufte} \start \startdelimitedtext[narrowtext] \switchtobodyfont[8pt]\setuplocalinterlinespace[line=11pt] \input linden\par \stopdelimitedtext \stop

[NTG-context] can't accent/fake characters in euler font

2022-05-19 Thread a badin via ntg-context
Hello all, typesetting accented characters in eulernova font does not seem possible to me. Is it really impossible? The other math fonts (stix/xits) do it. I'm using Context LMTX 2022.01.21 20:13 \starttext \switchtobodyfont[eulernova] \startlines euler: 1 - č 2 - \ccaron 3 - \v{c} \stoplines

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Steffen Wolfrum via ntg-context
t >> \eTD >> \bTD >> Test >> \eTD >> \bTD >> Test >> \eTD >> \eTR >> \eTABLE >> \stoptext > not possible, use tabulate instead do you have a MWE? the example from https://wiki.contextgarden.net/Tabulate gives an empty page: \set

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
\setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}] \starttext \switchtobodyfont[18pt] \definehspace[hspacing][0.15em] О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\ \switchto

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
[][\midaligned{\userpagenumber/\lastuserpage}] \starttext \switchtobodyfont[18pt] \definehspace[hspacing][0.15em] О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\ \switchtobodyfont[9pt

Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-21 Thread Bruce Horrocks via ntg-context
otes. > Hi Bruce, > > following the conversation, this might be a sample of what I think you > intend to achieve: > > \definenote[linknote] > \setupnote[linknote] > [textcommand={\ }, textstyle=, location=text] > \setupnotation[linknote] > [alternati

Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-21 Thread Pablo Rodriguez via ntg-context
tion[linknote] [alternative=serried, numberstyle={\switchtobodyfont[12pt]}, style={\switchtobodyfont[12pt]}, numbercommand=] \starttext \dorecurse{25} {First\footnote{Footnote one}. See my video at link\linknote{yewtu.be/my-great-video.}. } \title{Links} \placenotes[link

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
Pagella Math] \definetypeface [story] [mm] [math] [pagella] [default] \setupbodyfont[story,11pt] \usebodyfont[termes] \showframe \startsetups [blockquote:style] \switchtobodyfont[termes] \setupwhitespace[2pt] \stopsetups \setupdelimitedtext [blockquote] [spacebefore=big,

Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-06 Thread śrīrāma via ntg-context
fore). In fact, I first tested the following example before responding to Michael's question: %%% SOF \usebodyfont[termes] \setupbodyfont[schola] \setupdelimitedtext [blockquote] [style={\switchtobodyfont[termes]}] \starttext main body font here

Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-06 Thread Wolfgang Schuster via ntg-context
Michael Urban via ntg-context schrieb am 05.02.2022 um 20:28: I am experiencing an odd behavior switching text styles in a defined startstop group ("blockquote"). I get different behavior depending on whether the switchtobodyfont in the startstop definition includes the dummy {\it

Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-05 Thread śrīrāma via ntg-context
X Gyre Pagella Math] \setupbodyfont[story,11pt] \usebodyfont[termes] \definestartstop [blockquote] [before={\blank\startnarrower\setupwhitespace[2pt]\setupindenting[none]}, style={\switchtobodyfont[termes]}, after={\stopnarrower\blank\indenting[next]}] \starttext \input

[NTG-context] Odd Font Behavior in startstop Group

2022-02-05 Thread Michael Urban via ntg-context
I am experiencing an odd behavior switching text styles in a defined startstop group ("blockquote"). I get different behavior depending on whether the switchtobodyfont in the startstop definition includes the dummy {\it } and {\bf } text. If they are not there, the italic an

Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-16 Thread musa furber via ntg-context
\stoptypescriptcollection \define\setarabic{ \setupalign[r2l] \righttoleft \switchtobodyfont[amiri] } \define\setlatin{ \setupalign[l2r] \lefttoright \switchtobodyfont[dejavu] } \setupnotes[footnote][] \setupnotes[arfootnote][] \definenote[arfootnote][footnote] \setupnotation

Re: [NTG-context] SimpleSlides and Visual counters

2022-01-16 Thread Otared Kavian via ntg-context
lor} ; label(textext("\start\switchtobodyfont[10pt]% \setupinteraction[color=simpleslides:backgroundcolor,style=normal]% \startcolor[simpleslides:backgroundcolor] \goto{\pagenumber}[Prev

Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-15 Thread Hans Hagen via ntg-context
). \setupnote [arfootnote] [   headstyle={\switchtobodyfont[kitab]},   textcommand=\footnotenotenumbercommand,   alternative=text,   ] \define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}} Since the update, for the 123rd footnote, I now get `(123arabic)` instead of `(١٢٣

[NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-14 Thread musa furber via ntg-context
This week I updated ConTeXt minimals. Before then, I used the following code so that footnotes to Arabic passages would have parenthesis around them and use the digits used in Arabic texts in the Middle East (e.g. ٠١٢٣٤٥٦٧٨٩). \setupnote [arfootnote] [ headstyle={\switchtobodyfont[kitab

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Hans Hagen via ntg-context
: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs)} lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs) % <- fallback fails here \switchtobodyfont[jun-pr-lib] jun-pr-lib: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs) % <- works \stoptext ``` Any ideas? w

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread J .  P . Ascher via ntg-context
nts.missing=replace] > \enabledirectives[logs.errors] > > % text, we use lib-fb-jun first, then jun-pr-lib > > \starttext > \setupbodyfont[lib-fb-jun] > > {\em emph. lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs)} > > lib-fb-jun:

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Youssef Cherem via ntg-context
directives[logs.errors] > > > % text, we use lib-fb-jun first, then jun-pr-lib > > \starttext > \setupbodyfont[lib-fb-jun] > > {\em emph. lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three > glyphs)} > > lib-fb-jun: \Uchar61125 \char64259 \utfchar{&qu

[NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread J .  P . Ascher via ntg-context
61125 \char64259 \utfchar{"eec5} (three glyphs) % <- fallback fails here \switchtobodyfont[jun-pr-lib] jun-pr-lib: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs) % <- works \stoptext ``` Any ideas? Most warmly, -jp -- J. P. Ascher Preceding: https://doi.org/10.18130/jq

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Alfredo Catalina via ntg-context
> below the other. It worked in the past. Each sprite should be 4 x 0.095 > > cm = 0,38 cm wide and 5 x 0.095 cm = 0.475 cm high: > > > > \starttext > > \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,8pt]}] > > \startuseMPgraphic{mapa} &

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Hans Hagen via ntg-context
: \starttext \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,8pt]}] \startuseMPgraphic{mapa} u:=.095cm; draw externalfigure "./skysprite.png" xscaled 4u yscaled 5u shifted (0u,-0u); draw externalfigure "./sandsprite.png" xscaled 4u yscaled 5u shifted (0u,-5u)

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Alfredo Catalina via ntg-context
= 5 x 8, the width/height ratio is 4/5. This should produce a page with a sky sprite and a sand sprite, one below the other. It worked in the past. Each sprite should be 4 x 0.095 cm = 0,38 cm wide and 5 x 0.095 cm = 0.475 cm high: \starttext \setupMPinstance[metafun][textstyle={\switchtobodyfont

Re: [NTG-context] Using a system font

2021-12-27 Thread Marco Patzer via ntg-context
On Sun, 26 Dec 2021 21:21:10 +4000 jdh via ntg-context wrote: > \starttext >I want to use the Mathjax_Fraktur font, which the font-manager on > Ubuntu reports that it has. >{\switchtobodyfont[Mathjax_Fraktur] .. but, this text doesn't show > up in Mathjax_Fraktur.} >

[NTG-context] Using a system font

2021-12-26 Thread jdh via ntg-context
Minimum working example: \starttext I want to use the Mathjax_Fraktur font, which the font-manager on Ubuntu reports that it has. {\switchtobodyfont[Mathjax_Fraktur] .. but, this text doesn't show up in Mathjax_Fraktur.} \stoptext

Re: [NTG-context] definedfont vs switchtobodyfont (was "shrink inter-line space")

2021-12-20 Thread Hans Hagen via ntg-context
add the feature to the current font. I understand I need a font switch. Usually I use \switchtobodyfont. How is \definedfont different? it's a 'permanent' one ... so when the font is loaded the dimensions are adapted so you need a new font definition Hans

Re: [NTG-context] definedfont vs switchtobodyfont (was "shrink inter-line space")

2021-12-20 Thread mf via ntg-context
a font switch. Usually I use \switchtobodyfont. How is \definedfont different? Massi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
{pgfcircmultipoles.tex} >> >> \tikzinputfile{pgfcirclabel.tex} >> \tikzinputfile{pgfcircvoltage.tex} >> \tikzinputfile{pgfcirccurrent.tex} >> \tikzinputfile{pgfcircflow.tex} >> >> % defaults >> >> \setupmodule >&g

  1   2   3   4   5   6   7   8   9   10   >