Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-29 Thread Jan U. Hasecke
=shiftblock] \setuppagenumbering     [alternative=doublesided] \starttext \startbuffer     \dorecurse{2}{\input knuth\par}     \startuserdata[shiftblock]     \input ward     \stopuserdata     \dorecurse{2}{\input zapf\par} \stopbuffer \dorecurse{10}{\getbuffer} \stoptext I'll try

Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-25 Thread Wolfgang Schuster
[shiftblock] \input ward \stopuserdata \dorecurse{2}{\input zapf\par} \stopbuffer \dorecurse{10}{\getbuffer} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-23 Thread Rik Kabel
    {\em The YIVO and the problems of our time}, and also as     {\em The YIVO faces the post-war world}. \stopbuffer \starttext   \getbuffer[Test] \stoptext -- Rik ___ If your question is of interest to ot

Re: [NTG-context] Concatenate buffers without newline

2021-06-22 Thread Wolfgang Schuster
next time. \starttext \startbuffer[first] First paragraph. \stopbuffer \startbuffer[second] Second paragraph. \stopbuffer \start \setupbuffer[before=,after=] \getbuffer[first]% \getbuffer[second] \stop \blank \getbuffer[first,second] \stoptext Wolfgang

[NTG-context] Ligatures blocking -- why block unspecified ligatures?

2021-05-12 Thread denis.maier
,liga=yes] \definefontfeature[default:block][default][blockligatures=yes] % block certain ligatures globally, but not f|fl, f|fi \blockligatures [ft,fft,fj,ffj,fk] \definefontfamily[times][rm][Times New Roman] \startbuffer[test] fj\\ ffi\\ ffl\\ ff\\ fi \stopbuffer \starttext \getbuffer[test

Re: [NTG-context] What is the ConTeXt way to handle this \vbox trick?

2021-05-09 Thread Hans Hagen
\dorecurse{20}{\ruby[spread]{XYZ}{fooledbar} }\par \dorecurse{20}{\ruby{extremely}{wide} }\par \dorecurse{20}{\ruby{wide}{extremely} }\par stopbuffer \testfeatureonce{1}{\start \setupinterlinespace[16pt] \setupruby[location=none] \getbuffer \stop \page} \testfeatureonce

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Hans Hagen
tance=4mm,   location=righthanging] \startbuffer[caption] \dorecurse{60}{very long caption } \stopbuffer \starttext \startplacefigure[title={\getbuffer[caption]}] \externalfigure[cow][height=40mm,width=80mm] \stopplacefigure \stoptext Thank you,

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Jano Kula
ghthanging] > > \startbuffer[caption] > \dorecurse{60}{very long caption } > \stopbuffer > > \starttext > \startplacefigure[title={\getbuffer[caption]}] > \externalfigure[cow][height=40mm,width=80mm] > \stopplacefigure > \stoptext > > Thank you, > Jano >

[NTG-context] very long hanging caption

2021-05-02 Thread Jano Kula
={nothyphenated,flushleft}, distance=4mm, location=righthanging] \startbuffer[caption] \dorecurse{60}{very long caption } \stopbuffer \starttext \startplacefigure[title={\getbuffer[caption]}] \externalfigure[cow][height=40mm,width=80mm] \stopplacefigure \stoptext Thank you, Jano

Re: [NTG-context] context() does not ignore space in empty line

2021-04-19 Thread Hans Hagen
n\n ) line 8.2\n\n') context.blank() context('line 9.1 (\n \n)line 9.2\n\n') context.blank() context('line 0.1 (\n \n \n) line 0.2\n\n') context.blank() \stopluacode \stopbuffer \typebuffer \getbuffer \stoptext now, the question is, does this cover all cases and is

Re: [NTG-context] Keeping track of hyphenations

2021-03-20 Thread Hans Hagen
[hyphenation.applied.visualize] % \enabletrackers[hyphenation.applied.console] \startbuffer \samplefile{tufte} \blank {\hsize 4em \dorecurse{4}{x\discretionary{aa}{bb}{cc}x #1 }} \blank \stopbuffer \starttext \switchtobodyfont[modern] \getbuffer \switchtobodyfont[pagella

Re: [NTG-context] Typing within doifmode leads to error

2021-03-19 Thread Christoph Reller
gt; \definetyping[T] > \definemode[mode][yes] > \starttext > \startmode[mode] > \startT > Bla > \stopT > \stopmode > \stoptext > > Or use buffers (to avoid catcode all together): > > \definetyping[T] > \definemode[mode][yes] > \starttext > \s

Re: [NTG-context] Typing within doifmode leads to error

2021-03-18 Thread Aditya Mahajan
finemode[mode][yes] \starttext \startbuffer[code] \startT Bla \stopT \stopbuffer \doifmode{mode}{\getbuffer[code]} \stoptext or (note type**T**buffer so that the output is formatting according to the options of \definetyping[T]) \definetyping[T] \definemode[mode][yes] \starttext \startbuffer[

Re: [NTG-context] add more blank space when using \starteffect[hidden]

2021-03-17 Thread Jeong Dal
Dear Hans, It is very interesting example. Thank you for a new method. Best regards, Dalyoung > > \def\determinednoflines#1% > {\localcontrolled{\determinenoflines{#1}}\noflines} > > \startbuffer >\input tufte > \stopbuffer > > \fillinrules[n=\determinednof

Re: [NTG-context] add more blank space when using \starteffect[hidden]

2021-03-17 Thread Hans Hagen
\fillinrules[n=\determinednoflines{\getbuffer}, width=fit]{first} \fillinrules[n=\determinednoflines{\getbuffer}, width=broad]{first} \fillinrules[n=\determinednoflines{\getbuffer}, width=3cm]{first} \fillinrules[n=\determinednoflines{\getbuffer}, width=3cm,distance=.5em,separator=:]{first

Re: [NTG-context] tikzpicture in margin

2021-02-15 Thread Hans Hagen
ure ... \stoptikzpicture \stopbuffer \inmargin{\getbuffer[picture]} Another option (but better to do that in tikz module) is: \let\draw\relax \let\x\relax \inmargin{\starttikzpicture ... \stoptikzpicture} Actually the command \startmarginblock ... \stop... described in the ConText reference wo

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Aditya Mahajan
ime \draw etc are undefined. One option is: \startbuffer[picture] \starttikzpicture ... \stoptikzpicture \stopbuffer \inmargin{\getbuffer[picture]} Another option (but better to do that in tikz module) is: \let\draw\relax \let\x\relax \inmargin{\starttikzpicture ... \stoptikzpicture} > Actually

[NTG-context] small lmtx update

2021-02-02 Thread Hans Hagen
\stopbuffer \starttext \startTEXpage[offset=2pt,strut=no] \getbuffer \switchtobodyfont[pagella] \getbuffer \switchtobodyfont[dejavu] \getbuffer \stopTEXpage \stoptext This is dedicated to Jano who wants to be able to search and these are proper glyphs (so

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-11 Thread Ivan Pešić
maxsize = #tableau > tt = {} > t = {} > for i = 1, maxsize do > t[i] = {} > t[i]["columnOne"] = tableau[i] > t[i]["columnTwo"] = math.random(1,100*maxs

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Jairo A. del Rio
\\cos(\\log(x))}{x}", > } > > \stopluacode > > \starttext > > % We define a buffer and a shuffled list of integers > > \startbuffer[test-derivatives] > \startluacode > ShuffledList = shuffle({1,2,3,4,5,6}) > \stopluacode > > Let $\cldco

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Otared Kavian
edList[\recurselevel]]}(x) := \cldcontext{ListOfFunctions[ShuffledList[\recurselevel]]}$. Prove that \startformula \cldcontext{ListOfNames[ShuffledList[\recurselevel]]}'(x) = \cldcontext{ListOfDerivatives[ShuffledList[\recurselevel]]} \stopformula \stopbuffer \dorecurse{6}{\blank[medium]{\b

Re: [NTG-context] efficiently scaling fonts

2020-12-24 Thread Pablo Rodriguez
\stopbuffer and \getbuffer, such as in: \setuplayout[topspace=1cm,header=1cm] \setuplayout[middle] \setupbodyfont[pagella,10pt] \setupalign[verytolerant,stretch] \setupwhitespace[big] \starttext \startbuffer \definescaledfont[bfe][xscale=2000,yscale=6000,style=bf] \setuphead[chapter

[NTG-context] new font trickery

2020-12-22 Thread Hans Hagen
\glyphscale#1\relax \setupinterlinespace \samplefile{ward}% \bf \samplefile{ward} \par \stop \page } \stopbuffer \getbuffer \title{Scaled fonts} Although \CONTEXT\ is quite efficient with fonts there is always room for improvement. However, after years of finetuning the font

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Jano Kula
\bgroup% \vbox\bgroup} \def\StopBox{\egroup\egroup\egroup}% close vbox, framed, hbox \def\MeasureBuffer[#1]{\setbox0\hbox{\getbuffer[#1]}% ht: \the\ht0\par} % XML \startbuffer[doc] section

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

2020-11-08 Thread Sylvain Hubert
he problematic behavior. > > I don’t get diffferent results: > > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \definefontfamily[face][rm][TeX Gyre Heros] > \setupbodyfont[mainface] > \startbuffer > In my case, the latter is the correct one, while the

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

2020-11-08 Thread Pablo Rodriguez
I don’t get diffferent results: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[face][rm][TeX Gyre Heros] \setupbodyfont[mainface] \startbuffer In my case, the latter is the correct one, while the former does nothing but falling back to latinmodern.\par \stopbuf

Re: [NTG-context] \define in conflict with \startxtable[]

2020-11-08 Thread Wolfgang Schuster
fer[sample] \startxtable \startxrow \startxcell \unknown \stopxcell \stopxrow \stopxtable \stopbuffer \getbuffer[sample] \stoptext Wolfgang ___ If your question is of interest to others as well,

Re: [NTG-context] lmtx

2020-10-30 Thread Jairo A. del Rio
as a trigger. Here are a few examples of usage: 162 163 \startbuffer 164 discrete---discrete 165 \stopbuffer 166 >> \typebuffer \startnarrower \dontcomplain \hsize 1pt \getbuffer \par \stopnarrower 167 \startbuffer 168 discrete\discretionary{}{}{---}discrete 169 \stop

[NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
\recurselevel=7 \exitloop \fi \NC \recurselevel \NC \NC\NR \HL } \stoptabulate \stopbuffer \starttext \getbuffer[AdjacencyList1] \getbuffer[AdjacencyList2] \stoptext > 2020. 9. 21. 오후 10:50, ntg-context-requ...@ntg.nl 작성: > > Send ntg-context mailing list submissions to >

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
>\ifnum \recurselevel=7 > \exitloop >\fi >\NC \recurselevel \NC \NC\NR \HL > } > \stoptabulate > \stopbuffer > > \starttext > \getbuffer[AdjacencyList1] > > \getbuffer[AdjacencyList2] > \stoptext > >> 2020. 9. 21. 오후 10:50, ntg-con

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jairo A. del Rio
recurse{8} > {\NC \recurselevel \NC \NC\NR \HL} > \stoptabulate > \stopbuffer > > \startbuffer[AdjacencyList2] > \starttabulate[|c|cw(2cm)|] > \HL > \doloop{ > \ifnum \recurselevel=7 > \exitloop > \fi > \NC \recurselevel \NC \NC\NR \HL > } > \stoptabulate > \stopbuffe

Re: [NTG-context] Typing efficiency

2020-09-04 Thread Taco Hoekwater
mma wrote: > > Dear list member, > > Following up from: > https://www.mail-archive.com/ntg-context@ntg.nl/msg94719.html > > The below MWE works but how can I avoid having to type > \startmode[en] > \getbuffer[en] > \stopmode > \s

[NTG-context] Typing efficiency

2020-09-04 Thread Jan Willem Flamma
Dear list member, Following up from:https://www.mail-archive.com/ntg-context@ntg.nl/msg94719.html The below MWE works but how can I avoid having to type    \startmode[en]    \getbuffer[en]    \stopmode    \startmode[nl]    \getbuffer[nl]    \stopmode after every block of text?  I tried

[NTG-context] new upload - hyphenation

2020-08-11 Thread Hans Hagen
test\-test\par test-test \par \stopbuffer \blank \start \nl \hsize 2mm\getbuffer \stop \blank \blank \start \nl \hsize 2mm \nohyphens \getbuffer \stop \blank \startbuffer \nohyphens NEDERLANDS {\dohyphens Nederlands} nederlands\par \stopbuffer \blank \start \nl \hsize 2mm \getbuffer

[NTG-context] Wrong counting of lines and paragraphs

2020-08-07 Thread Marcus Vinicius Mesquita
] \setuphead[subject][alternative=text,style=bolditalic] \setuphead[subsubject][alternative=text,style=\ss] \setuphead[subsubsubject][alternative=text,style=\ss\it] \startbuffer[waltham] \input waltham \stopbuffer \starttext \startlinenumbering \starttitle[title={Waltham}] \dorecurse{4}{\getbuffer

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
subsection}] \dorecurse{2}{\getbuffer[mybuffer]} \stopsubsection \stopsection \stopchapter \startchapter [title={Second chapter}] \startsection [title={Second section}] \dorecurse{2}{\getbuffer[mybuffer]} \stopsection \stoptheorem \stopchapter \stoptext end example

Re: [NTG-context] Bug with lmtx and color in table

2020-07-22 Thread Wolfgang Schuster
from it. \starttext \startbuffer \vrule width 4cm height 4cm depth 0pt\relax \stopbuffer \typebuffer \getbuffer \startbuffer \hrule width 4cm height 4cm depth 0pt\relax \stopbuffer \typebuffer \getbuffer \startbuffer \frule width 4cm height 4cm type fill\relax \stopbuffer \typebuffer

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Wolfgang Schuster
now that I can do something like this: \startcolumns \getbuffer[Muenchen] \stopcolumns Or do something with \defineparagraph Is it somehow possible to apply styles to all buffers that gets included via \getbuffer by defining a special getbuffer-style? \setupbuffer has before and after keys

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Jan U. Hasecke
Am 17.05.20 um 19:04 schrieb Marco Patzer: >> >> Is it somehow possible to apply styles to all buffers that gets >> included via \getbuffer by defining a special getbuffer-style? > > \setupbuffer has before and after keys which can be used. Example: > > \setupbuff

Re: [NTG-context] Styling of included buffers or files

2020-05-17 Thread Marco Patzer
that I can do something like this: > > \startcolumns > \getbuffer[Muenchen] > \stopcolumns > > Or do something with \defineparagraph > > Is it somehow possible to apply styles to all buffers that gets > included via \getbuffer by defining a special getbuffer-style? \setupbuff

[NTG-context] Styling of included buffers or files

2020-05-17 Thread Jan U. Hasecke
Hi all, I am currently writing a text where I want to include text snippets either by including files or including buffers. What is the best way to style all these included buffers? I know that I can do something like this: \startcolumns \getbuffer[Muenchen] \stopcolumns Or do something

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
\setupheadertexts[\directsetup{header}] \startbuffer[tablerow] \startxrow \startxcell first \stopxcell \startxcell second \stopxcell \stopxrow \stopbuffer \startbuffer[table] \startxtable \startxtablehead[head] \getbuffer[tablerow] \stopxt

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
d{cI}{\startxcell \cI \stopxcell} \doifdefined{cJ}{\startxcell \cJ \stopxcell} \doifdefined{cK}{\startxcell [left] \cK \stopxcell} \stopxrow \stopbuffer %\startplacetable[] \startxtable \startxtablehead[head] \doloopif{\lineno}{<}{2}{\getbuffer[loop]} \stopxtablehead \startxtablebody \doloo

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
{\startxcell \cJ \stopxcell} >> \doifdefined{cK}{\startxcell [left] \cK \stopxcell} >> \stopxrow >> \stopbuffer >> >> \setupxtable[offset=0cm, >> frame=off, >> bottomframe=on, >> framecolor=gray, >> option=stretch, >> align=middle] >> >>

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
gt; data. I cannot guess why a second loop might be required. > Hi Geert, > > this approach is simpler: > > \starttext > \startxtable > \startxtablehead[head] > \doloopif{\lineno}{<}{2}{\getbuffer[loop]} > \stopxtablehead > \start

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Pablo Rodriguez
simpler: \starttext \startxtable \startxtablehead[head] \doloopif{\lineno}{<}{2}{\getbuffer[loop]} \stopxtablehead \startxtablebody \doloopif{\lineno}{>}{1}{\getbuffer[loop]} \stopxtablebody \stopxtable \stoptext Only loop header with CSV lines numbered below 2

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Wolfgang Schuster
, option=stretch, align=middle] \setupxtable[head][background=color, backgroundcolor=gray, topframe=on, bottomframe=on, framecolor=black, foregroundcolor=blue] \setupxtable[left][align=right] \startxtable[header=repeat] Add "split=repeat" to \startxtable. \startxtablehead[h

[NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
pxtable[head][background=color, backgroundcolor=gray, topframe=on, bottomframe=on, framecolor=black, foregroundcolor=blue] \setupxtable[left][align=right] \startxtable[header=repeat] \startxtablehead[head] \doloopfromto{1}{1}{\getbuffer[loop]} \stopxtablehead \startxtablebody \doloop

Re: [NTG-context] SOLVED Re: \bTABLE bug, please help !

2020-03-10 Thread Taco Hoekwater
> On 10 Mar 2020, at 16:20, Hans Hagen wrote: > > On 3/10/2020 3:07 PM, Taco Hoekwater wrote: >> Hi, >> Never mind, I got it (starting at \loggingall output for a while). This >> patch to my input fixes it: >> \unprotect >> \setupfootertexts[{

Re: [NTG-context] SOLVED Re: \bTABLE bug, please help !

2020-03-10 Thread Hans Hagen
On 3/10/2020 3:07 PM, Taco Hoekwater wrote: Hi, Never mind, I got it (starting at \loggingall output for a while). This patch to my input fixes it: \unprotect \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] \tabl_ntb_prev_level}] \protect you beat me on this ... (still

[NTG-context] SOLVED Re: \bTABLE bug, please help !

2020-03-10 Thread Taco Hoekwater
Hi, Never mind, I got it (starting at \loggingall output for a while). This patch to my input fixes it: \unprotect \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] \tabl_ntb_prev_level}] \protect Best wishes, Taco > On 10 Mar 2020, at 14:47, Taco Hoekwater wrote: >

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
ffer{Quote}{ \doifoddpageelse {\page[left]} {\donothing} {\definedfont[SerifItalic at 16pt]\quotation{\getbuffer[Quote]}\par} \externalfigure[\PreImg][width=\textwidth] \resetbuffer[Quote] }{} \page[right] \stopsetups \setupheadertexts[][pagenumber][pagenumber][chapter] \setuphe

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
bers in a separate overlay to better control the positioning. Perhaps a bit overthought, but it works for me ... \setupheadertexts [][{\it\getmarking[section]}]   [{\it\getmarking[chapter]}][] \startsetups section:epigraph   \doifelsebuffer{SectionEpigraph}     {\getbu

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

2019-12-26 Thread Rik Kabel
ode     \startbuffer[Sample]    g, Jaxxb AJon     \stopbuffer     \define[2]\Test{    {\switchtobodyfont[#1]#2\getbuffer[Sample]}}     \setupbodyfont[legends]     \starttext     \starttabulate[|l|l|l|]     \NC test \NC  Serif    \NC Sans \NC \NR     \NC n

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
e %\showsetups %\showlayout \getbuffer[tblcard] \page \getbuffer[tblcard] \stoptext On 22Dec19, Wolfgang Schuster wrote: > > \setuparranging[1*2-Conference] -- Pavneet Arora m: +1 647-406-6843 Waroc Informatike: pavneet_ar...@waroc.com tblplacecards.pd

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Hans Hagen
lash\ ; ' , . / \{ \} \| : " < > ? \fontname\font \blank [line] \stopbuffer \setupalign [middle] \starttext \obeylines \JHair \getbuffer[Sampler] \JThin \getbuffer[Sampler] \JLigh \getbuffer[Sampler] \JBook \ge

Re: [NTG-context] Tent style cards

2019-12-21 Thread Pablo Rodriguez
\stopframedtext \stopbuffer \starttext %~ \showframe \rotate[rotation=180]{\getbuffer[tblcard]} \page \getbuffer[tblcard] \stoptext I hope it goes on time ;-), Pablo -- http://www.ousia.tk _

[NTG-context] Disappearing font feature

2019-12-21 Thread Rik Kabel
[line] \stopbuffer \setupalign [middle] \starttext \obeylines \JHair \getbuffer[Sampler] \JThin \getbuffer[Sampler] \JLigh \getbuffer[Sampler] \JBook \getbuffer[Sampler] \JMedi \getbuffer[Sampler] \JSemi \getbuffer[Sam

[NTG-context] Tent style cards

2019-12-21 Thread Pavneet Arora
buffer \starttext \showframe \adaptpapersize[tblcard,mirrored][letter,portrait]\getbuffer[tblcard] \page \getbuffer[tblcard] \stoptext -- Pavneet Arora m: +1 647-406-6843 Waroc Informatike: pavne

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
foregroundstyle={\definedfont[Serif at 82pt]}] >   {JOURNEY} > > \setlayerframed >   [LAY] >   [x=360pt, >    y=50pt] >   [frame=off, >    width=200pt, >    align={normal,tolerant}] >   {\input ward >    \blank[line] >    \externalfigure[hacker][he

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Wolfgang Schuster
[hacker][height=.4\textheight]} \flushlayer[LAY] \stopbuffer \getbuffer \page \setuplayer[LAY][hoffset=4cm,voffset=-2cm] \getbuffer \stoptext Wolfgang ___ If your question is of interest to others as well, please

Re: [NTG-context] Line numbering in two column layout conflicts with marking

2019-12-18 Thread Oliver von Criegern
\startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par \marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par \stoplinenumbering \stopcolumns \stoptext In the result, the header of the first page reads &quo

Re: [NTG-context] changing alignment inside a paragraph

2019-12-12 Thread mf
dth\relax \else     \parshape 1 \emwidth \dimexpr\hsize-\emwidth\relax \fi 34, 57, 101-104, 276, 345, 401, 403, 512. \stopalignment \stopbuffer \dorecurse   {10}   {\hsize\dimexpr.75\textwidth-#1\emwidth\relax    \getbuffer    \page} \stoptext Thanks Wolfgang. I wrote a better version

Re: [NTG-context] changing alignment inside a paragraph

2019-12-11 Thread Wolfgang Schuster
\parshape 1 \emwidth \dimexpr\hsize-\emwidth\relax \fi 34, 57, 101-104, 276, 345, 401, 403, 512. \stopalignment \stopbuffer \dorecurse   {10}   {\hsize\dimexpr.75\textwidth-#1\emwidth\relax    \getbuffer    \page} \stopte

Re: [NTG-context] changing alignment inside a paragraph

2019-12-10 Thread Wolfgang Schuster
1-104, 276, 345, 401–403. \stopbuffer \typebuffer \getbuffer \startbuffer \startalignment[end] This is the text of an index term, that is normally justified, but I'd like the page numbers to be flushed to the right from their second line 34, 57, 101-104, 276, 345, 401–403. \stopalignment \

Re: [NTG-context] Line numbering in two column layout conflicts with marking

2019-12-09 Thread Oliver von Criegern
,     method=page,     align=flushright,     ] \definemarking[Test] \setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}] \startbuffer \dorecurse{12}{words } \stopbuffer \starttext \startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking

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

2019-12-02 Thread Wolfgang Schuster
] \definefontfamily[mainface][cg][Arial Narrow][tf=file:ARIALN.TTF] \setupbodyfont[mainface] \startbuffer \ConTeXt\ is awesome!\par \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \ss\getbuffer \tt\getbuffer \cg\getbuffer \stopTEXpage

[NTG-context] Line numbering in two column layout conflicts with marking

2019-12-02 Thread Oliver von Criegern
[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}] \startbuffer \dorecurse{12}{words } \stopbuffer \starttext \startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par \marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer

[NTG-context] hz / expansion

2019-12-02 Thread Hans Hagen
{\FontB \red test me #1,} \FontA \dorecurse{#1}{test ##1, }% }\par \stopbuffer {\getbuffer \page} \setexpansion[myexpansion] {\getbuffer \page} \stoptext Maybe it's useful (I hardly use expansion myself). Hopefully there are no

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

2019-12-02 Thread Pablo Rodriguez
e][cg][Arial Narrow][tf=file:ARIALN.TTF] \setupbodyfont[mainface] \startbuffer \ConTeXt\ is awesome!\par \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \ss\getbuffer \tt\getbuffer \cg\getbuffer \stopTEXpage \stoptext https://mailman.ntg.nl/piperma

Re: [NTG-context] ASCII mode within \footnote

2019-11-04 Thread Wolfgang Schuster
ter=\blank] \starttext Normal comment: \startbuffer     % comment \stopbuffer \typebuffer \getbuffer Comment in \type{asciimode} environment: \startbuffer     \startasciimode     % comment     \stopasciimode \stopbuffer \typebuffer \getbuffer Comment in the argument of a command: \s

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Pablo Rodriguez
On 11/1/19 11:08 AM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 01.11.2019 um 10:44: >> [...] >> \start >> \catcode`\#=12 % local change of character TeX category >> \doloopif{\cA}{~=}{}{\getbuffer[main]} >> \stop >> &

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Wolfgang Schuster
your reply, Wolfgang. Now I understand why it didn’t work. In my real-world document, I get an error, probably caused by having \giveattachment deployed in a buffer called inside: \start \catcode`\#=12 % local change of character TeX category \doloopif{\cA}{~=}{}{\getb

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Pablo Rodriguez
("#1")}} Many thanks for your reply, Wolfgang. Now I understand why it didn’t work. In my real-world document, I get an error, probably caused by having \giveattachment deployed in a buffer called inside: \start \catcode`\#=12 % local change of character TeX category \dol

Re: [NTG-context] interlaced overbrace and underbrace

2019-10-25 Thread Hans Hagen
} + e$\blank $a + \overbrace [lt=1em,rb=1em] {b+c+d} + e$\blank $a + \underbrace [lt=1em,rb=1em] {b+c+d} + e$\blank $a + \doublebrace[lt=-4em,rb=-4em]{b+c+d} + e$\blank \stopbuffer \typebuffer[option=TEX] \getbuffer \stoptext so, lt for lefttop etc Hans

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

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

2019-09-23 Thread Fabrice Couvreur
pencircle scaled 2pt ; label.llft(btex \m{O} etex,origin) ; label.rt(btex \m{A} etex,0.7cm*dir 0) ; label.lft(btex \m{M} etex,0.7cm*dir 180) ; \stopMPcode \stopxcell \startxcell

[NTG-context] MetaPost with Multiple Variable Sections

2019-09-18 Thread Jeroen
[backspace=20mm,width=170mm,topspace=20mm,height=250mm] \starttext \startbuffer \startMPcode pair a, b; a := (0,0); b := (50,50); draw a -- b; \stopMPcode \stopbuffer \floatright{}{\getbuffer} \startbuffer \startMPcode pair a; a := 2cm; draw fullcircle scaled (2*a); \stopMPcode \stopbuffer

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

2019-09-08 Thread Pablo Rodriguez
Namenskonflikte}\\ \setbreakpoints[compound] \hyphenatedword{gemessene Namens-konflikte Namenskonflikte} \stopbuffer \starttext \startTEXpage[offset=3em] \getbuffer[text]\\ \language[de] \getbuffer[text] \stopTEXpage \stoptext I hope it helps,

Re: [NTG-context] Cross-reference expansion with ConTeXt and processing with LuaTeX

2019-09-06 Thread Oliver von Criegern
1)}} \def\TestLuaB#1{\ctxlua{TestVarB(#1)}} \startbuffer[testtext]     \dorecurse{100}{Words, words, words. } \stopbuffer \starttext \startlinenumbering Counter: \TestLuaA{\rawcountervalue[test]}\par Lineref: \TestLuaB{1}     \par \getbuffer[testtext] \someline[1]LABEL 1

Re: [NTG-context] Cross-reference expansion with ConTeXt and processing with LuaTeX

2019-09-05 Thread Hans Hagen
% The line reference is not expanded before being passed to Lua.\getbuffer[testtext]\someline[1]LABEL 1 \stoplinenumbering\stoptext||| \TestLua just passes the argument to the Lua command TestVar, which prints it to stdout and returns it to TeX. The pdf result looks good at first glance, showing

[NTG-context] Cross-reference expansion with ConTeXt and processing with LuaTeX

2019-09-04 Thread Oliver von Criegern
passed to Lua.\getbuffer[testtext]\someline[1]LABEL 1 \stoplinenumbering\stoptext||| \TestLua just passes the argument to the Lua command TestVar, which prints it to stdout and returns it to TeX. The pdf result looks good at first glance, showing the correct values as expected, but in stdout we

[NTG-context] bug with fonts in LMTX (Win7)?

2019-07-17 Thread Pablo Rodriguez
][tt][Cousine] \definefontfamily[mainface][cg][Arial Narrow][tf=file:ARIALN.TTF] \setupbodyfont[mainface] \startbuffer \ConTeXt\ is awesome!\par \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \ss\getbuffer \tt\getbuffer \cg\getbuffer

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

2019-06-27 Thread Taco Hoekwater
l}}) ({\em \Characters{\recurselevel}}) \par} \stopTEXpage \stopbuffer \def\DesiredFont{TeX Gyre Termes} \getbuffer[chars] \def\DesiredFont{TeX Gyre Pagella} \getbuffer[chars] \stoptext Best wishes, Taco

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

2019-06-25 Thread Pablo Rodriguez
} \stopTEXpage \stopbuffer \getbuffer[chars] \def\DesiredFont{TeX Gyre Pagella} \getbuffer[chars] \stoptext This shows that sequences such as ({\em f}) are corrected with the closing parenthesis, but not with the opening one. Wouldn’t it be possible that italic correction could

[NTG-context] italic correction (before the glyph)

2019-06-23 Thread Pablo Rodriguez
}] [{\em \characters{\recurselevel}}] [{\em \Characters{\recurselevel}}] ({\em \characters{\recurselevel}}) ({\em \Characters{\recurselevel}}) \par} \stopTEXpage \stopbuffer \getbuffer[chars] \def\DesiredFont{TeX Gyre Pagella} \getbuffer

Re: [NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-30 Thread Zhichu
buffer \startbuffer[wideframe] \framed[width=2\rightmarginwidth,height=.6\rightmarginwidth,framecolor=darkred]{\tt width=2*rightmarginwidth} \stopbuffer \starttext \chapter{edge} \dorecurse{10}{ \startplaceedgefigure \getbuffer[fitframe] \stopplaceedgefigure \input knuth } \chapter{ma

Re: [NTG-context] font selection in LMTX

2019-05-09 Thread Wolfgang Schuster
[mainface][tt][Cousine]  \definefontfamily[mainface][cg][Arial Narrow][tf=file:ARIALN.TTF]  \setupbodyfont[mainface]  \startbuffer  \ConTeXt\ is awesome!\par  \stopbuffer  \starttext  \startTEXpage[offset=1em]  \getbuffer  \ss\getbuffer  \tt\getbuffer  \cg

[NTG-context] font selection in LMTX

2019-05-09 Thread Pablo Rodriguez
][cg][Arial Narrow][tf=file:ARIALN.TTF] \setupbodyfont[mainface] \startbuffer \ConTeXt\ is awesome!\par \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \ss\getbuffer \tt\getbuffer \cg\getbuffer \stopTEXpage \stoptext I have no problem to get

[NTG-context] Question and Answer Iteration

2019-03-12 Thread Jeroen
wer] [text=Answer, headcommand=\AnswerTextCommand] \defineblock[answer] \startbuffer % \startquestion \input knuth \stopquestion % \beginanswer \startanswer \input knuth \stopanswer \endanswer % \stopbuffer \starttext \dorecurse{10

Re: [NTG-context] Creating business cards with CSV

2019-02-08 Thread Pablo Rodriguez
page[offset=3em] {\bf \Vorname\ \Name}\\ \Function \blank \Company\\ \Street\\ \PLZ-\City\\ \Country\\ Telefon: \TelNo\\ \eMail\\ \URLAddress \stopTEXpage \stopbuffer \doloopif{\cA}{~=}{}{\getbuffer[bscard]} \stoptext "Vorname";"Name";"Function";"Company";&quo

Re: [NTG-context] Making ConTeXt stop on all or some errors

2019-02-07 Thread Hans Hagen
] \getbuffer\\ \amainface\getbuffer\\ \smainface\getbuffer \stopTEXpage \stoptext Not embedding all glyphs for the fallback font (failing to type "force=yes") could lead to weird results. Not to mention when a font isn’t embedded at all. there are severw

Re: [NTG-context] Making ConTeXt stop on all or some errors

2019-02-06 Thread Jan U. Hasecke
nge:greek, force=yes] > \definefontfamily[smainface][rm][TeX Gyre Pagella] > \setupbodyfont[mainface] > \starttext > \startTEXpage[offset=2em] > \getbuffer\\ > \amainface\getbuffer\\ > \smainface\getbuffer > \stopTEXpage > \stopte

Re: [NTG-context] Making ConTeXt stop on all or some errors

2019-02-06 Thread Pablo Rodriguez
tfamily[amainface][rm][TeX Gyre Pagella] \definefallbackfamily[smainface][rm][GFS Didot] [preset=range:greek, force=yes] \definefontfamily[smainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface] \starttext \startTEXpage[offset=2em] \getbuffer\\

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-02-01 Thread Otared Kavian
] \endhint \beginanswer \doglobal\increment\AnswerCounter \incrementcounter[answer] \endanswer \stopbuffer % ...and then the above buffer is invoked \define\noanswer {\getbuffer[noanswer]} % example of use: \starttext \startchapter[title=Questions] \startquestion[q:1] Prove

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Rik Kabel
\doifelsebuffer{ChapterEpigraph} {\page[yes,header,footer,left] \dontleavehmode \vfill \getbuffer [ChapterEpigraph] \resetbuffer [ChapterEpigraph] \vfill \vfill } {\page[yes,header

Re: [NTG-context] fontfamily not loaded anymore

2018-12-09 Thread Pablo Rodriguez
m α β γ δ ε ζ}\\ >>{\bf α β γ δ ε ζ}\\ >>{\bf α β γ δ ε ζ}\\ >> \stopbuffer >> \starttext >>\startTEXpage[offset=1em] >> \getbuffer >> \tt\getbuffer >> \ss\getbuffer >> \hw\getbuffer >>

Re: [NTG-context] issue with optical bounds (OpenType)

2018-12-09 Thread Hans Hagen
ainface][tt][Latin Modern Mono] \setupbodyfont[mainface, 300pt] \setupalign[hanging] \startbuffer «a\par «b\par Ω\par Ὧ\par Ἠ\par \stopbuffer \starttext \setupparagraphintro[each][\setfirstline] \getbuffer \stoptext

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