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

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

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

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

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
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}}} > > >

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
=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

[NTG-context] Couple of questions

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

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Mohammad Hossein Bateni
ionmath] [mm] [dejavusansmono] >> [range=digitsextendedarabicindic,offset=digitsnormal] >> \definefallbackfamily [minionmath] [mm] [dejavusansmono] >> [range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold] >> \definefontfamily [minionmath] [mm] [TeX Gyre Pagel

[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 Best, Ak

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
] \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

Re: [NTG-context] mathdigits no longer works

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

Re: [NTG-context] mathdigits no longer works

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

Re: [NTG-context] mathdigits no longer works

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

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

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

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
o your document. > > %\starttypescript[sans][newgardiner] > %\setups[font:fallback:sans] > %\definefontsynonym[Sans][file:newgardinersmp] > %\stoptypescript > % > %\definetypeface[newgardiner][ss][sans][newgardiner][ > default][features=default] > > \defi

Re: [NTG-context] Hieroglyphic font query

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

Re: [NTG-context] Hieroglyphic font query

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

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

Re: [NTG-context] Hieroglyphic font query

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

Re: [NTG-context] Hieroglyphic font query

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

[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

Re: [NTG-context] switchtobodyfont and dejavu

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

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

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

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

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 <kosti...@gmail.com>: > Hello. > Two hyphens do not replaced on em—dash when dejavu,14pt > :-( > > > > \starttext > 1-2 11--22 > > \switch

[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

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] [ after

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,medium

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

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

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

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

[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
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

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

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

[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
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

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

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

[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
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

[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
helps. > > \defineframed > [algorithmframe] > [width=fit, >align=normal, >strut=no, >offset=1ex, >foregroundstyle={\switchtobodyfont[8pt]}, >background=color, >location=middle, >backgroundcolor=lightgray, >framecolor=darkre

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 qu

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

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

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

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

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

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

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
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

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 ادريس سماوي حامد
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

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

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

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

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

[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
] > \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

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

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
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

Re: [NTG-context] basic fontsizes question

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

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[realfutur

Re: [NTG-context] Incorrect math kerning

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

Re: [NTG-context] Incorrect math kerning

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

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

Re: [NTG-context] fontsize changes not understood

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

Re: [NTG-context] fontsize changes not understood

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

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 section.

Re: [NTG-context] fontsize changes not understood

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

[NTG-context] Sorting index register

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

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
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

Re: [NTG-context] definebodyfontenvironment

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

Re: [NTG-context] definebodyfontenvironment

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

Re: [NTG-context] \right| spacing issue

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

Re: [NTG-context] Handling Optical Sizes for Minion Pro in Context (LuaTeX)

2016-05-09 Thread Antoine Cailliau
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

[NTG-context] Handling Optical Sizes for Minion Pro in Context (LuaTeX)

2016-05-09 Thread Antoine Cailliau
. - 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

Re: [NTG-context] Garamond Premier Pro font goodies file

2016-05-03 Thread mf
}    {\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

Re: [NTG-context] Garamond Premier Pro font goodies file

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

[NTG-context] Garamond Premier Pro font goodies file

2016-04-28 Thread massifr
} { \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

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Wolfgang Schuster
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[+

Re: [NTG-context] deprecated startMPenvironment

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

Re: [NTG-context] deprecated startMPenvironment

2016-04-03 Thread Hans Hagen
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

[NTG-context] deprecated startMPenvironment

2016-04-03 Thread Meer, Hans van der
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

Re: [NTG-context] Why does 0.0001pt make such a big difference?

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

[NTG-context] Why does 0.0001pt make such a big difference?

2016-03-24 Thread Peter Münster
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"

Re: [NTG-context] placelist not working in latest beta

2016-03-21 Thread Hans Hagen
, 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

[NTG-context] placelist not working in latest beta

2016-03-21 Thread Schmitz Thomas A.
] [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

Re: [NTG-context] horizontal list of sections/topics?

2016-02-12 Thread Alan BRASLAU
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

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