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
ion=]
\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] А\\
\swi
texts[][\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] А\\
\switchtobodyfon
s and endnotes.
> 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]
>
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,
it before). 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 h
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
ry][mm][TeX 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]}]
\startt
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
yfont[lib-fb-jun]
{\em emph. lib-fb-jun: \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) %
some tracking stuff
>
> \enabletrackers[fonts.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{
kers[fonts.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-
ec5} (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?
Most warmly,
-jp
--
J. P. Asche
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[termes,8pt]}]
> > \startuseMPgraph
75 cm high:
\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
x 8 and 40 = 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={\switch
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.}
\sto
x27;t 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 fo
need 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 /
> \tikzinputfile{pgfcircmonopoles.tex}
>> \tikzinputfile{pgfcircbipoles.tex}
>> \tikzinputfile{pgfcirctripoles.tex}
>> \tikzinputfile{pgfcircquadpoles.tex}
>> \tikzinputfile{pgfcircmultipoles.tex}
>>
>> \tikzinputfile{pgfcirclabel.te
rican=>\ctikzset{ resistor=american}]
>
> \processaction
> [\currentmoduleparameter{inductor}]
> [european=>\ctikzset{ inductor=european},
> american=>\ctikzset{ inductor=american},
> cute=>\ctikzset{ inductor=cute}]
>
> \processaction
>
def\kilo {\rm{k}}
\def\mega {\rm{M}}
\def\giga {\rm{G}}
\def\tera {\rm{T}}]
\unprotect
\processaction
[\currentmoduleparameter{arrowmos}]
[true=>\pgf@circuit@mos@arrowstrue,
false=>\pgf@circuit@mos@arrowsfalse]
\protect
\ctikzset{tripoles/o
just slightly less bold)?
>
>
> On Tue, Dec 7, 2021 at 9:45 AM Hans Hagen via ntg-context
> wrote:
> >
> > On 12/7/2021 2:39 AM, Jairo A. del Rio via ntg-context wrote:
> > > Hi, list. See the following:
> > >
> > > \starttext
> > > $\alpha
; \starttext
> > $\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$}
> > \stoptext
> there is no lfg file for it but if you just want a bolder latin modern
> you can also do this (there is an old bachotex presentation about it
> somewhere):
>
> \setupbody
On 12/7/2021 2:39 AM, Jairo A. del Rio via ntg-context wrote:
Hi, list. See the following:
\starttext
$\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$}
\stoptext
there is no lfg file for it but if you just want a bolder latin modern
you can also do this (there is an ol
Hi, list. See the following:
\starttext
$\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$}
\stoptext
Thank you in advance.
Best regards,
Jairo
___
If your question is of interest to others as we
a {\rm{T}}]
\unprotect
\processaction
[\currentmoduleparameter{arrowmos}]
[true=>\pgf@circuit@mos@arrowstrue,
false=>\pgf@circuit@mos@arrowsfalse]
\protect
\ctikzset{tripoles/op amp/font/.initial=\switch
false=>\pgf@circuit@mos@arrowsfalse]
\protect
\ctikzset{tripoles/op amp/font/.initial=\switchtobodyfont[small]}
\aliased\let\stopcircuitikz\relax
\permanent\protected\def\startcircuitikz#1\stopcircuitikz
{\starttikzpicture#1\stoptikzpicture}
\stopmodule
\endinput
%D \module
%D [ file=m-ti
\NR
\ML
\NC Latin Modern Roman \NC \m{\sqrt{x}} \NR
\NC TeX Gyre Termes \NC \switchtobodyfont[termes] \m{\sqrt{x}} \NR
\NC TeX Gyre Pagella \NC \switchtobodyfont[pagella] \m{\sqrt{x}} \NR
\NC TeX Gyre Bonum \NC \switchtobodyfont[bonum] \m{\sqrt{x}}
Latin Modern Roman \NC\m{x'} \NC\NR
\NC TeX Gyre Termes\NC \switchtobodyfont[termes] \m{x'} \NC\NR
\NC TeX Gyre Pagella \NC \switchtobodyfont[pagella] \m{x'} \NC\NR
\NC TeX Gyre Bonum \NC \switchtobodyfont[bonum] \m{x'} \NC\NR
\NC Te
both to print out as
> > Chancery. Only one or the
> > other, but not both.
> >
> >
> > \definefontfamily [mwetest] [sans] [Liberation Sans]
> > \setupbodyfont [mwe,ss,12pt]
> > \definelayer[mwe][repeat=yes, preset=lefttop,
gt; \definefontfamily[pag][math][tex gyre pagella math]
> > > \definefontfamily[bon][math][tex gyre bonum math]
> > > \definefontfamily[sch][math][tex gyre schola math]
> > > \definefontfamily[stx][math][stix two math]
> > > \starttext
> > > \starttabulate[
NC \bf Math prime \NR
> > \ML
> > \NC Latin modern \NC \m{x'} \NR
> > \NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
> > \NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
> > \NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
> > \NC Schola \N
math]
\definefontfamily[stx][math][stix two math]
\starttext
\starttabulate[|c|c|]
\FL
\NC \bf Font name \NC \bf Math prime \NR
\ML
\NC Latin modern \NC \m{x'} \NR
\NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
\NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
\NC Bonum \NC \switchtob
\starttabulate[|c|c|]
\FL
\NC \bf Font name \NC \bf Math prime \NR
\ML
\NC Latin modern \NC \m{x'} \NR
\NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
\NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
\NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
\NC Schola \NC \switchtobodyfont
tlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery Font
Here }
\setupbackgrounds[page][background=mwe]
\starttext
Normal font text goes here. \blank[4*big]
{ \switchtobodyfont[chancery] This should be Chancery here to. But isn't. }
\b
one or the
other, but not both.
\definefontfamily [mwetest] [sans] [Liberation Sans]
\setupbodyfont [mwe,ss,12pt]
\definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in]
\setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5m
alic]
% \definefallbackfamily [mainface] [math] [Minion Pro]
% [range=digitsnormal,features=f:lining]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsnormal]
\definefontfamily [mainface] [math] [Libertinus Math]
\starttext
\startformula
c^2 = a^2 + b^2
\stopform
Apparently, almfixed and kurier fonts no longer load as before.
But in this way yes, and I still can't find the reason:
\definefontfamily[FAR][serif][almfixed]
\definefontfamily[KUR][sans serif][kurier]
\setupbodyfont [FAR,10pt]
\starttext
123abc\par
\switchtobodyfont[FAR,40pt] 1
double-checking the fonts, two still don't switch. this example
procudes a pdf with Latin Modern instead ALM Fixed and Kurier. Any
ideas on how to use those?
\starttext
\switchtobodyfont[almfixed,tt] 123abc \par
\switchtobodyfont[almfixed] 123abc \par
\switchtobodyfont[kurier] 123abc
mailto:ntg-context@ntg.nl>> escribió:
> >
> > Hi all,
> > I suppose this is a bug or something unresolved, the following code
> > renders a pdf in LMRoman (lmserif) only:
> >
> > \starttext
> > \startitemize[none]
> > \switch
badin via ntg-context
mailto:ntg-context@ntg.nl>> escribió:
Hi all,
I suppose this is a bug or something unresolved, the following code
renders a pdf in LMRoman (lmserif) only:
\starttext
\startitemize[none]
\switchtobodyfont[antykwatorunska] \item font-test 123
\
Hi all,
> I suppose this is a bug or something unresolved, the following code
> renders a pdf in LMRoman (lmserif) only:
>
> \starttext
> \startitemize[none]
> \switchtobodyfont[antykwatorunska] \item font-test 123
> \switchtobodyfont[kurier] \item font-test 123
> \swi
Hi all,
I suppose this is a bug or something unresolved, the following code
renders a pdf in LMRoman (lmserif) only:
\starttext
\startitemize[none]
\switchtobodyfont[antykwatorunska] \item font-test 123
\switchtobodyfont[kurier] \item font-test 123
\switchtobodyfont[almfixed] \item font-test 123
On 10/20/2021 1:01 PM, Mikael Sundqvist via ntg-context wrote:
Hi,
looking at the output of
\setupbodyfont[libertinus]
%\setupmathematics[stylealternative={ssty}]
\starttext
%\addff{ssty}
$y'=f'$
\switchtobodyfont[newcomputermodern-book]
$y'=f'$
\stoptext
ssty doesn
Hi,
looking at the output of
\setupbodyfont[libertinus]
%\setupmathematics[stylealternative={ssty}]
\starttext
%\addff{ssty}
$y'=f'$
\switchtobodyfont[newcomputermodern-book]
$y'=f'$
\stoptext
I think that the primes in libertinus are too small. Indeed, looking
in the font
Dear List,
the red highlight block in the following example is not covering the two
40pt characters:
\definetextbackground[important][frame=no,background=color,backgroundcolor=red]
\starttext
abc\important{123{\switchtobodyfont[40pt]45}xy}z
\stoptext
Is there an option that fixes this?
Thanks
On 8/29/2021 3:21 PM, Paul Dostert via ntg-context wrote:
My Minimal:
\starttext
$==$ this
$f(x)= x^2$
\switchtobodyfont[times]
$==$ this
$f(x)= x^2$
\switchtobodyfont[modern]
$==$ this
$f(x)= x^2$
\stoptext
This is producing an =, a large space (about two characters wide), then
an
My Minimal:
\starttext
$==$ this
$f(x)= x^2$
\switchtobodyfont[times]
$==$ this
$f(x)= x^2$
\switchtobodyfont[modern]
$==$ this
$f(x)= x^2$
\stoptext
This is producing an =, a large space (about two characters wide), then an
= through the start of the word "this". See pdf he
*default at 14pt]
\definefont [TestC] [name:texgyreherositalic*default at 14pt]
\starttext
{\TestA The quick brown}
{\TestB fox jumps over}
{\TestC the lazy dog}
\stoptext
In my cases it is easier to use \switchtobodyfont rather than using a fixed
font style, below is a modified version of your
[TestA] [name:texgyreheros*default at 14pt]
> \definefont [TestB] [name:texgyreherosbold*default at 14pt]
> \definefont [TestC] [name:texgyreherositalic*default at 14pt]
>
> \starttext
> {\TestA The quick brown}
> {\TestB fox jumps over}
> {\TestC the lazy dog}
> \stoptext
>
}
{\TestB fox jumps over}
{\TestC the lazy dog}
\stoptext
In my cases it is easier to use \switchtobodyfont rather than using a
fixed font style, below is a modified version of your example above.
While the example itself isn't very useful the method can be used to
change the font for a h
me=on,
framecolor=black,
background=,
location=paragraph,
]
\definevimtyping[vimR]
[
syntax=r,
space=off,
lines=split,
numbering=yes,
numberstep=5,
alternative=pscolor,
margin=.5em,
style={\switchtobodyfont
finehighlight[emph][style={\em}]
\definehighlight[strong][style=boldface]
\starttext
\startbuffer
Some Text \emph{emphasized} normal \strong{strong} \emph{emph \emph{inner emph}
end}.
\stopbuffer
\getbuffer
{\switchtobodyfont[ss]\getbuffer}
{\hw\getbuffer}
{\switchtobody
][2][width=3cm, align=middle]
\setupTABLE[c][each][frame=off]
\stopsetups
\switchtobodyfont[10pt]
\starttext
\doifmode{title}{\title{Rooster}}
\startcolumns[n=2]
\bTABLE[split=yes, setups=tablesettings]
\dorecurse{75}{\bTR \bTD 25 \eTD \bTD aug, wo \eTD \bTD Lecture \eTD \eTR
roundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[11pt]},
align={left, broad},
frame=off,
width=\textwidth,
]
\setuplabeltext
[en]
[chapter=CHAPITRE]
\setuppagenumbering
[alternative=doublesided,location=]
\unexpanded\def\H
Fabrice
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> style=,
> toffset=\lineheight,
> background=color,
> background
olorA,
foregroundstyle={\switchtobodyfont[11pt]},
align={left, broad},
frame=off,
width=\textwidth,
]
\setuplabeltext
[en]
[chapter=CHAPITRE]
\setuphead
[chapter]
[bodypartlabel=]
\startsetups [header]
\labeltext{ch
anguage[ja]{{\setscript[hanzi]\sourcehanserifregular #1}}}
You can try to play with this font setup, all settings within the
setups-block are applied when you change the language.
% font setup for english ...
\definefontfamily [source] [rm] [Source Serif]
\switchtobodyfont [source]
% font setup fo
computermodern]
\starttext
\tt\bi\input aristotle-grc\par
\switchtobodyfont[another]
\input aristotle-grc\par
\it\input aristotle-grc
\stoptext
I’m afraid that there is no "newcmmono10-bolditalic.otf", but
"newcmmono10-boldoblique.otf".
The following patch fixes
n the array I defined, there were two elements with empty string as their
value. Once I changed those empty strings to some valid string, there was no
error and the file compiled as expected. Here is the new MWE with one array
element defined as empty string
\starttext
\switchtobodyfont[30pt]
\startMPp
\starttext
\switchtobodyfont[30pt]
\startMPpage
StartPage ;
unit := 2 * cm ;
%numeric lm, row, col, bm;
pair middle;
row := 1; col := 1;
picture p, q ; p := nullpicture; q := nullpicture;
string l[], lbl;
l[0] := "" ; l[1]:= "2";
for i= 0 upto row:
middle := 0.5[((( i * unit) ),
On 5/22/21 1:10 PM, Wolfgang Schuster wrote:
> [...]
> You can't use x and a with \switchtobodyfont, only small and big are
> possible.
>
> \starttext
> a
> \switchtobodyfont[small]
> a
> \switchtobodyfont[big]
> a
> \stoptext
Many thanks for your fast
Pablo Rodriguez schrieb am 22.05.2021 um 12:51:
Dear list,
I have the following sample:
\setupbodyfont[11.25pt]
\starttext
a
\switchtobodyfont[x]
a
\switchtobodyfont[a]
a
\stoptext
How can I get both \switchtobodyfont working in both appearances?
You can't use
Dear list,
I have the following sample:
\setupbodyfont[11.25pt]
\starttext
a
\switchtobodyfont[x]
a
\switchtobodyfont[a]
a
\stoptext
How can I get both \switchtobodyfont working in both appearances?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
\definevimtyping[foo][
style={\switchtobodyfont[16pt,tt]},
directory=code/,
syntax=foo,
alternative=pscolor,
vimrc=foo,
]
\starttext
\startfoo
let while endwhile
\stopfoo
\stoptext
The ~/foo/ directory contains ftdetect/foo.vim:
au BufRead,BufNewFile
Hi,
Is it possible to run the macro in math mode ?
Thank you
Fabrice
\usebodyfont [stix]
\setupbodyfont[modern]
\setupmathematics[stylealternative=calligraphic]
\unexpanded\def\CScript#1#2{\start\switchtobodyfont[stixtwo]
\m{{\mathscript{#1}}_{#2}}\stop}
\unexpanded\def\cscript#1{\start
]
\definedfont[Serif*default:block]
\getbuffer[test]
\switchtobodyfont[times]
\getbuffer[test]
% With Times New Roman, we can even see the bars in the output
\definedfont[Serif*default:block]
\getbuffer[test]
\stoptext
==
What am I missing?
(I am trying to block
stretch !=0, no matter how small
\setupalign[height]
\setupinterlinespace[stretch=0.001] % vertical stretching seems to kick in for
stretch !=0, no matter how small
\setupdelimitedtext[blockquote]
[style={\switchtobodyfont[x
gt;>
> > >>
> > >>> These quick font switches are meant for changing the font style,
> > >>> alternative, or size of a few words: they do not change the
> > >>> bodyfont, so they don't affect interline spacing or math font sizes.
>
,
> >>> alternative, or size of a few words: they do not change the
> >>> bodyfont, so they don't affect interline spacing or math font sizes.
> >>> So, if you want to change the font size of an entire paragraph, use
> >>>
> \switchtobodyfont<https:/
:
These quick font switches are meant for changing the font style, alternative, or size of a few
words: they do not change the bodyfont, so they don't affect interline spacing or math font
sizes. So, if you want to change the font size of an entire paragraph, use
\switcht
gt; to change the font size of an entire paragraph, use \switchtobodyfont
>> <https://wiki.contextgarden.net/Command/switchtobodyfont> described
>> below in Complete Font Change
>> <https://wiki.contextgarden.net/Font_Switching#Complete_font_change>.
>> However, i
>
> > These quick font switches are meant for changing the font style,
> > alternative, or size of a few words: they do not change the bodyfont, so
> > they don't affect interline spacing or math font sizes. So, if you want to
> > change the font size of an entire
f you want to change the font size
> of an entire paragraph, use
> \switchtobodyfont<https://wiki.contextgarden.net/Command/switchtobodyfont>
> described below in Complete Font
> Change<https://wiki.contextgarden.net/Font_Switching#Complete_font_change>.
> However,
no effect at all under LMTX.
Best,
Denis
\setuppapersize[A5][A5]
\showframe
\setupdelimitedtext[blockquote]
[before={\switchtobodyfont[small]},
spacebefore={mediu
o, if you want to change the font size
> of an entire paragraph, use
> \switchtobodyfont<https://wiki.contextgarden.net/Command/switchtobodyfont>
> described below in Complete Font
> Change<https://wiki.contextgarden.net/Font_Switching#Complete_font_change>.
>
9:39 AM, thierry horsin wrote:
For instance:
\switchtobodyfont[21pt]
\startformula
\frac{MTC}{MTE}
\stopformula
is OK.
While
\switchtobodyfont[22pt]
\startformula
\frac{MTC}{MTE}
\stopformula
gives an error
but
\switchtobodyfont[22pt]
$\frac{MTC}{MTE}$ works fine.
Thanks
Below: part of
On 4/19/2021 9:39 AM, thierry horsin wrote:
For instance:
\switchtobodyfont[21pt]
\startformula
\frac{MTC}{MTE}
\stopformula
is OK.
While
\switchtobodyfont[22pt]
\startformula
\frac{MTC}{MTE}
\stopformula
gives an error
but
\switchtobodyfont[22pt]
$\frac{MTC}{MTE}$ works fine.
Thanks
For instance:
\switchtobodyfont[21pt]
\startformula
\frac{MTC}{MTE}
\stopformula
is OK.
While
\switchtobodyfont[22pt]
\startformula
\frac{MTC}{MTE}
\stopformula
gives an error
but
\switchtobodyfont[22pt]
$\frac{MTC}{MTE}$ works fine.
Thanks
Below: part of the error message
tex error
]
[text=Définition,
number=no,
headcommand=\groupedcommand{}{},
style=slanted]
\setupmathematics[stylealternative=calligraphic]
\unexpanded\def\CScript#1#2{\start\switchtobodyfont[stixtwo]\m{{\mathscript{#1}}_{#2}}\stop}
\unexpanded\def\cscript#1{\start\switchtobodyfont[stixtwo]\m
Wessam A.ttf
My humble attempt: I did the following in my preamble:
\definefallbackfamily [mainface] [sans] [aarslanwessama] [range=arabic]
The rest of the [mainface] setups are obviously western fonts. But the
fallbackfamily approach did nothing to help. I also tried:
Khàbab {\switchtobodyfont
eature[default][default][dlig=yes,liga=yes,moreligatures=yes]
\definefontfamily[times][rm][Times New Roman]
\definefontfamily[termes[rm][TeX Gyre Termes]
\definefontfeature[default:block][default][blockligatures=yes]
\starttext
{\switchtobodyfont[times] \definedfont[Serif*default]begriffl
ult][dlig=yes,liga=yes,moreligatures=yes]
> \definefontfamily[times][rm][Times New Roman]
> \definefontfamily[termes[rm][TeX Gyre Termes]
>
> \definefontfeature[default:block][default][blockligatures=yes]
>
> \starttext
>
> {\switchtobodyfont[times] \def
['fl'] = { "f", "l" },
}
}
\stopluacode
\blockligatures[begrif:fl:ich]
\definefontfeature[default][default][dlig=yes,liga=yes,moreligatures=yes]
\definefontfamily[times][rm][Times New Roman]
\definefontfamily[termes[rm][TeX Gyre Termes]
\definef
=yes]
\definefontfamily[times][rm][Times New Roman]
\definefontfamily[termes[rm][TeX Gyre Termes]
\starttext
\switchtobodyfont[times]
\definedfont[Serif*default]
begrifflich
\blank
\definedfont[Serif*default:block]
begrifflich
\switchtobodyfont[termes]
\definedfont[Serif*default]
begrifflich
[hyphenation.applied.visualize]
% \enabletrackers[hyphenation.applied.console]
\startbuffer
\samplefile{tufte}
\blank
{\hsize 4em \dorecurse{4}{x\discretionary{aa}{bb}{cc}x #1 }}
\blank
\stopbuffer
\starttext
\switchtobodyfont[modern] \getbuffer
\switchtobodyfont[pagella
dfont[name:linlibertineo*default at 12 pt]
>
> ff fl
>
> \switchtobodyfont[pagella]
>
> ff fl
>
> \stoptext
>
> The ff and fl ligatures work out of the box with Linux Libertine O, and
> with TeX Gyre Pagella, but not with Times New Roman. I can use the
> ligatur
\switchtobodyfont[pagella]
ff fl
\stoptext
The ff and fl ligatures work out of the box with Linux Libertine O, and
with TeX Gyre Pagella, but not with Times New Roman. I can use the
ligatures in MS Word so the font has them, but I don’t see why they
shouldn’t work with ConTeXt (LMTX).
the
Hi
I'm have to use Times New Roman for a text, and I'm finding that ligatures
don't seem to work properly.
\starttext
\definedfont[name:timesnewromanpsmt*default at 12 pt]
ff fl
\definedfont[name:linlibertineo*default at 12 pt]
ff fl
\switchtobodyfont[pagella]
ff fl
\stoptext
simplefonts module deprecated or discouraged now?
> >
> > Hi Mohammad,
> >
> > the simplefonts module has been deprecated, since it has been
> > implemented in the ConTeXt core (see below).
> >
> > \definefontfallback might be the command you
er to create a new
typeface (fontfamily) and load it with \switchtobodyfont.
\definefontfallback
[AnotherFontFallback]
[file:texgyreherosregular*default]
[lowercasenormal]
[force=yes]
\definefontsynonym
[AnotherFontMain]
[file:texgyrepagellaregular]
[fallbacks=AnotherFontFal
\stopbuffer
\starttext
\startTEXpage[offset=2pt,strut=no]
\getbuffer
\switchtobodyfont[pagella]
\getbuffer
\switchtobodyfont[dejavu]
\getbuffer
\stopTEXpage
\stoptext
This is dedicated to Jano who wants to be able to search and these are
proper glyphs (so
t[size=3]{a}
\stopformula
\switchtobodyfont[lucidaot]
If we switch to lucida, the \type{size=1} and \type{size=2} are the same:
\startformula
\Set[size=0]{a}\quad
\Set[size=1]{a}\quad
\Set[size=2]{a}\quad
\Set[size=3]{a}
101 - 200 of 1747 matches
Mail list logo