le=\bfx,
>> foregroundcolor=white,
>> background=color,
>> backgroundcolor=MyColorB,
>> ]
>>
>> \defineframedtext
>> [FramedText]
>> [
>> offset=0.6em,
>> toffset=\lineheight,
>> background
[preset=lefttop]
> [
> frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> toffset=\lineheight,
>
=\bfx,
foregroundcolor=white,
background=color,
backgroundcolor=MyColorB,
]
\defineframedtext
[FramedText]
[
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant
eMPgraphic
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\defineframedtext
[MyFrame]
[frame=off,
foregroundstyle={\switchtobodyfont[10pt]},
background=MyFrame,
align={verytolerant},
height=fit]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
[MyFrame]
[\useMPgraphic{MyFrame}]
\defineframedtext
[MyFrame]
[frame=off,
foregroundstyle={\switchtobodyfont[8pt]},
background=MyFrame,
align={verytolerant},
height=fit]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\showframe
\starttext
\p
Hi Pablo
Thank you very much. By combining the two codes, you get what I want.
Fabrice
""""""""""""""""""""""""""""""""""
iography as
> > well.
> > Below a minimal example, that reproduces it:
> > ```
> > \setupinteraction[state=start]
> >
> > \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
> > {\vbox{\headtext{chapter} #1\blank#2}}}
> >
>
\setupinteraction[state=start]
>
> \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
> {\vbox{\headtext{chapter} #1\blank#2}}}
>
> \setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]},
> header=empty, page=mychapterpagebreak]
>
=python,
style={\switchtobodyfont[8pt,tt]},]
\starttext
\startpython
for line in foo:
print(line)
\stoppython
This is keyword \inlinepython{in} Python.
\stoptext
```
The simplest solution is:
\definetyping[python][syntax=python]
\definetyping
[frame=off,bottomframe=on,topframe=on]
{\vbox{\headtext{chapter} #1\blank#2}}}
\setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]},
header=empty, page=mychapterpagebreak]
\setupheadtext[chapter=Chapter, content=Table of Contents]
\starttext
\completecontent
\page[yes
ionmath] [mm] [dejavusansmono]
>> [range=digitsextendedarabicindic,offset=digitsnormal]
>> \definefallbackfamily [minionmath] [mm] [dejavusansmono]
>> [range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
>> \definefontfamily [minionmath] [mm] [TeX Gyre Pagel
The small modification I was talking about ...
The following change for Mohammad's one may also be ok:
\startttext
\switchtobodyfont[minionmath]
--->
\switchtobodyfont[minionmath]
\starttext
Best,
Ak
Dear Mohammad Hossein,
The small modification I was talking about has nothing to do with the
definition of fonts. In any case here is the file I used to typeset your
example (I think you had \startttext instead of \starttext, and also you used
\switchtobodyfont instead of \setupbodyfont
]
\definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]
\startttext
\switchtobodyfont[minionmath]
\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}, 2+3, {\bf 2+3}
\stopformula
\stoptext
With beta version 2017.01.17 17:37 it used to work and change the digits
to Indic inside math. With beta
et=digitsnormal]
> > \definefallbackfamily [minionmath] [mm] [dejavusansmono] [range=
> digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
> > \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]
> >
> > \startttext
> >
> > \switchtobodyfont[mini
itsextendedarabicindic,offset=digitsnormal]
> \definefallbackfamily [minionmath] [mm] [dejavusansmono]
> [range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
> \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]
>
> \startttext
>
> \switchtobodyfont[mi
]
\startttext
\switchtobodyfont[minionmath]
\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}, 2+3, {\bf 2+3}
\stopformula
\stoptext
With beta version 2017.01.17 17:37 it used to work and change the digits to
Indic inside math. With beta version 2017.04.27 01:00, the digits do not
change
xyz} {\bi xyz}
\stopformula
\switchtobodyfont[minionmath]
\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}
\stopformula
\stoptext
It seems that \definefallbackfamily doesn't works like before.
What is the right way to use \it, \bf, etc. in maths?
2016-09-15 17:06 GMT-03:00 Hans Åberg <ha
o your document.
>
> %\starttypescript[sans][newgardiner]
> %\setups[font:fallback:sans]
> %\definefontsynonym[Sans][file:newgardinersmp]
> %\stoptypescript
> %
> %\definetypeface[newgardiner][ss][sans][newgardiner][
> default][features=default]
>
> \defi
wgardinersmp]
%\stoptypescript
%
%\definetypeface[newgardiner][ss][sans][newgardiner][default][features=default]
\definefontfamily[newgardiner][rm][NewGardiner]
\starttext
{\definedfont[file:newgardinersmp at 14.4pt]ㇼ㋹}
\switchtobodyfont[newgardiner,14.4pt]ㇼ㋹
\stopte
ttf
> > formats. It is installed in my OSFONTDIR and is accessible using other
> > applications.
> >
> > But
> >
> > \switchtobodyfont[newgardiner,14pt]ㇼ㋹
> >
> > does not work (with either the .ttf or the .otf format).
> >
> > I have check
On 04/02/2017 05:23 PM, Alan Bowen wrote:
> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> formats. It is installed in my OSFONTDIR and is accessible using other
> applications.
>
> But
>
> \switchtobodyfont[newgardiner,14pt]ㇼ㋹
>
> does not
phic font, New Gardiner Medium, in .otf and .ttf
>> formats. It is installed in my OSFONTDIR and is accessible using other
>> applications.
>>
>> But
>>
>> \switchtobodyfont[newgardiner,14pt]ㇼ㋹
>>
>> does not work (with either the .ttf or the .otf form
t; applications.
>
> But
>
> \switchtobodyfont[newgardiner,14pt]ㇼ㋹
>
> does not work (with either the .ttf or the .otf format).
>
> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> the Family
I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
formats. It is installed in my OSFONTDIR and is accessible using other
applications.
But
\switchtobodyfont[newgardiner,14pt]ㇼ㋹
does not work (with either the .ttf or the .otf format).
I have checked: “NewGardiner
Am 2017-03-31 um 09:00 schrieb Kostirya <kosti...@gmail.com>:
> Hello.
> I found error at switchtobodyfont with dejavu font.
>
> In the below example, switchtobodyfont not correctly worked.
>
> This is only observed when I switch from 16pt to 14pt.
> Switching must
It did not help.
But why it is this the case, only for 14pt?
When font size is 10pt, 12pt or 16, then it is all right.
P.S.
I also found error at switchtobodyfont with dejavu font.
In the below example, switchtobodyfont not correctly worked.
This is only observed when I switch from 16pt
l.com>:
>> Hello.
>> Two hyphens do not replaced on em—dash when dejavu,14pt
>> :-(
>>
>>
>>
>> \starttext
>> 1-2 11--22
>>
>> \switchtobodyfont[dejavu,14pt]
>> 1-2 11--22
>>
>> \stoptext
I apologize.
It is not hyphen symbol. It is unicode.
Everything is working!
2017-03-31 11:46 GMT+03:00 Kostirya <kosti...@gmail.com>:
> Hello.
> Two hyphens do not replaced on em—dash when dejavu,14pt
> :-(
>
>
>
> \starttext
> 1-2 11--22
>
> \switch
Hello.
Two hyphens do not replaced on em—dash when dejavu,14pt
:-(
\starttext
1-2 11--22
\switchtobodyfont[dejavu,14pt]
1-2 11--22
\stoptext
___
If your question is of interest to others as well, please add
On 2017-03-27 09:16, Procházka Lukáš Ing. wrote:
Hello Henri,
that's it - thank you for the solution!
BTW - Your code seems to work even without \blank[-line]:
\setupnote
[footnote]
[after={\switchtobodyfont[\noteparameter{bodyfont}]}]
\setupnotation
[footnote]
[
after
Hello Henri,
that's it - thank you for the solution!
BTW - Your code seems to work even without \blank[-line]:
\setupnote
[footnote]
[after={\switchtobodyfont[\noteparameter{bodyfont}]}]
\setupnotation
[footnote]
[
after={\blank[line]},
indenting={yes,medium
Indenting is easy. For space in between I haven’t found anything useful. You
can hack something with after.
\setupnote
[footnote]
[after={\switchtobodyfont[\noteparameter{bodyfont}]\blank[-line]}]
\setupnotation
[footnote]
[
after={\blank[line]},
indenting={yes,medium
This works for me, is probably not what you want, but at leat it's
consistent (it uses the interline of the main text).
\definestartstop[passus][
before={\startnarrower},
after={\stopnarrower},
style={\tfxx},
]
\starttext
\subject{It looks OK here:}
\input knuth
\startnarrower
\tfxx \input
On Wed, 22 Mar 2017 20:38:01 +0100
"Mikael P. Sundqvist" wrote:
> What am I doing wrong? Any ideas to solve it
Add a \par:
\input knuth\par
Alan
___
If your question is of interest to others as
t. It is too big. Resulting pdf
> is attached.
>
> What am I doing wrong? Any ideas to solve it (i.e. to be able to
> define an environment with narrower smaller text, including a reduced
> interlinespace)?
>
> /Mikael
>
> \definestartstop[passus][
> before={\startnarro
to
define an environment with narrower smaller text, including a reduced
interlinespace)?
/Mikael
\definestartstop[passus][
before={\startnarrower},
after={\stopnarrower},
style={\switchtobodyfont[9pt]},
]
\starttext
\subject{It looks OK here:}
\input knuth
\startnarrower
\switchtobodyfont[9
tarttypescript [Arabic]
> > \definetypeface [Arabic] [rm] [serif] [arabic] [default]
> > \stoptypescript
> >
> > \setuppapersize[A4]
> > \setuplayout[
> > grid=min,
> > backspace=46.666mm, width=140.00mm,
> > topspace=33.000mm, height=198.000mm,
> > he
> \definefontsynonym [SerifBold][Arabic-Bold][features=arabic]
> \stoptypescript
>
> \starttypescript [Arabic]
> \definetypeface [Arabic] [rm] [serif] [arabic] [default]
> \stoptypescript
>
> \setuppapersize[A4]
> \setuplayout[
> grid=min,
> backspace=46.666mm, width=140.00mm,
>
=46.666mm, width=140.00mm,
topspace=33.000mm, height=198.000mm,
header=12.9mm, footer=9mm,
location=middle,
]
\setupbodyfont[Arabic,20pt]
\setupinterlinespace[line=32pt]
\setupwhitespace[line]
\def\TextBig{\switchtobodyfont[Arabic-Regular, rm, 62pt]}
\def\TextNormal{\switchtobodyfont
encircle withcolor \MPcolor{red}) ;
>> draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ;
>> setbounds currentpicture to p ;
>>
>> \stopuniqueMPgraphic
>>
>> \defineoverlay[Vertical][\uniqueMPgraphic{Vertical}]
>>
>> \startsetups[table:initi
>
>\defineoverlay[Vertical][\uniqueMPgraphic{Vertical}]
>
>\startsetups[table:initialize]
>
>\setupTABLE[start]
> [align={middle,lohi},offset=0.5ex,width=1.5cm,
>foregroundstyle={\switchtobodyfont[10pt]}]
>\setupTABLE[1][2][background=Vertical]
>
>\stopse
={\switchtobodyfont[7pt]},
background=color,
location=middle,
backgroundcolor=MyBlue,
framecolor=darkblue,
corner=round]
\definelines
[algorithm]
[space=on,
before={\startframed[algorithmframe]},
after=\stopframed]
\starttext
\startalgorithm
\startitemize[1,joinedup,nowhite]
\item
={\switchtobodyfont[10pt]}]
\setupTABLE[1][2][background=Vertical]
\stopsetups
\starttext
\startlinecorrection[blank]
\startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\bTD \math{\red 0 {\rm (A)}} \eTD
\bTD \math{+\infty} \eTD
\eTR
\bTR
\bTD
author={Nicola Vitacolonna},
> keyword={null}]
>
> % \usebtxdataset[main.bib]
> % \usebtxdefinitions[apa]
> \setupcombinations[distance=3cm,location=top]
> \defineframedcontent[tablebackground][frame=off,background=color,backgroundcolor=colorthree]
> \setuptables[rulethickn
\defineparagraphs[twocol][n=2]
\setupparagraphs[twocol][1][width=.7\textwidth]
\starttext
\switchtobodyfont[17.3pt]
\startslide[title={Which Nulls?}][align=top]
All of the above may be abstracted into three categories:
\startitemize[packed]
\item
Exists, but unknown ({\bf missing
helps.
>
> \defineframed
> [algorithmframe]
> [width=fit,
>align=normal,
>strut=no,
>offset=1ex,
>foregroundstyle={\switchtobodyfont[8pt]},
>background=color,
>location=middle,
>backgroundcolor=lightgray,
>framecolor=darkre
shown outside of the visible space, using
framed instead of
framedtext helps.
\defineframed
[algorithmframe]
[width=fit,
align=normal,
strut=no,
offset=1ex,
foregroundstyle={\switchtobodyfont[8pt]},
background=color,
location=middle,
backgroundcolor=lightgray,
fram
offset=1mm,strut=no,style={\switchtobodyfont[tt,40pt]}]
\bTR
\bTD[loffset=1cm,toffset=1cm]
A
\eTD
\bTD[roffset=1cm,toffset=1cm]
B
\eTD
\eTR
\bTR
\bTD[loffset=1cm,boffset=1cm]
C
\eTD
\bTD[roffs
agella]
\starttext
\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}
\stopformula
\switchtobodyfont[minionmath]
\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}
\stopformula
\stoptext
Wolfgang
___
If your qu
framed{\scale[width=3em,height=1ex]{...}}
or whatever suits the purpose
\starttext
% This will print a sans “A” 1.5x larger than 12pt
\switchtobodyfont[12pt,sans]
\getscaledglyph{1.5}{}{A}\par
% This will print a serif “A” 1.5x larger than 10pt
\switchtobodyfont[10pt,serif]
\getscaledgly
t;
> \starttext
>
> \definefontfeature[whatever][default][extend=2.5]
>
> \definedfont[Serif*whatever at 12pt]
>
> whatever
>
> \stoptext
>
Thank you. One thing that \getscaledglyph does it works agnostic to the
currently selected font. For example:
\starttext
l distance in elements.
2. \setupbodyfont[dimension] or \switchtobodyfont[dimension] as values
for the "style" key modify the size (as shown above). Other ways of
doing it are \tfx, \itx and so on.
Your sample isn’t minimal and it doesn’t compile.
\dorecurse needs two arguments
={\setupbodyfont[5pt]}]
\starttext
\dorecurse{3}{\input zapf \startMyFrame\input knuth\stopMyFrame}
\stoptext
1. before and after control distance in elements.
2. \setupbodyfont[dimension] or \switchtobodyfont[dimension] as values
for the "style" key modify the size (as shown above).
rsections]
>> \usepgfplotslibrary[fillbetween]
>>
>> \starttext
>>
>> \starttikzpicture[/pgf/declare
>> function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
>> \switchtobodyfont[8pt]
>> \startaxis
>>
>
> [...]
> \starttext
&g
Am 16.08.2016 um 16:52 schrieb Fabrice Couvreur:
\usemodule[pgfplots]
\pgfplotsset{compat=1.13}
\usetikzlibrary[intersections]
\usepgfplotslibrary[fillbetween]
\starttext
\starttikzpicture[/pgf/declare
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
\switchtobodyfont[8pt]
\startaxis
On 8/16/2016 4:52 PM, Fabrice Couvreur wrote:
HI Hans,
Sorry, I forgot
\start
\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
\startaxis
...
\stop
seems to be ok ... tikz probably overloads something that the bodyfont
switch needs
HI Hans,
Sorry, I forgot
\usemodule[pgfplots]
\pgfplotsset{compat=1.13}
\usetikzlibrary[intersections]
\usepgfplotslibrary[fillbetween]
\starttext
\starttikzpicture[/pgf/declare
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
\switchtobodyfont[8pt]
\startaxis
[restrict x to domain=-3:5
etupbodyfont[palatino]
\starttext
\m{\cal ABCDEFG \quad \bf ABCDEFG}
\switchtobodyfont[palatino_cg]
\m{\cal ABCDEFG \quad \bf ABCDEFG}
\stoptext
Wonderful, Wolfgang, just wonderful. Lots to learn and explore... And some
info here:
http://wiki.contextgarden.net/Command/definefontfamily
family [palatino_cg] [mm] [TeX Gyre Schola Math]
[range={lowercasescript,lowercaseboldscript,uppercasescript,uppercaseboldscript},force=yes]
\definefontfamily [palatino_cg] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[palatino]
\starttext
\m{\cal ABCDEFG \quad \bf ABCDEFG}
\switchtobo
eight,x=.82\paperwidth]
{\externalfigure[Images/Logo.svg][][height=0.2\textwidth]}
% Activate all layers for this page...
\setupbackgrounds[page][background={logo_layer}]
% Start document body...
\starttext
% Header...
{\switchtobodyfont[40pt] Anciens et Modernes \crlf}
\blackrule[h
[offset=0.8ex,width=0.25\textwidth]
\setupTABLE[row][first]
[background=color,backgroundcolor=lightgray]
\setupTABLE[start][align={middle,lohi}]
\stopsetups
\starttext
{\bf Matrices particulières}
\startlinecorrection[blank]
\startmidaligned
\switchtobodyfont[10pt]
\bTABLE[setups
]
> \setuplanguage[fr]
> \setuplayout [backspace=40mm]
> \setuppagenumbering[location={header,inright}]
> \setupmargindata[inmargin][location=left]
> \setupmargindata[inmargin][style={\switchtobodyfont[ss,10pt]}]
> \setupbodyfontenvironment[default][em=italic]
> \definefallbackfamily [main
40mm]
> \setuppagenumbering[location={header,inright}]
> \setupmargindata[inmargin][location=left]
> \setupmargindata[inmargin][style={\switchtobodyfont[ss,10pt]}]
> \setupbodyfontenvironment[default][em=italic]
> \definefallbackfamily [mainface] [serif] [New Athena Unicode]
>
]
\setupmargindata[inmargin][style={\switchtobodyfont[ss,10pt]}]
\setupbodyfontenvironment[default][em=italic]
\definefallbackfamily [mainface] [serif] [New Athena Unicode]
[preset=range:greek]% for some words in greek
\definefontfamily [mainface] [serif] [GFS Didot]
\setupbodyfont[mainface
ootnote][textstyle={\switchtobodyfont[latinmodern]}] and
> \setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}].
> If I only add one of these, the symbols in the text/notes at the
> bottom of the page, get changed, but if I add both, only the font of
> the symbols in
On 06/19/2016 08:10 PM, Alias 1 wrote:
I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.)
to latinmodern. How do I do this? I tried to add the commands
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and
\setupnotation[footnote][headstyle
I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.)
to latinmodern. How do I do this? I tried to add the commands
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and
\setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}]. If I only
add
ds) \definedfont is the recommended method,
for larger amounts of the text (e.g. the abstract of a book) you can use
\switchtobodyfont to change the size.
Meanwhile I found the command \definebodyfontswitch and defined
switches like \normalsize, \scriptsize, \large, \Large etc.
The \definebodyfontswi
water ;) .
For short texts where you want a certain style and size (e.g. a title
page or a poster with few words) \definedfont is the recommended method,
for larger amounts of the text (e.g. the abstract of a book) you can use
\switchtobodyfont to change the size.
Meanwhile I found the c
ion loads Futura, the third falls back to
Latin Modern
because there is no font with the name “file:futura”.
\definefontfamily[realfutura][ss][Futura]
\definefontfamily[fakefutura][ss][Latin Modern Sans]
\definefontfamily[filefutura][ss][file:futura]
\starttext
\switchtobodyfont[realfutur
offset=2mm]
\startcombination[4*2]
{\hbox to 50pt{\hss\showboxes\switchtobodyfont [modern]$V_i^i
= W_i^i$\hss}} {\infofont modern}
{\hbox to 50pt{\hss\showboxes\switchtobodyfont [cambria]$V_i^i
= W_i^i$\hss}} {\infofont cambria}
{\hbox to 50pt{\hss\showboxes\switchtobodyfont[lucid
offset=2mm]
\startcombination[2*2]
{\hbox to 40pt{\hss\showboxes\switchtobodyfont
[modern]$W_i^i$\hss}} {\infofont modern}
{\hbox to 40pt{\hss\showboxes\switchtobodyfont
[cambria]$W_i^i$\hss}} {\infofont cambria}
{\hbox to
40pt{\hss\showboxes\switchtobodyfont[lucidaot]$W_i^i$\hss}}
densed]
\starttext
\start
\switchtobodyfont[normaltt]
\input ward
\stop
\start
\switchtobodyfont[narrowtt]
\input ward
\stop
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an
.com >
wrote:
Meer, Hans van der
24. Mai 2016 um 16:28
Thanks, I really didn't know that, it could not spot it in my copy of "Fonts in
Context".
But although reset works for \switchtobodyfont, it is not working in
\usebodyfont[reset,9pt] in the second section. Why
Context".
But although reset works for \switchtobodyfont, it is not working in
\usebodyfont[reset,9pt] in the second section.
Why do you think \usebodyfont can be used to change the font size in your
document, is this mentioned in a manual?
There it keeps the size derived from the section
Meer, Hans van der <mailto:h.vanderm...@uva.nl>
24. Mai 2016 um 16:28
Thanks, I really didn't know that, it could not spot it in my copy of
"Fonts in Context".
But although reset works for \switchtobodyfont, it is not working in
\usebodyfont[reset,9pt] in the second section.
in a group did not change the behaviour.
>>
>> \setupbodyfont[dejavu,12pt]
>> \def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red
>> Master\egroup}}
>> \def\MarkMasterB{\inmargin[location=left]{\bgroup\usebodyfont[9pt]\red
>> Master\egroup}}
>&
<h.vanderm...@uva.nl>:
Can someone explain to me the changes in fontsize in the following example?
Enclosing the fontswitches in a group did not change the behaviour.
\setupbodyfont[dejavu,12pt]
\def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red
Master\egroup}}
On 5/24/2016 3:04 PM, Meer, Hans van der wrote:
Can someone explain to me the changes in fontsize in the following example?
Enclosing the fontswitches in a group did not change the behaviour.
\setupbodyfont[dejavu,12pt]
\def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt
bgroup\switchtobodyfont[9pt]\red
Master\egroup}}
\def\MarkMasterB{\inmargin[location=left]{\bgroup\usebodyfont[9pt]\red
Master\egroup}}
\starttext
\startsection[title=\MarkMasterA First title]
\input hawking
\MarkMasterA
\input hawking
\stopsection
\startsection[title=\MarkMasterB First title]
Can someone explain to me the changes in fontsize in the following example?
Enclosing the fontswitches in a group did not change the behaviour.
\setupbodyfont[dejavu,12pt]
\def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red
Master\egroup}}
\def\MarkMasterB{\inmargin
switch to that size.
It is part of a fontsize changing mechanism inside an xmlsetup. In
short what I am doing is:
\scratchdimen=\the\dimexpr\bodyfontsize\relax
\advance\scratchdimen 'somevalue' \relax
%\definebodyfontenvironment[\the\scratchdimen]
\begingroup
% must keep the change local
\switchtobo
. In short what I
am doing is:
\scratchdimen=\the\dimexpr\bodyfontsize\relax
\advance\scratchdimen 'somevalue' \relax
% \definebodyfontenvironment[\the\scratchdimen]
\begingroup
% must keep the change local
\switchtobodyfont[\the\scratchdimen]
...
\endgroup
The commented out \definebodyfontenvironment
ent macro fully executed each time it is
called or does ConTeXt remember and execute it once only?
Just put it at the begin of the document.
\definebodyfontenvironment[18pt]
\starttext
\dorecurse{10}
{\begingroup
\switchtobodyfont[18pt]
\endgroup}
\stoptext
es Y \right) =
\left( {X\over Y} \right)
\stopformula
\startformula
|x\times y| = \left| x\times y \right| = \left( x\times y \right) =
\left( {x\over y} \right)
\stopformula
\stopbuffer
\getbuffer
\switchtobodyfont[cambria] \getbuffer
\switchtobodyfont[pagella] \getbu
I found how to make it work with \switchtobodyfont, I was
missing \definebodyfontenvironment for the sizes. And I had (obviously) to
update the \definebodyfont with the correct sizes.
But still, \tfxx and so do not switch to correct font.
Thanks,
Antoine
On 9 May 2016 at 11:23, Antoine
.
- When using \switchtobodyfont, switches are correct up to 12pt. After
that, it fallback on xits-mathbold
Any help is welcome :-)
The compiled file :
https://drive.google.com/file/d/0Bwo7pPA5_WkDdlNLbHdkMjg2dkU/view?usp=sharing
The source:
\definefontalternative[me]
...
\starttypescript [serif
}
{\switchtobodyfont[#1pt]
\purefontname\font: \input ward
\blank}
\stoptext
My garamondpremierpro.lfg is a modified version of ebgaramond.lfg.
While I was waiting for an answer to my mail, I made a modified version
of type-imp-ebgaramond.mkiv: type-imp-garamondpremierpro.mkiv (second
attachment).
Then I
t,12pt]
\dostepwiserecurse {6} {22} {1} {
\definebodyfontenvironment[default][#1pt][text=#1pt,em=italic]
}
\starttext
\dostepwiserecurse {6} {22} {1} {
\switchtobodyfont[#1pt]
\purefontname\font: \input tufte
\blank
}
\stoptext
but it does not work. Any help?
%\definefontfamily [default] [rm] [GaramondPrem
} {
\definebodyfontenvironment[default][#1pt][text=#1pt,em=italic]
}
\starttext
\dostepwiserecurse {6} {22} {1} {
\switchtobodyfont[#1pt]
\purefontname\font: \input tufte
\blank
}
\stoptext
but it does not work. Any help?
Thanks in advance, Massi
To Hans: if you find it useful for Context
Meer, Hans van der <mailto:h.vanderm...@uva.nl>
4. April 2016 um 11:48
On 04 Apr 2016, at 00:12, Hans Hagen <pra...@wxs.nl
<mailto:pra...@wxs.nl>> wrote:
On 4/3/2016 4:07 PM, Meer, Hans van der wrote:
Previously I could do the following
\starttext
\startMPenvironment[+
On 04 Apr 2016, at 00:12, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>>
wrote:
On 4/3/2016 4:07 PM, Meer, Hans van der wrote:
Previously I could do the following
\starttext
\startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment
\startMPpage
% metafont code
\stopMPpa
On 4/3/2016 4:07 PM, Meer, Hans van der wrote:
Previously I could do the following
\starttext
\startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment
\startMPpage
% metafont code
\stopMPpage
\stoptext
\endinput
This is called by context --run --once etc. producing the figure
Previously I could do the following
\starttext
\startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment
\startMPpage
% metafont code
\stopMPpage
\stoptext
\endinput
This is called by context --run --once etc. producing the figure and in this
case modifying the font to a smaller size
On 3/24/2016 8:58 AM, Peter Münster wrote:
Hi,
Please compare \setupwhitespace[0.0001pt plus 2ex] with
\setupwhitespace[0pt plus 2ex] here:
\showframe
\setuphead[section][style={\switchtobodyfont[72pt]}]
\setupalign[height]
\setupwhitespace[0.0001pt plus 2ex] % desired result
Hi,
Please compare \setupwhitespace[0.0001pt plus 2ex] with
\setupwhitespace[0pt plus 2ex] here:
\showframe
\setuphead[section][style={\switchtobodyfont[72pt]}]
\setupalign[height]
\setupwhitespace[0.0001pt plus 2ex] % desired result
%\setupwhitespace[0pt plus 2ex] % "plus 2ex"
,
command=\FancyEntry]
\setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}]
\starttext
\Topic[First]
\contextversion
First Topic
\page
\Topic[Second]
Second Topic
\page
\Topic[Third]
Third Topic
\stoptext
]
[pagenumber=no,
alternative=command,
command=\FancyEntry]
\setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}]
\starttext
\Topic[First]
\contextversion
First Topic
\page
\Topic[Second]
Second Topic
\page
\Topic[Third]
Third Topic
\stoptext
dth=2.5cm,align={right,nothyphenated},frame=off,offset=0pt]
{\doifelse \rawstructurelistsecond \MyMark
{\color [simpleslides:contrastcolor]{\switchtobodyfont
[12pt]#2\par}}
{\color [simpleslides:altcontrastcolor] {\switchtobodyfont
[12pt]#2\par}}
\blank [smal
401 - 500 of 1630 matches
Mail list logo