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

Re: [NTG-context] issue with italic correction (again)

2019-06-27 Thread Taco Hoekwater
t;>> the font for the buffer used after it. >> >> Using \switchtobodyfont instead of \setupbodyfont for all except the >> first call should help. You may need to add a >> \usebodyfont[mainface_corrected] as well (in the setup block). I >> cannot actually test right

Re: [NTG-context] issue with italic correction (again)

2019-06-26 Thread Pablo Rodriguez
On 6/25/19 10:08 PM, Taco Hoekwater wrote: >> Op 25 jun. 2019 om 21:42 heeft Pablo Rodriguez het volgende geschreven: >> >> BTW, I wonder why the second definition of \DesiredFont doesn’t change >> the font for the buffer used after it. > > Using \switchtobodyfont ins

Re: [NTG-context] issue with italic correction (again)

2019-06-25 Thread Taco Hoekwater
> Op 25 jun. 2019 om 21:42 heeft Pablo Rodriguez het volgende > geschreven: > > BTW, I wonder why the second definition of \DesiredFont doesn’t change > the font for the buffer used after it. Using \switchtobodyfont instead of \setupbodyfont for all except the first call s

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
gt; \setupTABLE[r][each][align={lohi,middle},height= 50mm] > > > > \bTABLE > > \bTR > > \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD > > \bTD \dontleavehmode\rotate[...]{...} \eTD > > Wolfgang >

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Wolfgang Schuster
-context | current version: 2019.05.18 10:42 PDF of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
Hi Willi, thanks for the quick reply. I have the [align=lohi] as part of the setupTABLE statement. Now I tried adding it into the particular cell -- again no effect even if I add "middle". \bTD[align=lohi] \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD I suspect the rotate

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Willi Egger
gt; \setupTABLE[r][each][align={lohi,middle},height= 50mm] > > \bTABLE > \bTR > \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD > \bTD blah \eTD > \eTR > > \eTABLE > \stoptext > _

[NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD blah \eTD \eTR \eTABLE \stoptext rotate-test.pdf

Re: [NTG-context] several blocks of text in the margin

2019-05-01 Thread Henning Hraban Ramm
:margintext] > > \startsetups [userdata:margintext] > \margindata > [inright] > [%style=\smallbodyfont, > style={\switchtobodyfont[9pt]}, > width=\rightmarginwidth, > align={flushleft,broad}] > {{\bf Exemple — }\getinlineuserdata} > \stop

[NTG-context] several blocks of text in the margin

2019-04-27 Thread Fabrice Couvreur
=margintext] \defineuserdataalternative [margintext] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Exemple

Re: [NTG-context] Text in the margin

2019-04-10 Thread Wolfgang Schuster
] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext]   \margindata     [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}]     {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata

[NTG-context] Text in the margin

2019-04-10 Thread Fabrice Couvreur
] \startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata[margintext] \input ward \stopuserdata

Re: [NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Jan Tosovsky
On 2019-04-02 Hans Hagen wrote: > On 4/2/2019 8:41 PM, Jan Tosovsky wrote: > > > > my document ends with the index > > > > \startbackmatter > > \chapter{Rejstřík jmenný} > > \start > > \switchtobodyfont[8pt] > > \placeindexname > > \s

Re: [NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Hans Hagen
On 4/2/2019 8:41 PM, Jan Tosovsky wrote: Dear All, my document ends with the index \startbackmatter \chapter{Rejstřík jmenný} \start \switchtobodyfont[8pt] \placeindexname \stop \stopbackmatter \startbackmatter \chapter{Rejstřík věcný} \start \switchtobodyfont[8pt] \placeindexsubject \stop

[NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Jan Tosovsky
Dear All, my document ends with the index \startbackmatter \chapter{Rejstřík jmenný} \start \switchtobodyfont[8pt] \placeindexname \stop \stopbackmatter \startbackmatter \chapter{Rejstřík věcný} \start \switchtobodyfont[8pt] \placeindexsubject \stop \stopbackmatter At the beginning

Re: [NTG-context] problem with \sym?

2019-02-04 Thread Wolfgang Schuster
\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} \define[1]\pg{{\switchtobodyfont[10pt]\hfill\at[#1]\crlf}} \startcomponent%\starttext \startCList \sym{} Illustrations and Tables\pg{Illustrations} \sym{} Preface\pg{Preface} \sym{} Acknowledgments\pg{Acknowledgments} \blank[big, fixed] \sym{0

[NTG-context] How to pass a parameter with \definedescription[]

2019-01-27 Thread Fabrice Couvreur
background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[12pt]}, align={right, broad}, frame=off, corner=round, radius=1em, width=10cm] \definedescription [Info] [before=, after=, text=Note, title=no, width=fit, distance=

Re: [NTG-context] definefontfamily use

2019-01-23 Thread Wolfgang Schuster
was simply {\switchtobodyfont[myfont]My Font!} Maybe you loaded the used the font before with \definefont which put a entry in the database but normally \definefontfamily doesn’t use fonts from a local directory. Wolfgang

Re: [NTG-context] definefont

2019-01-23 Thread Wolfgang Schuster
[TitleFont][SansBold*default sa 3] \setuphead[chapter][style=\TitleFont,page=no] \setuphead [chapter] [style={\switchtobodyfont[ss,36pt]}] Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] definefontfamily use

2019-01-22 Thread Hans Hagen
was simply {\switchtobodyfont[myfont]My Font!} Using the present context, this yields the error selectfont > The requested font 'myfont' has no files for the 'tf' alternative, Latin Modern is used instead. What has changed and what should be the proper use? (I have tried setting explici

[NTG-context] definefontfamily use

2019-01-22 Thread Alan Braslau
Hello, Previously, in order to make punctual use of a true-type font in a title for example, I did the following: \definefontfamily [myfont] [serif] [myfont] where myfont.ttf is located in the current project directory, and selecting the font was simply {\switchtobodyfont[myfont]My Font

Re: [NTG-context] Scaling down symbols and emojis

2019-01-19 Thread User 19087
ze would be compounded: 'tfxx' remaining in effect after % 'switchtobodyfont'. I've also tried stop...starthiding, but that prevents % all processing of contents. \setbox\scratchbox\hbox{% #1% % Use a global lua variable rather than globally setting a scratch % reg

Re: [NTG-context] Scaling down symbols and emojis

2019-01-18 Thread User 19087
On Wed, Jan 16, 2019 at 6:29 PM User 19087 wrote: >> Or I use {\switchtobodyfont[...]\symbol[ShortForty]} in the document. >> At that point the body font may have been switched to a size whose >> environment defines different values for 'x' and 'xx'. Or perhaps the >> curr

Re: [NTG-context] Scaling down symbols and emojis

2019-01-16 Thread User 19087
bodyfontenvironment{x}, n=\getcurrentbodyfontenvironment{xx}] > > % This also works but is less than ideal when matching surrounding > > font sizes. > > % Which factor should I use to match \tfxx? > > \symbol[ShortForty] > > \scale[factor=4]{\symbol[ShortForty]} > x = 0.8

Re: [NTG-context] Scaling down symbols and emojis

2019-01-16 Thread Wolfgang Schuster
[ShortForty]} {\tfxx\symbol[ShortForty]} % This works, but why? Isn't \small just a synonym for \tfx via % \definealternativestyle? Anyway there is no synonym for \tfxx. \symbol[ShortForty] {\switchtobodyfont[small]\symbol[ShortForty]} {\small\symbol[ShortForty]} No, \small us the same

[NTG-context] Scaling down symbols and emojis

2019-01-16 Thread User 19087
, but why? Isn't \small just a synonym for \tfx via % \definealternativestyle? Anyway there is no synonym for \tfxx. \symbol[ShortForty] {\switchtobodyfont[small]\symbol[ShortForty]} {\small\symbol[ShortForty]} % This also works but is less than ideal when matching surrounding font sizes. % Which

Re: [NTG-context] Spurious missing character reports

2018-12-10 Thread Hans Hagen
trates the problem. I do not understand now all the features interact to cause this, but the reports disappear upon removing any (such as the seemingly-redundant \definebodyfontenvironment or the \switchtobodyfont[small]). \enabletrackers [fonts.missing] \definebodyfontenviron

  1   2   3   4   5   6   7   8   9   10   >