Re: [NTG-context] line correction

2017-09-29 Thread Hans Hagen
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

Re: [NTG-context] line correction

2017-09-28 Thread Rik Kabel
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

Re: [NTG-context] line correction

2017-09-28 Thread mf
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

Re: [NTG-context] line correction

2017-09-28 Thread Henri
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

Re: [NTG-context] line correction

2017-09-28 Thread Henri
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

Re: [NTG-context] line correction

2017-09-28 Thread luigi scarso
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

Re: [NTG-context] line correction

2017-09-28 Thread mf
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

Re: [NTG-context] line correction

2017-09-28 Thread Henri
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 >

[NTG-context] line correction

2017-09-28 Thread MF
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

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
Text] > [ >offset=0.6em, > toffset=\lineheight, >background=color, >backgroundcolor=MyColorA, >foregroundstyle={\switchtobodyfont[10pt]}, >align=verytolerant, >frame=off, >corner=01, > ] > > > \showframe > \starttext > >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, > background=color

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
ackground=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alte

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
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

Re: [NTG-context] MS Office Chinese fonts in ConTeXt

2017-08-27 Thread Hans Hagen
\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

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
background=color, >> backgroundcolor=MyColorB, >> ] >> >> \defineframedtext >> [FramedText] >> [ >> offset=0.6em, >> toffset=\lineheight, >> background=color, >> backgroundcolor=MyColorA, >> foregro

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
t;> background=color, >> backgroundcolor=MyColorB, >> ] >> >> \defineframedtext >> [FramedText] >> [ >> offset=0.6em, >> toffset=\lineheight, >> background=color, >> backgroundcolor=MyColorA, >>

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, > background=color, > b

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
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}]

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
[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

Re: [NTG-context] Space from bottom footer to bottom rim of paper

2017-08-09 Thread Fabrice Couvreur
Hi Pablo Thank you very much. By combining the two codes, you get what I want. Fabrice """"""""""""""""""""""""""""""""""

Re: [NTG-context] Couple of questions

2017-07-28 Thread Gerion Entrup
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}}} > >

Re: [NTG-context] Couple of questions

2017-07-28 Thread Pablo Rodriguez
> \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]

Re: [NTG-context] Couple of questions

2017-07-27 Thread Aditya Mahajan
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

[NTG-context] Couple of questions

2017-07-27 Thread Gerion Entrup
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

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Mohammad Hossein Bateni
[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

[NTG-context] mathdigits no longer works

2017-05-15 Thread Akira Kakuto
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

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Otared Kavian
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

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Hans Hagen
: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

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Mohammad Hossein Bateni
nefallbackfamily [minionmath] [mm] [dejavusansmono] [range= > digitsextendedarabicindic,offset=digitsbold,tf=style:bold] > > \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math] > > > > \startttext > > > > \switchtobodyfont[minionmath] > > > > \startformul

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Otared Kavian
tsextendedarabicindic,offset=digitsnormal] > \definefallbackfamily [minionmath] [mm] [dejavusansmono] > [range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold] > \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math] > > \startttext > > \switchtobodyfont[minionmath] > &

Re: [NTG-context] mathdigits no longer works

2017-05-14 Thread Mohammad Hossein Bateni
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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2017-05-12 Thread Jose Luis Arellano
{\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 :

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
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

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Wolfgang Schuster
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]𓇼𓋹

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
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

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Pablo Rodriguez
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

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
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

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread kaddour kardio
​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

[NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
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

Re: [NTG-context] switchtobodyfont and dejavu

2017-04-01 Thread Henning Hraban Ramm
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

Re: [NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt

2017-03-31 Thread Kostirya
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

Re: [NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt

2017-03-31 Thread Kostirya
ot replaced on em—dash when dejavu,14pt >> :-( >> >> >> >> \starttext >> 1-2 11--22 >> >> \switchtobodyfont[dejavu,14pt] >> 1-2 11--22 >> >> \stoptext ___ I

Re: [NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt

2017-03-31 Thread Kostirya
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

[NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt

2017-03-31 Thread Kostirya
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

Re: [NTG-context] Altering footnotes via \setupfootnotes

2017-03-27 Thread Rik
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] [

Re: [NTG-context] Altering footnotes via \setupfootnotes

2017-03-27 Thread Procházka Lukáš Ing .
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

Re: [NTG-context] Altering footnotes via \setupfootnotes

2017-03-24 Thread Henri Menke
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

Re: [NTG-context] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Andres Conrado
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

Re: [NTG-context] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Alan Braslau
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

Re: [NTG-context] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Mikael P. Sundqvist
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},

[NTG-context] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Mikael P. Sundqvist
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

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-20 Thread Ibn Saeed
> \starttypescript [serif] [arabic] [name] > > \definefontsynonym [Serif][Arabic-Regular] [features=arabic] > > \definefontsynonym [SerifBold][Arabic-Bold][features=arabic] > > \stoptypescript > > > > \starttypescript [Arabic] > > \definetypeface [Arabic] [rm] [s

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-19 Thread Otared Kavian
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

[NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-19 Thread Ibn Saeed
=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

Re: [NTG-context] Customize a table with Metafun

2017-02-15 Thread Fabrice Couvreur
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] >> >> \

Re: [NTG-context] Customize a table with Metafun

2017-02-14 Thread Lutz Haseloff
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

[NTG-context] Vertical spacing in enumerations

2017-02-14 Thread Fabrice Couvreur
={\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

[NTG-context] Customize a table with Metafun

2017-02-14 Thread Fabrice Couvreur
={\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

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
> 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}, >

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
\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

Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Fabrice Couvreur
>align=normal, > strut=no, > offset=1ex, >foregroundstyle={\switchtobodyfont[8pt]}, >background=color, >location=middle, >backgroundcolor=lightgray, >framecolor=darkred, >corner=round] > > \definelines > [algorithm]

Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Wolfgang Schuster
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

Re: [NTG-context] Vertical padding in tables

2016-09-11 Thread Wolfgang Schuster
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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-09 Thread Wolfgang Schuster
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

Re: [NTG-context] \getscaledglyph for width-only

2016-08-18 Thread Hans Hagen
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

Re: [NTG-context] \getscaledglyph for width-only

2016-08-17 Thread Brian R. Landy
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

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
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

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Pablo Rodriguez
={\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).

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Fabrice Couvreur
; \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

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Herbert Voss
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

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Hans Hagen
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

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Fabrice Couvreur
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

Re: [NTG-context] math font fallback for palatino \cal

2016-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
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

Re: [NTG-context] math font fallback for palatino \cal

2016-08-14 Thread Wolfgang Schuster
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

Re: [NTG-context] Interlining in a TwoColumns set

2016-08-12 Thread Jean-Pierre Delange
,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

[NTG-context] alignment problem in a table

2016-07-19 Thread Fabrice Couvreur
[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

Re: [NTG-context] Italic in margins and footntes

2016-06-30 Thread Jean-Pierre Delange
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

Re: [NTG-context] Italic in margins and footntes

2016-06-29 Thread Pablo Rodriguez
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] >

[NTG-context] Italic in margins and footntes

2016-06-29 Thread Jean-Pierre Delange
] \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

Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Pablo Rodriguez
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

Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Thomas A. Schmitz
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

[NTG-context] Change font for footnote-symbols

2016-06-19 Thread Alias 1
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

Re: [NTG-context] basic fontsizes question

2016-06-08 Thread Thomas Fehige
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

Re: [NTG-context] basic fontsizes question

2016-06-08 Thread Wolfgang Schuster
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

Re: [NTG-context] LuaTeX finds font, mtxrun --fonts does not list it?

2016-05-30 Thread Wolfgang Schuster
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

Re: [NTG-context] Incorrect math kerning

2016-05-30 Thread Hans Hagen
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[

Re: [NTG-context] Incorrect math kerning

2016-05-30 Thread Hans Hagen
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

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2016-05-25 Thread Wolfgang Schuster
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

Re: [NTG-context] fontsize changes not understood

2016-05-24 Thread Jean-Pierre Delange
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

Re: [NTG-context] fontsize changes not understood

2016-05-24 Thread Meer, Hans van der
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

Re: [NTG-context] fontsize changes not understood

2016-05-24 Thread Wolfgang Schuster
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

Re: [NTG-context] fontsize changes not understood

2016-05-24 Thread Meer, Hans van der
>> >> \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

[NTG-context] Sorting index register

2016-05-24 Thread Manuel Conzelmann
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

Re: [NTG-context] fontsize changes not understood

2016-05-24 Thread Hans Hagen
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

Re: [NTG-context] fontsize changes not understood

2016-05-24 Thread Wolfgang Schuster
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]

[NTG-context] fontsize changes not understood

2016-05-24 Thread Meer, Hans van der
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

Re: [NTG-context] definebodyfontenvironment

2016-05-16 Thread Wolfgang Schuster
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

Re: [NTG-context] definebodyfontenvironment

2016-05-14 Thread Meer, Hans van der
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

Re: [NTG-context] definebodyfontenvironment

2016-05-14 Thread Wolfgang Schuster
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}

<    1   2   3   4   5   6   7   8   9   10   >