On 9/28/2017 11:47 PM, luigi scarso wrote:
On Thu, Sep 28, 2017 at 11:30 PM, mf wrote:
Thank you Henri.
Now consider this:
---
\setuplayout[grid=both]
\setupquotation[before={\switchtobodyfont[9pt]}]
\starttext
\showgrid
\input knuth
\startlinecorrection
what I wanted to achieve:
\setuplayout[grid=both]
\setupquotation[before={\switchtobodyfont[9pt]}]
\starttext
\showgrid
\input knuth
\startlinecorrection[halfline]
\startquotation
\input sapolsky
\stopquotation
\stoplinecorrection
\input knuth
%\vadjust pre{\blank[line]}% not line, but halfline
Thank you Henri,
a slightly modified version of your solution works!
This is what I wanted to achieve:
\setuplayout[grid=both]
\setupquotation[before={\switchtobodyfont[9pt]}]
\starttext
\showgrid
\input knuth
\startlinecorrection[halfline]
\startquotation
\input sapolsky
\stopquotation
On Thu, 2017-09-28 at 23:30 +0200, mf wrote:
> Thank you Henri.
>
> Now consider this:
> ---
> \setuplayout[grid=both]
> \setupquotation[before={\switchtobodyfont[9pt]}]
>
> \starttext
> \showgrid
>
> \input knuth
>
> \startlin
On Thu, 2017-09-28 at 23:30 +0200, mf wrote:
> Thank you Henri.
>
> Now consider this:
> ---
> \setuplayout[grid=both]
> \setupquotation[before={\switchtobodyfont[9pt]}]
>
> \starttext
> \showgrid
>
> \input knuth
>
> \startlin
On Thu, Sep 28, 2017 at 11:30 PM, mf wrote:
> Thank you Henri.
>
> Now consider this:
> ---
> \setuplayout[grid=both]
> \setupquotation[before={\switchtobodyfont[9pt]}]
>
> \starttext
> \showgrid
>
> \input knuth
>
> \startlin
Thank you Henri.
Now consider this:
---
\setuplayout[grid=both]
\setupquotation[before={\switchtobodyfont[9pt]}]
\starttext
\showgrid
\input knuth
\startlinecorrection[halfline]
\startquotation
\input sapolsky
\stopquotation
\stoplinecorrection
\input knuth
On Thu, 2017-09-28 at 16:21 +0200, MF wrote:
> Hello list,
> I would like ConTeXt to snap normal text to grid after a quotation.
> This example does not work:
>
> --
> \setupquotation[before={\switchtobodyfont[9pt]}]
>
> \starttext
>
Hello list,
I would like ConTeXt to snap normal text to grid after a quotation.
This example does not work:
--
\setupquotation[before={\switchtobodyfont[9pt]}]
\starttext
\showgrid
\input knuth
\startlinecorrection[halfline]
\startquotation
\input sapolsky
\stopquotation
Text]
> [
>offset=0.6em,
> toffset=\lineheight,
>background=color,
>backgroundcolor=MyColorA,
>foregroundstyle={\switchtobodyfont[10pt]},
>align=verytolerant,
>frame=off,
>corner=01,
> ]
>
>
> \showframe
> \starttext
>
>
bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
>
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> toffset=\lineheight,
> background=color
ackground=color,
backgroundcolor=MyColorB,
]
\defineframedtext
[FramedText]
[
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant,
alte
Hi Aditya,
I tried :
\defineframedtext
[FramedText]
[
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant,
alternative=serried, % text wrapped
frame=off,
corner=00
\eTD\bTD
\ss 我能吞下玻璃而不伤身体 \eTD \eTR
\bTR\bTD 华文仿宋 \eTD\bTD \tt STFANGSO.TTF \eTD\bTD STFangsong \eTD\bTD
\switchtobodyfont[mschinese-light]我能吞下玻璃而不伤身体 \eTD \eTR
\eTABLEbody
There is no need for grouping. You switch to sans with \ss as it's part
of the typeface specification.
For
background=color,
>> backgroundcolor=MyColorB,
>> ]
>>
>> \defineframedtext
>> [FramedText]
>> [
>> offset=0.6em,
>> toffset=\lineheight,
>> background=color,
>> backgroundcolor=MyColorA,
>> foregro
t;> background=color,
>> backgroundcolor=MyColorB,
>> ]
>>
>> \defineframedtext
>> [FramedText]
>> [
>> offset=0.6em,
>> toffset=\lineheight,
>> background=color,
>> backgroundcolor=MyColorA,
>>
frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> toffset=\lineheight,
> background=color,
> b
=\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
""""""""""""""""""""""""""""""""""
bibliography 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]
yntax=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]
\definet
er{\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]
\setupheadtext[chapter=Chapter, content=Table of Contents]
\starttext
\completecontent
[mm] [dejavusansmono]
>> [range=digitsextendedarabicindic,offset=digitsnormal]
>> \definefallbackfamily [minionmath] [mm] [dejavusansmono]
>> [range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
>> \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]
>&g
The small modification I was talking about ...
The following change for Mohammad's one may also be ok:
\startttext
\switchtobodyfont[minionmath]
--->
\switchtobodyfont[minionmath]
\starttext
Bes
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
:bold]
\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
nefallbackfamily [minionmath] [mm] [dejavusansmono] [range=
> digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
> > \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]
> >
> > \startttext
> >
> > \switchtobodyfont[minionmath]
> >
> > \startformul
tsextendedarabicindic,offset=digitsnormal]
> \definefallbackfamily [minionmath] [mm] [dejavusansmono]
> [range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
> \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]
>
> \startttext
>
> \switchtobodyfont[minionmath]
>
&
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 version 2017.04.27 01:00, the digits do not
chan
{\bf 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 :
to your document.
>
> %\starttypescript[sans][newgardiner]
> %\setups[font:fallback:sans]
> %\definefontsynonym[Sans][file:newgardinersmp]
> %\stoptypescript
> %
> %\definetypeface[newgardiner][ss][sans][newgardiner][
> default][features=default]
>
> \definefontfamily[new
finefontsynonym[Sans][file:newgardinersmp]
%\stoptypescript
%
%\definetypeface[newgardiner][ss][sans][newgardiner][default][features=default]
\definefontfamily[newgardiner][rm][NewGardiner]
\starttext
{\definedfont[file:newgardinersmp at 14.4pt]𓇼𓋹}
\switchtobodyfont[newgardiner,14.4pt]𓇼𓋹
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: “NewGar
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 wo
s. 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” is th
Can you please copy-past de log file?
On Sun, Apr 2, 2017 at 5: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
>
> \switchtobody
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” is the
Am 2017-03-31 um 09:00 schrieb Kostirya :
> 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 be across a different fon
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 to
ot replaced on em—dash when dejavu,14pt
>> :-(
>>
>>
>>
>> \starttext
>> 1-2 11--22
>>
>> \switchtobodyfont[dejavu,14pt]
>> 1-2 11--22
>>
>> \stoptext
___
I
I apologize.
It is not hyphen symbol. It is unicode.
Everything is working!
2017-03-31 11:46 GMT+03:00 Kostirya :
> Hello.
> Two hyphens do not replaced on em—dash when dejavu,14pt
> :-(
>
>
>
> \starttext
> 1-2 11--22
>
> \switchtobodyfont[dejavu,14
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 an
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]
[
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,m
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 knut
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 well, please add an
sulting 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={\startnarrower},
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
> \starttypescript [serif] [arabic] [name]
> > \definefontsynonym [Serif][Arabic-Regular] [features=arabic]
> > \definefontsynonym [SerifBold][Arabic-Bold][features=arabic]
> > \stoptypescript
> >
> > \starttypescript [Arabic]
> > \definetypeface [Arabic] [rm] [s
fBold][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,
> topspace=33.000mm, height
=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
lor{red}) ;
>> draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ;
>> setbounds currentpicture to p ;
>>
>> \stopuniqueMPgraphic
>>
>> \defineoverlay[Vertical][\uniqueMPgraphic{Vertical}]
>>
>> \startsetups[table:initialize]
>>
>> \
eMPgraphic{Vertical}]
>
>\startsetups[table:initialize]
>
>\setupTABLE[start]
> [align={middle,lohi},offset=0.5ex,width=1.5cm,
>foregroundstyle={\switchtobodyfont[10pt]}]
>\setupTABLE[1][2][background=Vertical]
>
>\stopsetups
>
>\starttext
>\star
={\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
> leftmargin=1em,
> rightmargin=1em,
> ]
>
> % Tables
> \setuptables[rulethickness=0.06em]
>
> \setupinteraction[state=start, % make hyperlinks active, etc.
> style=\tf,
> color=colortwo,
> title={What Do You Mean, “Null”?},
> author={Nicola Vitacolonna},
>
\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
>align=normal,
> strut=no,
> offset=1ex,
>foregroundstyle={\switchtobodyfont[8pt]},
>background=color,
>location=middle,
>backgroundcolor=lightgray,
>framecolor=darkred,
>corner=round]
>
> \definelines
> [algorithm]
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 question
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]
\getscaledglyph{1.5}{}{A}\par
\sto
gt; \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
% This will pr
nd after control 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 need
={\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).
; \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
>
> \starttikzpicture[
&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
xt
\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
Thanks again!
--
Idris Samawi Hami
lbackfamily [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}
\switc
,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[height=0.6m
[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
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]
> [pres
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 the
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
ords) \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 \definebodyfo
n the 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
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[realfutura]I
page[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[
rtTEXpage[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
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 entry
16 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 do you think \usebodyfont
can be used to chang
ut 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 title. Both commands however,
a
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 sect
>>
>> \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}}
>> \starttext
>> \startse
ot; :
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[loc
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
o 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
\switc
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 \definebodyfonte
ntenvironment 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}
401 - 500 of 1747 matches
Mail list logo