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
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
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
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
] [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
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
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
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),
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
,
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
,
toffset=\zeropoint,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[9pt]},
align={right, broad},
frame=off,
corner=00,
radius=0.5em,
width=10cm]
\definedescription
[Info]
[before
,
]
\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
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
[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
[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
;
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
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{
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
(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
, 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
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
الثَّعْلَبُ
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
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
}
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
\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
\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
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
:
\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
[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
.
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
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
={\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
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
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
=\vbox,align=middle,stack=yes]
\defineuserdata [margintext] [alternative=margintext]
\defineuserdataalternative [margintext] [renderingsetup=userdata:margintext]
\startsetups [userdata:margintext]
\margindata
[inright]
[
style={\switchtobodyfont[10pt]},
width=\rightmarginwidth
}_{=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
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
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
][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
, 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
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]
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
][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
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
\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\
; 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
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
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
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
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
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
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
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:
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
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]
\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
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
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
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
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
ont[archimate]
\definefontfamily
[mgopencosm]
[ss]
[MgOpenCosmetica]
[preset=range:greek,
force=yes]
\startsetups[greek-typeface]
\switchtobodyfont[mgopencosm]
\stopsetups
\setuplanguage[agr][setups={greek-typeface}]
\startbuffer
Ο κόσμος θα ήταν απίσ
\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
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]
>
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
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
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
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
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"
]
\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
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
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]
>
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" ..
"
]
\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
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
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
\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
[][\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
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
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
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,
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
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
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
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
\stoptypescriptcollection
\define\setarabic{
\setupalign[r2l] \righttoleft \switchtobodyfont[amiri]
}
\define\setlatin{
\setupalign[l2r] \lefttoright \switchtobodyfont[dejavu]
}
\setupnotes[footnote][]
\setupnotes[arfootnote][]
\definenote[arfootnote][footnote]
\setupnotation
lor} ;
label(textext("\start\switchtobodyfont[10pt]%
\setupinteraction[color=simpleslides:backgroundcolor,style=normal]%
\startcolor[simpleslides:backgroundcolor]
\goto{\pagenumber}[Prev
).
\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 `(١٢٣
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
: \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
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:
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
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
> 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}
&
:
\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)
= 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
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.}
>
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
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
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
{pgfcircmultipoles.tex}
>>
>> \tikzinputfile{pgfcirclabel.tex}
>> \tikzinputfile{pgfcircvoltage.tex}
>> \tikzinputfile{pgfcirccurrent.tex}
>> \tikzinputfile{pgfcircflow.tex}
>>
>> % defaults
>>
>> \setupmodule
>&g
1 - 100 of 1619 matches
Mail list logo