[NTG-context] Re: streams reversed?

2023-09-14 Thread jbf
. \starttext \startoutputstream[one] \startcolor[red] \dorecurse{5}{\chapter{Stream One} \dorecurse{10}{\input knuth\par} } \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[green] \dorecurse{5}{\chapter{Stream Two} \dorecurse{10}{\input zapf\par

[NTG-context] Re: streams reversed?

2023-09-14 Thread Bruce Horrocks
this doesn't help and you still have problems then you'll need to post a sample that actually shows the problem. I'm using ConTeXt ver: 2023.09.04 19:15. \starttext \startoutputstream[one] \startcolor[red] \dorecurse{5}{\chapter{Stream One} \dorecurse{10}{\input knuth\par}

[NTG-context] streams reversed?

2023-09-13 Thread jbf
this one. Julian The original (Wolfgang) code is as follows: \starttext \startoutputstream[one] \startcolor[red] \dorecurse{10}{\input knuth\par} \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[green] \dorecurse{10}{\input zapf\par} \stopcolor

[NTG-context] Re: Vertical Space between Text and Itemize List

2023-09-06 Thread Mikael Sundqvist
Hi, You can use before, inbetween and after. \setupitemgroup [itemize] [inbetween={\blank[1cm]}, before={\blank[2cm]}, after={\blank[3cm]}] \starttext \samplefile{ward} \startitemize \dorecurse{4}{ \startitem \samplefile{knuthmath} \stopitem } \stopitemize \samplefile{ward} \stoptext

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
] \setcounter [userpage] [0] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument \setupfootertexts [title

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument

[NTG-context] Re: Different Layout for First Page

2023-09-04 Thread Wolfgang Schuster
\startfrontmatter \samplefile{lorem} \stopfrontmatter \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Wolfgang Schuster
* (which include some dummy content) examples. The example below results in section entries which are listed as a paragraph, what output do you expect here. \setuplist[chapter][alternative=c] \setuplist[section][alternative=d] \starttext \completecontent \dorecurse{2}   {\chapter{Chapter #1

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Hans Hagen via ntg-context
method: \showpageprogress % [all] %resetforcedbreak \starttext \registerforcedbreak[8][before] \dorecurse{10}{\samplefile{tufte}\par} \page \resetforcedbreak \registerforcedbreak[12][after] \dorecurse{10}{\samplefile{tufte}\par} \stoptext (by-product of some new mechanisms t

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
% \dorecurse{\datasetsize{autores}}{ % \setups[userdata:idautor] % } % \stopdocument However, i can provide a processor: % \startsetups[userdata:idautor] % \dontleavehmode % \imghref % {\externalfigure[cvlac.pdf][logo]} % {\datasetvariable{autores}{\datasetindex}{vclac}} % \quad

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
of the "autores" dataset? and use indexes? \dorecurse{5}{ \startuserdata[idautor][ author={\datasetvariable{autores}{\recurselevel}{nombre}}, cvlac={\datasetvariable{autores}{\recurselevel}{cvlac}}, orcid={\datasetvariable{autores}{\recurselevel}{orcid}},

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 21:48, vm via ntg-context wrote: > [...] > A different approach is to use \dontleavehmode In that case, \dorecurse is your friend, such as in: \starttext \startTEXpage[offset=10mm, pagestate=start] \dorecurse{5}{ \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
\stoptabulate \stopitemize so basically inside these tables items can be dealt with. Don't wonder too much how this translates into structure. So, back the columns, a logical next step was to add tabulated columns to itemize: \startitemizetable[n,four] \dorecurse{10}{ \startitem

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
\stoptabulate \stopitemize so basically inside these tables items can be dealt with. Don't wonder too much how this translates into structure. So, back the columns, a logical next step was to add tabulated columns to itemize: \startitemizetable[n,four] \dorecurse{10}{ \startitem

[NTG-context] Re: upload

2023-08-09 Thread Rik Kabel
\NC \AR     \NC ward \NC \input ward \NC \AR     \NC montgomery \NC \input montgomery \NC \AR \HL \stoptabulate \stopplacetable \dorecurse{7}{ \input tufte \par} \stopchapter \stoptext -- RIk

[NTG-context] Parallel columns using start/stop setups

2023-08-08 Thread Thangalin
after=\stopcolumns, ] \definestartstop[timelinea][ after=\column, ] \definestartstop[timelineb][] \starttext \startconcurrent \starttimelinea \dorecurse{5}{\input ward} \stoptimelinea \starttimelineb \dorecurse{5}{\input knuth} \stoptimelineb \stopconcur

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-27 Thread Pablo Rodriguez
ng, since I forgot enabling interaction in the main PDF document to generate the targets (or named destinations). \setupinteraction[state=start, focus=standard] \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext The first line was missing yesterday. After that (

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-26 Thread Pablo Rodriguez
reference (save it as main.tex): \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext You have the file that reads the references from main.tuc and generates the inter-document links: \setupinteraction[state=start] \starttext Links to each chapter using

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
If that could be what you might need, here is a sample. First you have the destination file: \setupinteraction[state=start, focus=standard, prefix=n_,] \starttext \dorecurse{50} {a\footnote{b} } \startluacode luatex.wrapup( function() os.rename(tex.jobname ..

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Taco Hoekwater
gt; > fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; > \stopuseMPgraphic > > \defineoverlay[Waves][\useMPgraphic{Waves}] > > \setupbackgrounds[state=repeat] > \setupbackgrounds[page][background={Waves}] > > \starttext > > \dorecurse{10}{\recur

[NTG-context] enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
= (0,10)---(70,10)...(60,0)---(10,0)...cycle; fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; \stopuseMPgraphic \defineoverlay[Waves][\useMPgraphic{Waves}] \setupbackgrounds[state=repeat] \setupbackgrounds[page][background={Waves}] \starttext \dorecurse{10}{\recurs

[NTG-context] Fatal error using \enabletrackers[paragraphs.passes=summary]

2023-07-11 Thread Keith McKay
ode: 1 Here is the MWE: \enabletrackers[paragraphs.passes=summary] \setupalignpass[optional1] \starttext \dorecurse{10}{ \input ward \input knuth \input darwin } \stoptext %%% Using the latest version: ConTeXt ver: 2023.07.09 19:38 LMTX fmt: 2023.7.

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
[layout.vz] \setuplayout[width=middle,headerdistance=5mm,vz=no] \clubpenalty 1 \widowpenalty 1 \dostepwiserecurse{0}{30}{1}{ \dorecurse{#1}{\strut dummy line ##1\par} \dorecurse{4}{\samplefile{tufte}\par} } \stoptext \stopbuffer \startbuffer[vz-2] \starttext

[NTG-context] Re: context-on-web broken

2023-07-08 Thread Mikael Sundqvist
context --synctex=1 --result=output %S; cp output.log > > > /compile/output.log;cp output.pdf /compile/output.pdf"; > > > $recorder=0; > > > $pdf_mode=1; > > I found back this link: > > > > https://davidcarlisle.github.io/latexcgi/testc > > > > >

[NTG-context] Re: context-on-web broken

2023-07-07 Thread Aditya Mahajan
.pdf"; > > $recorder=0; > > $pdf_mode=1; > I found back this link: > > https://davidcarlisle.github.io/latexcgi/testc > > > % !TEX mtxrun --script context > > \starttext > > \dorecurse{500}{\samplefile{tufte}\par} > > \stoptext > > Runs 113

[NTG-context] Re: MP setup for a progress bar

2023-07-04 Thread Wolfgang Schuster
=repeat] \setupbackgrounds[footer][text][background=Blocks] \starttext \dorecurse{10}{\recurselevel\page} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] MP setup for a progress bar

2023-07-04 Thread Henning Hraban Ramm
tsquare xysized (800 * RealPageNumber/NOfPages, 50) withcolor blue; \stopuseMPgraphic \defineoverlay[Blocks][\useMPgraphic{Blocks}] \setupbackgrounds[footer][background={Blocks}] \starttext \dorecurse{10}{\recurselevel\page} \stopt

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Miguel Diaz via ntg-context
t; > $pdf_mode=1; > I found back this link: > > https://davidcarlisle.github.io/latexcgi/testc > > > % !TEX mtxrun --script context > > \starttext > > \dorecurse{500}{\samplefile{tufte}\par} > > \stoptext > > Runs 113 pages in 1.13 sec so

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Hans Hagen via ntg-context
="context --synctex=1 --result=output %S; cp output.log /compile/output.log;cp output.pdf /compile/output.pdf"; $recorder=0; $pdf_mode=1; I found back this link: https://davidcarlisle.github.io/latexcgi/testc % !TEX mtxrun --script context \starttext \dorecurse{500}{\samplefile{

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
l and he knows ConTeXt well. He's quite capable > of figuring out how to use advanced features and I bet he likes the > following variant of arrows in text. Next time we meet I'll show him some > more adaptive tricks (although I bet he can figure them out himself). > > \sta

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
\egroup \stopsetups \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 {\adaptivebox[strut=yes,setups=adaptive:test]{\strut}} } \blank } \stoptext (2) If someone wants a plain (or fot that matter latex) solution then one can use

Re: [NTG-context] error in column sets

2023-06-20 Thread Henning Hraban Ramm via ntg-context
Am 19.06.23 um 21:59 schrieb Henning Hraban Ramm via ntg-context: In a minimal example like this: \setuppapersize[A5] \definecolumnset[TwoColumns][n=2] \starttext \startcolumnset [TwoColumns]    \dorecurse{10}{\samplefile{knuth}} \stopcolumnset \stoptext … many columns start one line too

[NTG-context] error in column sets

2023-06-19 Thread Henning Hraban Ramm via ntg-context
In a minimal example like this: \setuppapersize[A5] \definecolumnset[TwoColumns][n=2] \starttext \startcolumnset [TwoColumns] \dorecurse{10}{\samplefile{knuth}} \stopcolumnset \stoptext … many columns start one line too low and overwrite their last line. An extended example (nearly

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Hans Hagen via ntg-context
[alternative={singlesided,doublesided}] \starttext \dorecurse{200}{ \dontleavehmode\signalrightpage \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage  {ODD  }{EVEN} \par } \stoptext The rightpage check combined with putting a signal at the spot where you

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Henning Hraban Ramm via ntg-context
Am 27.05.23 um 23:54 schrieb Hans Hagen via ntg-context: You never know when tex will break a page unless you are explicit so you typeset the status too soon. \setuppagenumbering[alternative=doublesided] % \setuppagenumbering[alternative={singlesided,doublesided}] \starttext     \dorecurse

Re: [NTG-context] hyperlinks not working with current latest

2023-05-29 Thread Hans Hagen via ntg-context
\completecontent \dorecurse{5} {a\footnote{}} \stoptext LuaTeX generates fine hyperlinks for footnotes. My guess is that the issue is in the LuaMetaTeX binary. Could anyone confirm this issue? i'll upload a fix later today (some sensitivity to an extra return value of a helper) Hans

Re: [NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Hans Hagen via ntg-context
\completecontent \dorecurse{5} {a\footnote{}} \stoptext LuaTeX generates fine hyperlinks for footnotes. My guess is that the issue is in the LuaMetaTeX binary. Could anyone confirm this issue? i'll check it but (maybe side effect of some ref things Alan and I are working on). The engine has

[NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, in the following sample, hyperlinks for footnotest don’t work with current latest (2023.05.28 18:57) with current LMTX (20230528): \setupinteraction [state=start, focus=standard] \starttext \completecontent \dorecurse{5} {a\footnote{}} \stoptext LuaTeX

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-27 Thread Hans Hagen via ntg-context
what page I'm on? Example: \starttext \dorecurse{70}{\doifelseoddpage{ODD \currentpage\par}{EVEN \currentpage\par}} \stoptext My system:    context --version    mtx-context | ConTeXt Process Management 1.04    mtx-context |    mtx-context | main context file: /home/berend

[NTG-context] \doifelseoddpage not working as expected

2023-05-26 Thread Berend de Boer via ntg-context
Dear all, I need something like \doifelseoddpage, but this does not work as expected. See below example. You will notice that on page two you still get the ODD text, with page number 1. What's going on? Is there a proper way to detect what page I'm on? Example: \starttext \dorecurse{70

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
I found a MWE that shows the problem: """ \setuppapersize[C5] \showframe \starttext \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.75\textheight]{TEST} \stopplacefigure \dorecurse{4}{\section{Tufte \recurselevel} \samplefile{tuf

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
it in a simple example like this: """ \starttext \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could

[NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
Hi, in more than one of my books, I struggle with some lines of text below page floats. They start below the regular text area (i.e. in the bottom) and can even consist of a table float or a section title. I can’t reproduce it in a simple example like this: """ \starttex

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-19 Thread Carlos via ntg-context
:) > > > \setupindenting[medium,yes] > > \setupitemize[indentnext=auto] > > > \starttext > > \startitemize > > \item One > > \stopitemize\indent%blank line > > > This paragraph should be indented - due to the blank line after

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-16 Thread Jim via ntg-context
ect will speak up. > \setupindenting[medium,yes] > \setupitemize[indentnext=auto] > \starttext > \startitemize > \item One > \stopitemize\indent%blank line > This paragraph should be indented - due to the blank line after > \type{\stop

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-16 Thread Carlos via ntg-context
,yes] \setupitemize[indentnext=auto] \starttext \startitemize \item One \stopitemize\indent%blank line This paragraph should be indented - due to the blank line after \type{\stopitemize}. \startitemize \item Two \stopitemize \noindent{\dorecurse{10}{\indent This paragraph should not be

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Bruce Horrocks via ntg-context
BLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22][frame=on, framecolor=lightgray] \setupTABLE[row] [last] [to

[NTG-context] update

2023-03-20 Thread Hans Hagen via ntg-context
nicely on my android (12) phone (userland ubuntu) and luametatex compiles nicely from source (as it's aarch64) in about a minute. No decent editor to text real documents but who knows what a properly dockable (linux supporting) phone can do in a few years. A simple \starttext \dorecurse{1000

Re: [NTG-context] [ numbering TEXpages ]

2023-03-09 Thread Pablo Rodriguez via ntg-context
On 3/9/23 13:18, Floris van Manen via ntg-context wrote: > Can someone remind me as how to number the pages in a pdf of multiple > \startTEXpage ... \stopTEXpage Hi Floris, I guess "pagestate=start" is what you might need: \starttext \dorecurse{25} {\startTEXpage[offse

[NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context
\setupbackgrounds[header][text] [background=color, backgroundcolor=red] \setuppagenumbering[state=start,alternative=doublesided,location=footer] \showlayout \starttext \showsetups \dorecurse{10}{ Page \recurselevel \page } \stoptext __

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
\startinterview[title={My Interview}][ author={Jane Doe}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext On 23 Feb 2023, at 10:21, Alex Leray via ntg-context wrote: Hello, I'm trying to figure out how to design a chapter

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext > On 23 Feb 2023, at 10:21, Alex Leray via ntg-context > wrote: > > Hello, > > I'm trying to figure out how to design a chapter page for a cust

[NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
w][chapter] \setuphead[interview][ page=right, command=\MyChapter, % insidesection={\page}, style={\tfa}, ] \starttext \startinterview[title={My Interview}][ author={Jane Doe}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \sto

Re: [NTG-context] horizontal space in CJK document

2023-02-22 Thread 李延瑞
gt; \starttext > 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored > > \dorecurse{100}{口} % without \setscript[hanzi], the line is not properly > wrapped > \stoptext > > Many thanks, >

Re: [NTG-context] horizontal space in CJK document

2023-02-21 Thread Sylvain Hubert via ntg-context
gt;> 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored >> >> \dorecurse{100}{口} % without \setscript[hanzi], the line is not properly >> wrapped >> \stoptext >> >> Many thanks, >> Sylvain >> >>

Re: [NTG-context] horizontal space in CJK document

2023-02-20 Thread fv leung via ntg-context
e][rm][notoserifcjkhk][] > \setupbodyfont[mainface] > \starttext > 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored > > \dorecurse{100}{口} % without \setscript[hanzi], the line is not properly > wrapped

[NTG-context] horizontal space in CJK document

2023-02-20 Thread Sylvain Hubert via ntg-context
Dear list, Does anyone know how to insert a horizontal space in a CJK document with \setscript[hanzi]? \setscript[hanzi] \definefontfamily[mainface][rm][notoserifcjkhk][] \setupbodyfont[mainface] \starttext 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored \dorecurse{100}{口

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-05 Thread Floris van Manen via ntg-context
On 05/02/2023 12:32, Pablo Rodriguez via ntg-context wrote: Are we missing something or is this a bug? If you add a \tt at the beginning, the lines have different length. not sure why, but there is a reason to it... \startTEXpage[offset=3em] \tt \setupalign[tolerant,stretch] \dorecurse {10

[NTG-context] Font substitution for extensible symbols

2023-02-01 Thread Yaroslav Beltukov via ntg-context
\startformula \sqrt{\frac{1}{2}}\dorecurse{15}{+\sqrt{\blackrule[width=10pt,height=#1pt,depth=#1pt,color=gray]}} \stopformula \startformula \sqrt{\blackrule[width=10pt,height=100pt,depth=100pt,color=gray]} \stopformula \stoptext It works in MKIV but it gives the following error in the latest LMTX

[NTG-context] layout for marked pages?

2023-01-30 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \showframe \setuplayout[width=middle] \definelayout[odd][reset] \definelayout[even][reset] \doiftext{\markedpages[zapf]} {\doloopoverlist{\markedpages[zapf]} {\definelayout[\recursestring][page]}} \starttext \dorecurse{50}{\input

[NTG-context] list not following "focus=standard"?

2023-01-30 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start, focus=standard] \starttext \completecontent \dorecurse{25} {\section{Section} a\footnote{b}} \stoptext Using current latest (from 2023.01.26 18:34), destinations for TOC are pages (/D [ 7 0 R /Fit

Re: [NTG-context] numbering questions

2022-12-31 Thread Duncan Hothersall via ntg-context
> \define[2]\TitleCmd{#1} % number only > > \setuphead[Year,Month,Day][number=yes,page=no,command=\TitleCmd] > \setuphead[Year][page=yes] > %\setuphead[Month][] > \setuphead[Day][style={\ss\bf}] > > \def\Dummycontent{ > \dorecurse{12}{ > \startMonth >

[NTG-context] numbering questions

2022-12-31 Thread Henning Hraban Ramm via ntg-context
\setuphead[Year,Month,Day][number=yes,page=no,command=\TitleCmd] \setuphead[Year][page=yes] %\setuphead[Month][] \setuphead[Day][style={\ss\bf}] \def\Dummycontent{ \dorecurse{12}{ \startMonth New Month. \dorecurse{5}{ \startDay Another day. \stopDay

[NTG-context] Problem with float and new layout on same page

2022-12-25 Thread peter.hopcroft--- via ntg-context
][footerdistance=100mm, ] \definelayout[odd][reset] % ?? \definelayout[even][reset] \starttext \dorecurse{3}{\input{knuth} } % change to \dorecurse{2} - it works properly \definelayout[2][mypage] \dorecurse{2}{\input{knuth} } \placefigure [leftmargin] {} {\externalfigure[greybox][width

Re: [NTG-context] Help for using fonts Nupuram

2022-12-23 Thread Pablo Rodriguez via ntg-context
et=1em, width=12em] \dorecurse{20} {\definefontfeature[\recurselevel] [axis={wght={\the\numexpr\recurselevel * 50\relax}}, colr={\recurselevel}] \definedfont[Nupuram-Color.colrv1.otf*\recurselevel]abcde } \stopTEXpage \stoptext It works fine wit

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Rik Kabel via ntg-context
opsetups \setuphead[chapter]   [style=\tfa,    after={\blank\setups{chapter:headings}},   ] \starttext \startchapter[title=Nothing special] \dorecurse{10}{\input knuth\par} \stopchapter \startchapter[title=Something special][custom={Hi there!}] \dorecur

Re: [NTG-context] Seems to be a bug with \definelayout

2022-12-10 Thread peter.hopcroft--- via ntg-context
eftmargin=40mm] > > \starttext > \definelayout[even][reset] > \definelayout[odd][reset] > \definelayout[2][short] > \definelayout[3][short] > \dorecurse{10}{\input{knuth} } > \stoptext &g

Re: [NTG-context] Seems to be a bug with \definelayout

2022-12-10 Thread Pablo Rodriguez via ntg-context
ndistance=10mm, leftmargin=40mm] \starttext \definelayout[even][reset] \definelayout[odd][reset] \definelayout[2][short] \definelayout[3][short] \dorecurse{10}{\input{knuth} } \stoptext It seems that you need to reset the layout in all other pages (where the special layout isn’t a

[NTG-context] Seems to be a bug with \definelayout

2022-12-09 Thread peter.hopcroft--- via ntg-context
] \definelayout[short][backspace=80mm, width=100mm, topspace=50mm, header=0mm, footer=0mm, height=80mm, margindistance=10mm, leftmargin=40mm] \starttext \definelayout[2][short] \definelayout[3][short] \dorecurse{10}{\input{knuth} } \stoptext

[NTG-context] \definelayout[pagenumber][layout] behaving strangely

2022-12-08 Thread peter.hopcroft--- via ntg-context
=10mm, leftmargin=40mm] \definelayout[short][backspace=80mm, width=100mm, topspace=50mm, header=0mm, footer=0mm, height=80mm, margindistance=10mm, leftmargin=40mm] \starttext \definelayout[2][short] \definelayout[3][short] \dorecurse{10}{\input{knuth} } \stoptext

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
end end } \stoptexdefinition \starttext \LoadSectionsA{crap}{chapter:3} \LoadSectionsB{crap}{chapter:2} \stoptext \starttext \dorecurse{10}{ \startchapter[title=Chapter #1,reference=chapter:#1] \dorecurse{10}{ \startsubject[title=S

[NTG-context] new upload

2022-11-14 Thread Hans Hagen via ntg-context
uacode \setupmathematics[hz=yes] \startbuffer \showglyphs \dorecurse{20}{\strut test $x + y/2 - w = 10$ }\unskip \stopbuffer \definecolor[tgreen][g=1,t=.5,a=1] \definecolor[tred] [r=1,t=.5,a=1] \startTEXpage[offset=5dk] \startoverlay {\ruledvbox to 5cm{\setupalign [tolerant,stretch]\

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-12 Thread Fabrice Couvreur via ntg-context
appening in your first > example. > > Hi Fabrice and Bruce, > > I agree that the source would be helpful to say what may be hard for > ConTeXt. > > In any case, ConTeXt has a hard time with pagebreaks when you combine > elements that need both horizontal and vertical

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-12 Thread Pablo Rodriguez via ntg-context
ause that was what was happening in your first example. Hi Fabrice and Bruce, I agree that the source would be helpful to say what may be hard for ConTeXt. In any case, ConTeXt has a hard time with pagebreaks when you combine elements that need both horizontal and vertical calculation, such as in:

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-10 Thread Fabrice Couvreur via ntg-context
for the >>>>> image >>>>> > itself, and some extra space after it). >>>>> > >>>>> > Your layout for the first page only allows 43 lines and sample text >>>>> ends >>>>> > on line 37. >>>>&

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-10 Thread Fabrice Couvreur via ntg-context
o the layout for the first page and the image > > will fit in the first page. > > > > Just in case it might help, > > Or Pablo's answer shown another way... change the end of the example to: > > \starttext > \dorecurse{11}{\input ward} > \placerecipe{}{\externalfigu

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Bruce Horrocks via ntg-context
irst page and the image > will fit in the first page. > > Just in case it might help, Or Pablo's answer shown another way... change the end of the example to: \starttext \dorecurse{11}{\input ward} \placerecipe{}{\externalfigure[dum]} \dorecurse{5}{\input ward} %% extra \stoptext

[NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Fabrice Couvreur via ntg-context
] \setupfloat [recipe] [default={right,none}] \showframe \starttext \dorecurse{11}{\input ward} \placerecipe{}{\externalfigure[dum]} \stoptext ___ If your question is of interest to others as well, please add

Re: [NTG-context] How to set the vertical spacing between a sequence of images?

2022-10-25 Thread Henning Hraban Ramm via ntg-context
Am 25.10.22 um 02:32 schrieb Joel via ntg-context: I have code like this which randomly pulls a page from `comic2.pdf` and displays it, scaled to fit \textwidth, then displays four more random pages afterwares. \starttext    \dorecurse{5}{             \placefigure[force, none

[NTG-context] How to set the vertical spacing between a sequence of images?

2022-10-24 Thread Joel via ntg-context
I have code like this which randomly pulls a page from `comic2.pdf` and displays it, scaled to fit \textwidth, then displays four more random pages afterwares. \starttext   \dorecurse{5}{             \placefigure[force, none]{}{\framed[frame=off]{\externalfigure[comic2.pdf][page

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
eat, background={Ornament}] \starttext \dorecurse {10} {Test \page} \stoptext All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Max Chernoff via ntg-context
to restrict it to only apply the lines to some parts of the file, > not every single paragraph? Option 1: \newif\ifprintlines \EveryPar{% \ifprintlines% \vbox to 0pt{% \dorecurse{3}{% \rlap{% \hskip\di

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Joel via ntg-context
ree line paragraph         Four line paragraph \\       Four line paragraph \\       Four line paragraph \\       Four line paragraph         \samplefile{bryson}         \samplefile{knuth}   \stoptext An \everypar solution:   \appendtoks%       \vbox to 0pt{%           \dorecurse{3}{%        

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Joel via ntg-context
rote: >>  Hello Max, >> It is preferred if the solution is just three lines per paragraph, >> rather than some content parallel to the text > A Lua callback solution: > > [...] > > An \everypar solution: > >    \appendtoks% >        \vbox to 0pt{% >            \dor

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Wolfgang Schuster via ntg-context
solution: \appendtoks% \vbox to 0pt{% \dorecurse{3}{% \rlap{% \hskip\dimexpr\hsize+1em% \vrule height 0.4pt width 3cm% \relax% }% }% }% \to\everypar You can use

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Max Chernoff via ntg-context
e paragraph Three line paragraph \\ Three line paragraph \\ Three line paragraph Four line paragraph \\ Four line paragraph \\ Four line paragraph \\ Four line paragraph \samplefile{bryson} \samplefile{knuth} \stoptext An \

Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Hans Hagen via ntg-context
ppapersize [label] [A4] \setuplayout [page] \setuppaper [nx=3, ny=10, dx=1mm, dy=1mm] \setuplayout [horoffset=50mm, veroffset=10mm] \setuparranging [XY] \setupbackgrounds [page] [frame=on] \starttext \dorecurse{56} {\startpagemakeup \midalign

Re: [NTG-context] Missing letters and numbers in printout

2022-09-29 Thread Pablo Rodriguez via ntg-context
{\setuparranging[2UP] \setupinteractionscreen[option={landscape, paper}]} \starttext \dorecurse{32} {\input knuth\par} \stoptext In a copyshop I used to go (more than four years ago), they had a printer that didn’t understand duplex printing when pages were in landscape orientation.

Re: [NTG-context] faltal error: return code: 1

2022-08-25 Thread Pablo Rodriguez via ntg-context
On 8/25/22 19:41, Hans Hagen via ntg-context wrote: > [...] > you're missing an \egroup > > \starttext > \doloopoverlist{\tf,\ss,\tt} >{\bgroup > \recursestring > \doloopoverlist{\tf,\it,\bf,\bi,\sc} >{\bgroup >

Re: [NTG-context] faltal error: return code: 1

2022-08-25 Thread Hans Hagen via ntg-context
\recursestring\dorecurse{26} {\character{\recurselevel}̱ }\par}\egroup} \stoptext I get the following error: mtx-context | fatal error: return code: 1 But when checking the sources, no error is found: $ mtxrun --script check test-file.tex no error Just in case it helps

[NTG-context] faltal error: return code: 1

2022-08-25 Thread Pablo Rodriguez via ntg-context
Hans, using latest from today (and the previous one) with the following source: \starttext \doloopoverlist{\tf,\ss,\tt} {\bgroup\recursestring% \doloopoverlist{\tf,\it,\bf,\bi,\sc} {\bgroup\recursestring\dorecurse{26} {\character{\recurselevel}̱ }\par

Re: [NTG-context] C with macron

2022-08-25 Thread Hans Hagen via ntg-context
a little too far to the left I don’t know how ConTeXt handles it internally, but placement to main character differs with each letter: \starttext \doloopoverlist{\tf,\ss,\tt} {\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc} {\bgroup\recursestring\dorecurse{26

Re: [NTG-context] C with macron

2022-08-25 Thread Pablo Rodriguez via ntg-context
r to the left >> >> I don’t know how ConTeXt handles it internally, but placement to main >> character differs with each letter: >> >>\starttext >> \doloopoverlist{\tf,\ss,\tt} >>{\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\

[NTG-context] Question to footnote settings

2022-08-25 Thread Tomáš Hála via ntg-context
(see p. 1). (Number alignment to the right is required.) Thanks in advance for some hints. Tomáš MWE: \setupnotation[footnote][ alternative=left, width=1em, numbercommand={\hfill\high}, ] \starttext \showframe[text][text] \dorecurse{6}{This is a text.\footnote{\dorecurse{12}{Blah blah blah

Re: [NTG-context] C with macron

2022-08-24 Thread Hans Hagen via ntg-context
with each letter: \starttext \doloopoverlist{\tf,\ss,\tt} {\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc} {\bgroup\recursestring\dorecurse{26} {\character{\recurselevel}̱ }\par}\egroup} \stoptext just run the attached

Re: [NTG-context] C with macron

2022-08-24 Thread Pablo Rodriguez via ntg-context
t{\tf,\ss,\tt} {\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc} {\bgroup\recursestring\dorecurse{26} {\character{\recurselevel}̱ }\par}\egroup} \stoptext Pablo ___ If your

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Aditya Mahajan via ntg-context
ti-page-pdf/ > > Hi Aditya, > > I wonder whether your final definition should be rewritten as: > > \unexpanded\def\includePDF[#1]% > {\getfiguredimensions[#1] > \dorecurse{\noffigurepages} > {\startTEXpage > \externalfigure[#1][page=\recurse

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Pablo Rodriguez via ntg-context
\unexpanded\def\includePDF[#1]% {\getfiguredimensions[#1] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[#1][page=\recurselevel] \stopTEXpage}} At least, otherwise it will only work with "talk.pdf". Or am I missing something? Many t

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Jethro Djan via ntg-context
ier for me to reason in the lua side of things. This is what I > > have at the moment: > > I think this might be what you intend: > > \setuplayout[page] > \starttext > \doloopoverlist{ass1,ass2,ass3,ass4,ass5,ass6,ass7,ass8} > {\def\Doc{\recursestring.pdf} >

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Pablo Rodriguez via ntg-context
I > have at the moment: I think this might be what you intend: \setuplayout[page] \starttext \doloopoverlist{ass1,ass2,ass3,ass4,ass5,ass6,ass7,ass8} {\def\Doc{\recursestring.pdf} \getfiguredimensions[\Doc] \dorecurse{\noffigurepages} {\externalfigure[\Doc] [page=\

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