Re: [NTG-context] issues with fonts and font effects

2020-11-08 Thread Wolfgang Schuster
}] \definefontfamily[face2][rm][gabriola] [features={default, ef2}] \starttext \switchtobodyfont[face1]\dorecurse{100}{a b c } \switchtobodyfont[face2]\dorecurse{100}{a b c } \switchtobodyfont[palatino]\dorecurse{100}{a b c } \stoptext \setupbodyfont[palatino] or \switchtobodyfont

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 11:18 AM, Sylvain Hubert wrote: > Hi Pablo, > > thanks for the suggestion. Here's the minimal example which shows the > difference: > >     \definefontfamily[face][rm][dejavuserif] >     \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext > > this

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 11:18, Sylvain Hubert wrote: > Hi Pablo, > > thanks for the suggestion. Here's the minimal example which shows the > difference: > > \definefontfamily[face][rm][dejavuserif] > \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext > > this

[NTG-context] issues with fonts and font effects

2020-11-08 Thread Pablo Rodriguez
}] \starttext \switchtobodyfont[face1]\dorecurse{100}{a b c } \switchtobodyfont[face2]\dorecurse{100}{a b c } \switchtobodyfont[palatino]\dorecurse{100}{a b c } \stoptext \setupbodyfont[palatino] or \switchtobodyfont[palatino] don’t seem to work at all. Results are different

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Sylvain Hubert
Hi Pablo, thanks for the suggestion. Here's the minimal example which shows the difference: \definefontfamily[face][rm][dejavuserif] \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext this should warn: fonts > checking > char ɑ (U+00251) in font 'LatinModernMath-Reg

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 2:35 AM, Sylvain Hubert wrote: > Dear List, > > after hours of debugging, I finally found out that > \switchtobodyfont[face, 20pt] does NOT behave the same with > \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is > the correct one, while the f

[NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-07 Thread Sylvain Hubert
Dear List, after hours of debugging, I finally found out that \switchtobodyfont[face, 20pt] does NOT behave the same with \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is the correct one, while the former does nothing but falling back to latinmodern. Does anyone know when

[NTG-context] weird behavior of font.feature.effect

2020-11-07 Thread Sylvain Hubert
, effect={width=1.0}}}] \starttext \startitemize[n, packed] \item \switchtobodyfont[face1]\it\dorecurse{100}{a b c } \item \switchtobodyfont[face2]\it\dorecurse{100}{a b c } \item \switchtobodyfont[face3]\it\dorecurse{100}{a b c } \stopitemize \stoptext Could someone explain

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Wolfgang Schuster
         \startfootnotetitle[title={Notas}]              \placefootnotes          \stopfootnotetitle      \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setupfootnotedefinition[style={\switchtobodyfont[12pt]}] \setuphead[chapter][aftersection=\setups{chapter:after

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Henning Hraban Ramm
se\rawcountervalue[footnote]\relax > \else > \startfootnotetitle[title={Notas}] > \placefootnotes > \stopfootnotetitle > \fi > \stopsetups > > \setupnotes[location=none] > \setupnotation[way=bychapter] > \setupfootnotedefinition

[NTG-context] Footnote font size equal to main text font size

2020-09-14 Thread Jairo A. del Rio
}] \placefootnotes \stopfootnotetitle \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setupfootnotedefinition[style={\switchtobodyfont[12pt]}] \setuphead[chapter][aftersection=\setups{chapter:after}] \starttext \startchapter[title={Chapter One}] Here

Re: [NTG-context] Fullwidth topfigure with caption in the margin

2020-09-08 Thread Mikael Sundqvist
tance=0.375in, > width=4.125in, > ] > > \showframe > > \definecolor [transparentred] [r=1,t=.5,a=1] > > \definefloat[topfigure][topfigures][figure] > > \setupfloat[topfigure][ > default={margin}, > location=flushleft, > maxwidth=6.5in, > ] > > \setup

[NTG-context] Can't output direct glyphs either in MKIV or LMTX

2020-09-07 Thread Andres Conrado Montoya
nts/Phaistos.otf usedmethod=direct However, the glyph is not displayed in the pdf. I've tried both in MKIV and LMTX with no luck. Maybe someone here will have a clue. MWE: %% \definesymbol[arbol] [\getnamedglyphdirect{phaistos}{u101F2}] \starttext \switchtobodyfont[72pt] \sym

[NTG-context] Fullwidth topfigure with caption in the margin

2020-09-07 Thread Mikael Sundqvist
[topfigure][topfigures][figure] \setupfloat[topfigure][ default={margin}, location=flushleft, maxwidth=6.5in, ] \setupcaption[topfigure][ number=no, location=bottom, style={\switchtobodyfont[8bp]}, ] \starttext \dorecurse{4}{\samplefile{knuth}} \startplacetopfigure[title={\samplefile{ward

[NTG-context] author in ToC and other design complications

2020-09-03 Thread jbf
this MWE): %-- \setuphead [subject] [incrementnumber=list] \setuphead [title] [incrementnumber=list] \setupcombinedlist   [content] [list={chapter,title,section,subsection}]\switchtobodyfont[10.5pt] \setuplist[chapter][style=normal,alternative=b, before=] And then I

Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf
={\switchtobodyfont[10pt,ss]}] This proper way of setting out the \setupheader has in fact resolved the situation and it now applies to both recto and verso headers. Thank you Julian On 4/9/20 7:16 am, Aditya Mahajan wrote: On Fri, 4 Sep 2020, jbf wrote: Thanks Otared. That clears up that little item

Re: [NTG-context] defining font family for several options

2020-09-03 Thread Aditya Mahajan
On Fri, 4 Sep 2020, jbf wrote: > Thanks Otared. That clears up that little item :-) > > BTW I know how to reduce font size in the headers (chapter titles) that > appear on the recto pages, which I can do with something like > \setupheader [style={\ss\switchtobodyfont[10pt]}],

Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf
Thanks Otared. That clears up that little item :-) BTW I know how to reduce font size in the headers (chapter titles) that appear on the recto pages, which I can do with something like \setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't seem to affect the header (title

Re: [NTG-context] defining font family for several options

2020-09-01 Thread jbf
to sans serif and else. Then when you want to use the special font in some of the titles you use {\switchtobodyfont[mychapterfont]\ss my text} You can use also \start \switchtobodyfont[mychapterfont] \ss my text \stop in case the braces are not convenient for a longer text. Best regards: Otared

Re: [NTG-context] defining font family for several options

2020-09-01 Thread Otared Kavian
of the titles you use {\switchtobodyfont[mychapterfont]\ss my text} You can use also \start \switchtobodyfont[mychapterfont] \ss my text \stop in case the braces are not convenient for a longer text. Best regards: Otared > On 2 Sep 2020, at 01:22, jbf wrote: > > I presume

Re: [NTG-context] defining font family for several options

2020-09-01 Thread jbf
I presume you mean, {\switchtobodyfont[itcavantgarde]\ss My text} for the case I mentioned? Because at no point in the example I gave of \definefontfamily[mainface] had I defined ss as an AvanteGarde typeface, and that is the heart of my question. Can I somehow define two kinds of sans serif

Re: [NTG-context] defining font family for several options

2020-09-01 Thread Aditya Mahajan
peface such as ITCAvantGarde? How do I > declare that? Do I just give it another name, e.g. > \definefontfamily[chapter][itcavantgarde] etc? If I did that, how then > do I refer to it? Obviously not just as {\ss my text} since that would > call in the dax font. {\switchtob

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread jbf
at which the chapter number appears: below is an example in which one uses \raise and \hbox. \setuppagenumbering[state=start,location=footer] \setuphead[chapter] [ % numberstyle={\switchtobodyfont[48pt]}, numbercolor=gray, alternative=command, command

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread Otared Kavian
] \setuphead[chapter] [ numberstyle={\switchtobodyfont[48pt]}, numbercolor=gray, alternative=command, command=\MemoirChapter, ] \define[2]\MemoirChapter {\framed[frame=off,width=broad,align=middle] {\startoverlay

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
to \defineoverlay[number] and then add text on top \framed (but without the frame borders). Am I at least correct about this? You don't need metafun for something this simple. Here is a crude implementation: \setuphead[chapter] [ numberstyle={\switchtobodyfont[48pt

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
the frame borders). Am I at least correct about this? You don't need metafun for something this simple. Here is a crude implementation: \setuphead[chapter] [ numberstyle={\switchtobodyfont[48pt]}, numbercolor=gray, alternative=command

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread Aditya Mahajan
rs of just where to start! I assume I would have to > \defineoverlay[number] and then add text on top \framed (but without the > frame borders). Am I at least correct about this? You don't need metafun for something this simple. Here is a crude implementation: \setuphead[chapter]

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
eringsetup=userdata:margintext] > > \startsetups [userdata:margintext] > \margindata > [inright] > [style={\switchtobodyfont[9pt]}, > width=\rightmarginwidth, > align={flushleft,broad}, > stack=yes] > {\startframedtext[before=,after=,offse

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}, stack=yes] {\startframedtext[before=,after=,offset=0pt,width=max,frame=off] \getinlineuserdata

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Fabrice Couvreur
right] > > \setupmargindata [marginfigure][command=\vbox,align=middle] > > \setupmargindata [marginfigure][command=\vbox,align=middle,stack=yes] > > > \startsetups [userdata:margintext] > > \margindata > > [inright] > > [%style=\smallbodyfont, > > st

Re: [NTG-context] Store images and text in the right margin

2020-07-02 Thread Marco Patzer
lign=middle] \setupmargindata [marginfigure][command=\vbox,align=middle,stack=yes] > \startsetups [userdata:margintext] > \margindata > [inright] > [%style=\smallbodyfont, > style={\switchtobodyfont[9pt]}, > width=\rightmarginwidth, stack=yes, >

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Remarque — }\getinlineuserdata} \stopsetups \showframe \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]} \startchapter[title=First chapter

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
n call [844]: ...-64/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:435: attempt to index a nil value (upvalue 'filehandle') 1 >> \newdimen\LWidth 2 \newdimen\LHeight 3 \newdimen\LDistanceX 4 \newdimen\LDistanceY 5 6 \LWidth=75mm 7 \LHeight=30mm 8

[NTG-context] \goto works but links don't when passed via textext() in METAPOST

2020-05-10 Thread Gerben Wierda
"\definebodyfont[11pt][rm][default=Regular at 11pt]\switchtobodyfont[11pt]\setupinterlinespace[12.1pt]\framed[align=flushleft,frame=off,offset=none,width=170.000bp]{\colored[r=0.000, g=0.000, b=0.000]{\tf The elements are shown in colors where blue represents active structure, yellow behavio

Re: [NTG-context] long caption in 2-page spread

2020-05-07 Thread jbf
[location=here,title={{\sc Plates 12/13.} \switchtobodyfont[9.5pt] My very, very,_very long\\ caption for this_ figure}]     \externalfigure[plate12-13.jpg][height=.8\textheight]%     \stopplacefigure     \stopspread     \setuppagenumbering[state=start] \stoppostponing but ..._very long

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-04 Thread Pablo Rodriguez
rst group sets up the name to be used in ConTeXt (mainly in \setupbodyfont and \switchtobodyfont). 2. The second group specifies which kind of typeface is: serif, sans-serif, typewriter, math and others. Of course, this isn’t a declaration of what kind of font the selected one is, but how ConTeXt wi

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
\stoptikzpicture \stopmidaligned \blank \startmidaligned \switchtobodyfont[9pt] \starttikzpicture \startaxis \addplot {x}; \node[above left] at (2,2) {\cscript{C}}; \stopaxis \stoptikzpicture \stopmidaligned \stoptext Le lun. 4 mai 2020 à 19:18, Aditya Mahajan a écrit : > On

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Fabrice Couvreur wrote: Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. I don't know the answer, but here is a simpler example without pgfplot which fails (different calligraphic C's): \define[1]\cscript{\start\switchtobodyfont[xitsbidi]\m

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
this problem ? > Thanks for your help. > Fabrice > > begin example > > \usemodule[pgfplots] > \pgfplotsset{compat=newest} > > \define[2]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_{#2}}\stop} > > \starttext > > \startmidaligned > \startt

Re: [NTG-context] Strangely placed dot

2020-05-04 Thread Mikael P. Sundqvist
placement of the dot in this example, and how > can I avoid it? > > \starttext > \startTEXpage[offset=3bp] > $E_tE_s=E_{\min(t,s)}$. > > \switchtobodyfont[stixtwo]$E_tE_s=E_{\min(t,s)}$. > > \switchtobodyfont[lucidaot]$E_tE_s=E_{\min(t,s)}$. > \stopTEXpage >

Re: [NTG-context] lmt_followtext crashes while standard followtext itself works

2020-05-04 Thread Hans Hagen
On 5/3/2020 11:47 PM, Gerben Wierda wrote: The following example has been extracted from my automatically generated MP code. \starttext \startMPpage string texstring; texstring := "{\colored [r=0.00, g=0.00, b=0.00]{\definebodyfont [9.0pt][rm][default=Regular at 9.0pt]\switchtobod

[NTG-context] lmt_followtext crashes while standard followtext itself works

2020-05-03 Thread Gerben Wierda
The following example has been extracted from my automatically generated MP code. \starttext \startMPpage string texstring; texstring := "{\colored [r=0.00, g=0.00, b=0.00]{\definebodyfont [9.0pt][rm][default=Regular at 9.0pt]\switchtobodyfont [9.0pt]\setupinterlinespace [9.9pt]\t

[NTG-context] Strangely placed dot

2020-05-02 Thread Mikael P. Sundqvist
Hi, what is going on with the placement of the dot in this example, and how can I avoid it? \starttext \startTEXpage[offset=3bp] $E_tE_s=E_{\min(t,s)}$. \switchtobodyfont[stixtwo]$E_tE_s=E_{\min(t,s)}$. \switchtobodyfont[lucidaot]$E_tE_s=E_{\min(t,s)}$. \stopTEXpage \stoptext Output attached

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-02 Thread Hans Hagen
t][rm][default=Regular at 14.9pt]\switchtobodyfont[14.9pt]\setupinterlinespace[16.9pt]\framed[align=center,frame=off,offset=none,width=335.350bp]{\colored[r=0.000, g=0.000, b=0.000]{\rm (Artifact)\\}}"); draw pic scaled 1.13; \stopMPpage \stoptext Produces nice Optima at 14.9pt without 

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
d problems. > >> \setupbodyfont [optima] >> \starttext >> \startMPpage[instance=doublefun] >> picture pic; >> pic := textext("\definebodyfont[14.9pt][rm][default=Regular at >> 14.9pt]\switchtobodyfont[14.9pt]\setupinterlinespace[16.9pt]\framed[align=c

[NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
] [default] \setupbodyfont [optima] \starttext \startMPpage[instance=doublefun] picture pic; pic := textext("\definebodyfont[14.9pt][rm][default=Regular at 14.9pt]\switchtobodyfont[14.9pt]\setupinterlinespace[16.9pt]\framed[align=center,frame=off,offset=none,width=335.350bp]{\colored[r=0.00

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Wolfgang Schuster
] \stoptypescript \definetypeface [optima] [ss] [sans] [optima] [default] Set a math font to avoid problems. \setupbodyfont [optima] \starttext \startMPpage[instance=doublefun]   picture pic; pic := textext("\definebodyfont[14.9pt][rm][default=Regular at 14.9pt]\switchtobodyfont[1

Re: [NTG-context] simple way to change value of 'x' in \tfx?

2020-04-27 Thread Wolfgang Schuster
declaration, but that didn't work either. Use \switchtobodyfont. I'm sure there is a simple way to achieve what I want. Any thoughts? \setupbodyfont[pagella,11pt] \setupdelimitedtext [blockquote] [ style={\switchtobodyfont[10pt]}, before={\setupinterlinespace[line=2.4ex

Re: [NTG-context] Solution: METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-25 Thread Gerben Wierda
On a hunch, I found a solution. I added \\ instead of \par at the end and goit exactly what I wanted. \enabletrackers[context.trace] \starttext %\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, g=0.000, %b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace

[NTG-context] METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
t,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, >> g=0.000, >> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm >> [My]\\Application\\(Component)}} >> >> \stoptext >> >> and if I change the value to 0.6, only the first line b

[NTG-context] METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
t,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, >> g=0.000, >> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm >> [My]\\Application\\(Component)}} >> >> \stoptext >> >> and if I change the value to 0.6, only the first line b

[NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-04-24 Thread Fabrice Couvreur
Hi, This macro was written by Otared and it works well unless I change the size of the font (see the second graph). How to correct this problem ? Thanks for your help. Fabrice begin example \usemodule[pgfplots] \pgfplotsset{compat=newest} \define[2]\cscript{\start\switchtobodyfont[xitsbidi

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
width=106.400bp]{\colored[r=0.000, >>> g=0.000, >>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm >>> [My]\\Application\\(Component)}} >>> >>> \stoptext >>> >>> and if I change the value to 0.6, only the fir

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster
Thomas A. Schmitz schrieb am 24.04.2020 um 18:40: On 24. Apr 2020, at 18:19, Gerben Wierda wrote: \starttext \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, g=0.000, b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm [My]\\Application

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Thomas A. Schmitz
> On 24. Apr 2020, at 18:19, Gerben Wierda wrote: > > \starttext > > \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, > g=0.000, > b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm > [My]\\Application\\(Com

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
I want the lines in this frame packed more closely together: \starttext \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\setupinterlinespace[0.9]\colored[r=0.000, g=0.000, b=0.000]{\switchtobodyfont[11.0pt] \rm [My]\\Application\\(Component)}} \stoptext I tried a bit

Re: [NTG-context] Is there a 'sized' command equivalent to \colored?

2020-04-23 Thread Gerben Wierda
Answering my own question: \switchtobodyfont > On 23 Apr 2020, at 16:45, Gerben Wierda wrote: > > I can directly colour a text in rgb by doing > \colored[r=0.8,b=0.6,c=0.4]{Text}. Suppose I want to hard code a piece of > text as 12.8pt, is there a simple way to do tha

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-11 Thread Jeong Dal
path p, q ; pair A, B, start, now; >u := 1.8cm; >A := dir(210)*u; >B := dir(-30)*u; >dy := sind(30)*u; >dx := 2*cosd(30)*u; >for n = 0 upto 4: >start := n*dir(210)*u; >for r = 0 upto n: >s := n - r; >now := start + r*r

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-11 Thread Hans Hagen
p; "} = "& decimal tt & "$"),now); dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & decimal r &

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-11 Thread Otared Kavian
uot; & decimal r & > ")*fact(" & decimal s &" )))"); > tt := lua("mp.print(combi(" & decimal n & "," & decimal r & " ))"); > > now := start+r*right*dx; > dotlabel.top(textext("$

[NTG-context] running lua in metafun and in ConTeXt

2020-04-11 Thread Jeong Dal
decimal n & ")/(fact(" & decimal r & ")*fact(" & decimal s &" )))"); tt := lua("mp.print(combi(" & decimal n & "," & decimal r & " ))"); now := start+r*right*dx; dotlabel.top(texte

[NTG-context] Fontfallbacks using typescripts

2020-04-04 Thread Tim Steenvoorden
\setupbodyfont[main,9pt] $\downzigzagarrow,↯,\downarrow$ {\switchtobodyfont[pagella,10pt]↯} \stopproduct ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Math font not embedded

2020-03-18 Thread Jan Willem Flamma
Running Pablo’s example on a Mac and Windows machine gives the attached > logs and output.can you test this: \setupbodyfont[dejavu] \starttext    \m{\sin^2(t)^2 + \cos^2(t) = 1}    \switchtobodyfont[pagella]    \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext is there a dejavu-m

Re: [NTG-context] Math font not embedded

2020-03-18 Thread Hans Hagen
gives the attached logs and output. can you test this: \setupbodyfont[dejavu] \starttext \m{\sin^2(t)^2 + \cos^2(t) = 1} \switchtobodyfont[pagella] \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext is there a dejavu-math.otf file on your system

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
} \define\stoptikzpicture {\endtikzpicture\egroup} \define[2]\CScript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_{#2}}\stop} \usemodule[tikz] \usemodule[pgfplots] \pgfplotsset{compat=newest} \unexpanded\def\R{\math{\mathbb{R}}\autoinsertnextspace} \unexpanded\def\intervalff#1

Re: [NTG-context] Adjust kern for one character

2019-12-26 Thread Rik Kabel
}    }    }    fonts.handlers.otf.addfeature {    name = "xkern",    type = "kern",    data = {    ["x"] = { ["x"] = 500 },    [" "] = { ["J"] = 500 }    }    }     \stopluac

Re: [NTG-context] Adjust kern for one character

2019-12-26 Thread Hans Hagen
fonts.handlers.otf.addfeature { name = "xkern", type = "kern", data = { ["x"] = { ["x"] = 500 }, [" "] = { ["J"] = 500 } } } \stopluacode \startbu

Re: [NTG-context] Adjust kern for one character

2019-12-26 Thread Rik Kabel
["x"] = { ["x"] = 500 }, [" "] = { ["J"] = 500 } } } \stopluacode \startbuffer[Sample] g, Jaxxb AJon \stopbuffer \define[2]\Test{ {\switchtobodyfont[#1]#2\getbuffer[Sample]}} \setupbodyfo

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
llonius.103][width=2.0in]} \switchtobodyfont[nameface] \setlayer[tblplacecard][x=10em,y=3.0em]% {\tfg\it\color[orangered]{Vidya}} \flushlayer[tblplacecard] \stopbuffer \starttext \setupcolors[state=start] %%% 1. Show the frame and layout information. \showfram

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Hans Hagen
dle] \setupbodyfont [up-one,13pt] \starttext \obeylines \ss\tf\getbuffer [Sampler] \ss\bf\getbuffer [Sampler] \ss\bi\getbuffer [Sampler] \ss\it\getbuffer [Sampler] \switchtobodyfont[up-two] \ss\tf\getbuffer [Sampler]

[NTG-context] Disappearing font feature

2019-12-21 Thread Rik Kabel
getbuffer [Sampler] \ss\it\getbuffer [Sampler] \switchtobodyfont[up-two] \ss\tf\getbuffer [Sampler] \ss\bf\getbuffer [Sampler] \ss\bi\getbuffer [Sampler] \ss\it\getbuffer [Sampler] \switchtobodyfont[up-three] \ss\tf\getbuffer [Sampler] \page

Re: [NTG-context] Style for captions

2019-12-18 Thread Otared Kavian
t;>> >>> Best regards: Otared >>> PS: here is the example (not so minimal, sorry…) >>> % begin example-caption.tex >>> \setupcaption[figure][ >>> headstyle={\bix}, >>> style={\itx}] >> &g

Re: [NTG-context] Style for captions

2019-12-18 Thread Wolfgang Schuster
that a smaller size applies also to the math formula? Best regards: Otared PS: here is the example (not so minimal, sorry…) % begin example-caption.tex \setupcaption[figure][ headstyle={\bix}, style={\itx}] style={\switchtobodyfont[small]\setupinterlinespace\it} \setupcaption

Re: [NTG-context] Style for captions

2019-12-18 Thread Wolfgang Schuster
but using \switchtobodyfont[small] instead of \tfx. \tf.. \bf.., etc. only change the text font; \switchtobodyfont changes the entire font family, including math. Only \tx and \txx (and the combinations \tfx etc.) ignore math. \starttext xxx \m{xxx} {\tfc xxx \m{xxx}} {\tfx xxx \m{xxx

Re: [NTG-context] Style for captions

2019-12-18 Thread Aditya Mahajan
On Wed, 18 Dec 2019, Otared Kavian wrote: Thanks Aditya! That solve smy issue. However, it is a bit of magic to know that \setupinterlinespace makes also the math font small, even for inline math. The magic bit is not \setupinterlinespace but using \switchtobodyfont[small] instead of \tfx

Re: [NTG-context] Style for captions

2019-12-18 Thread Otared Kavian
formula? >> >> Best regards: Otared >> PS: here is the example (not so minimal, sorry…) >> % begin example-caption.tex >> \setupcaption[figure][ >> headstyle={\bix}, >> style={\itx}] > > style={\switchtobodyfont[small]\setupinterlinespace\it

Re: [NTG-context] Style for captions

2019-12-18 Thread Aditya Mahajan
formula? Best regards: Otared PS: here is the example (not so minimal, sorry…) % begin example-caption.tex \setupcaption[figure][ headstyle={\bix}, style={\itx}] style={\switchtobodyfont[small]\setupinterlinespace

[NTG-context] Using lmtx and new metafun

2019-12-12 Thread Otared Kavian
, sy = 5mm, scale = 0.5, grid = true, xaxisnumbers = true, yaxisnumbers = true, showmyorigin = true, style = "\switchtobodyfont[8pt]", ]; vardef do_GridAxisPlot = image ( pushparameters "GridAxisPlot";

Re: [NTG-context] issue with beta from 2019.11.29 21:47 in Windows

2019-12-02 Thread Wolfgang Schuster
, bf=style:condensedbold, bi=style:condensedbolditalic]     \definefontfamily [gill-sans] [ss] [Gill Sans Nova] \stoplmtxmode \starttext regular \italic{italic} \bold{bold} \bolditalic{bolditalic} \switchtobodyfont[arial-narrow] regular \italic{italic} \bold{bold} \bolditalic

Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Wolfgang Schuster
] % This seems to define the size of the page header, if \setpbodyfont is not called. \switchtobodyfont[50pt] \setuplayouttext [header][text] [ style=small, middletext=Page Header, righttext=\pagenumber, rightstyle=bold ] \switchtobodyfont[8pt] \starttext \input ward.tex \stoptext I half

[NTG-context] How to define the font size of the page header?

2019-11-05 Thread Kerry Sainsbury
header, if \setpbodyfont is not called. \switchtobodyfont[50pt] \setuplayouttext [header][text] [ style=small, middletext=Page Header, righttext=\pagenumber, rightstyle=bold ] \switchtobodyfont[8pt] \starttext \input ward.tex \stoptext I half expected the 'style' property

[NTG-context] A question about an algorithm environment

2019-10-28 Thread Fabrice Couvreur
\switchtobodyfont[11pt]}, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm {\blue def nom} (argument1

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-17 Thread Otared Kavian
},\quad \cal{K},\quad \cal{L},\quad \cal{M},\quad \cal{P},\quad \cal{S},\quad \cal{T}\stopformula\hairline\stopbuffer\switchtobodyfont[lucidaot]{\bf Lucida OT: }\getbuffer[test]\switchtobodyfont[myfont]{\bf Lucida OT with Asana Math: }\getbuffer[test]\stoptext test-scriptfonts-mkiv.pdf Description

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-16 Thread Otared Kavian
s ? >> Fabrice >> >> Le mar. 15 oct. 2019 à 19:11, Otared Kavian > <mailto:ota...@gmail.com>> a écrit : >> Hi Fabrice, >> >> Wolfgang gave the right answer, but I wanted to point out that it is better >> not to use \setupbodyfont

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-16 Thread Fabrice Couvreur
lfgang gave the right answer, but I wanted to point out that it is >> better not to use \setupbodyfont in the middle of your document, as you did >> in the excerpt below: in this case it is better to use >> >> \switchtobodyfont[xits] >> >> or even better define the character

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Otared Kavian
m>> a écrit : > Hi Fabrice, > > Wolfgang gave the right answer, but I wanted to point out that it is better > not to use \setupbodyfont in the middle of your document, as you did in the > excerpt below: in this case it is better to use > > \switchtobody

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
n a écrit : > Hi Fabrice, > > Wolfgang gave the right answer, but I wanted to point out that it is > better not to use \setupbodyfont in the middle of your document, as you did > in the excerpt below: in this case it is better to use > > \switchtobodyfont[xits] > > or even

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Otared Kavian
Hi Fabrice, Wolfgang gave the right answer, but I wanted to point out that it is better not to use \setupbodyfont in the middle of your document, as you did in the excerpt below: in this case it is better to use \switchtobodyfont[xits] or even better define the character you want before

[NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
, backgroundcolor=MyColorD, location=depth] \defineframedtext [FramedText] [offset=0.25em, style=\ss, toffset=\zeropoint, background=color, backgroundcolor=MyColorC, foregroundstyle={\switchtobodyfont[10pt]}, align={right, broad

Re: [NTG-context] notes in the margin

2019-10-04 Thread Henning Hraban Ramm
those two together, but it didn’t work \setupmargindata[inmargin][ location=right, stack=continue, align=flushright, style={\switchtobodyfont[6pt]}, ] \setupmargindata[inouter][ location=right, stack=continue, align=flushright, style={\switchtobodyfont[6pt]}, ] \def\FNVOffset{0

[NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
=263mm, bottomheight=1mm, footerdistance=10mm] \usetypescript[pagella] \setupbodyfont[pagella,12pt] \setupcolors[state=start] \setuptype[style={\switchtobodyfont[11pt,tt]}] \setuptyping[style={\switchtobodyfont[11pt,tt]}] \setupfootertexts[section][] \setupfooter[alternative

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.09.2019 um 16:12: Hello, I can not change the font size of my figures in the table. \startxcell[foregroundstyle={\switchtobodyfont[...]}] or \setupxtable[smallbodyfont][foregroundstyle={\switchtobodyfont[...]}] \startxcell[smallbodyfont] Wolfgang

Re: [NTG-context] Overfull hbox issues: different font,

2019-09-04 Thread Wolfgang Schuster
nicht verhindert.} \setuptolerance[verytolerant] or \setupalign[verytolerant] \starttext \language[de] \section{Standard Font} \subsection{German} \language[de] \printExample{} \subsection{English} \language[en] \printExample{} \switchtobodyfont[arialFamily

[NTG-context] Overfull hbox issues: different font,

2019-09-03 Thread Julian G
[de] \section{Standard Font} \subsection{German} \language[de] \printExample{} \subsection{English} \language[en] \printExample{} \switchtobodyfont[arialFamily, 12pt] \section{Arial 12pt} \subsection{German} \language[de] \printExample

Re: [NTG-context] tikz problem with fontsize

2019-09-01 Thread Martin Althoff
Thanks for all the replies. @Ulrike: You are right, this example you give works for me too. Me experiencing it not working must have come out of some strange constellation. @Aditya: Yes, it does. But {} are needed: \tikzstyle{label}=[font={\switchtobodyfont[20pt] \red}] @Hagen: Yes, most

Re: [NTG-context] tikz problem with fontsize

2019-09-01 Thread Aditya Mahajan
On Sat, 31 Aug 2019, Martin Althoff wrote: What to do? Are there other ways to change font size in the Context TikZ? The equivalent of LaTeX's \selectfont{}{} in ConTeXt is \switchtobodyfont[...]. See https://wiki.contextgarden.net/Font_Switching Aditya

Re: [NTG-context] font switching commands

2019-07-21 Thread Wolfgang Schuster
Atsuhito Kohda schrieb am 20.07.2019 um 01:36: Hi Wolfgang, thanks for your information. It is a bit difficult for me to understand the difference among \switchtobodyfont, \vii etc. and \tfa etc. with the explanation of cont-eni.pdf precisely and unfortunately \vii etc. are no more available

Re: [NTG-context] Quotation marks

2019-07-20 Thread Wolfgang Schuster
not correct (I don't know why). You're wrong here because ' is replaced with a apostrophe and what you see are just two and the have a different space between then than a normal double quotation mark. begin example \starttext \switchtobodyfont[100pt] “ ” ’ '' \stoptext end example

Re: [NTG-context] font switching commands

2019-07-19 Thread Atsuhito Kohda
Hi Wolfgang, thanks for your information. It is a bit difficult for me to understand the difference among \switchtobodyfont, \vii etc. and \tfa etc. with the explanation of cont-eni.pdf precisely and unfortunately \vii etc. are no more available. Thanks again. Best regards, Atsuhito Kohda

Re: [NTG-context] font switching commands

2019-07-19 Thread Wolfgang Schuster
vi etc. change the global size and one could replace them with \switchtobodyfont[6pt]. The other switches are local changes of the font size which produce smaller or larger which depends on the global size. Wolfgang ___ I

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