[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Joel via ntg-context
0}{1}{% > >        \input chapter\recurselevel > > } > > \stoptext > > That produces 180  chapters of content. > > Anyway, my boss is upset she has to use a table of contents to navigate to > the page she wants, and so wants me to split the file into 180  separate >

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Bruce Horrocks
> On 20 Sep 2024, at 03:57, Joel via ntg-context wrote: > > I have a document that's quite long. It uses a recurse function, a bit like > this: > > \starttext > > \dostepwiserecurse{1}{180}{1}{% > >\input chapter\recurselevel > >

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Jim
On Fri, Sep 20, 2024 at 02:57 (+), Joel via ntg-context wrote: > I have a document that's quite long. It uses a recurse function, a bit like > this: > \starttext >     \dostepwiserecurse{1}{180}{1}{% >    \input chapter\recurselevel > } > \stoptext > T

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 20.09.2024 um 04:57: I have a document that's quite long. It uses a recurse function, a bit like this: \starttext     \dostepwiserecurse{1}{180}{1}{%    \input chapter\recurselevel } \stoptext That produces 180  chapters of content. Anyway, my

[NTG-context] How to tell a single *.tex file to produce separate PDFs?

2024-09-19 Thread Joel via ntg-context
I have a document that's quite long. It uses a recurse function, a bit like this: \starttext     \dostepwiserecurse{1}{180}{1}{%    \input chapter\recurselevel } \stoptext That produces 180  chapters of content. Anyway, my boss is upset she has to use a table of contents to navigate t

[NTG-context] Re: table float split behavior

2024-07-08 Thread vm via ntg-context
On 08/07/2024 16:25, Henning Hraban Ramm wrote: Try #1, it often works where \recurselevel fails. That gives the intended numbers. Thank you ___ If your question is of interest to others as well, please add an

[NTG-context] Re: table float split behavior

2024-07-08 Thread Henning Hraban Ramm
Am 08.07.24 um 15:48 schrieb vm via ntg-context: There is a reason that the \recurselevel do not work in this context; all \recurselevel show up as zero   {\bTABLE    \dorecurse{100}{    \bTR \bTD \recurselevel \eTD \bTD one \eTD \eTR    \bTR \bTD two \eTD \bTD \recurselevel \eTD \eTR

[NTG-context] Re: table float split behavior

2024-07-08 Thread vm via ntg-context
parameters of \type{\setupframes}, see page. 123} {Parameters of \type{\setupsomething}.} } {\bTABLE \dorecurse{100}{ \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR } \eTABLE} \stoptext There is a reason that the \recurselevel do not work in this

[NTG-context] Re: compatibility between \startshapetext and \startsection ?

2024-05-15 Thread Garulfo
Thanks you Wolfgang. If it's not possible to use \blank, it appears that using for example \strut\par\strut\par is OK (but \par\par is not, ) \dorecurse{5}{ \strut\par\strut\par \leftaligned{Title for section{\recurselevel}} \strut\par\strut\par \darkred\input knuth \par \darkblue\input

[NTG-context] Re: compatibility between \startshapetext and \startsection ?

2024-05-15 Thread Wolfgang Schuster
seems also to break the shaping) Example : 2 pages without sectioning, and after 2 pages by uncommenting the \startsection and \stopsection commands. [...] \dorecurse{5}{ \startsection[title={Title for section{\recurselevel}}] \darkred\input knuth \par \darkblue\input ward \stopsection } The

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
,stretch,normal]% \setupindenting[yes,small]% \strut% \reference[myref1]{MyRef1}Here is the first reference.\par See reference \in[myref2] on \at{page}[myref2]\par % \dorecurse{5}{ %\startsection[title={Title for section{\recurselevel}}] \darkred\input knuth \par \darkblue\input ward %\stopsection

[NTG-context] Re: more register questions!

2024-05-07 Thread Rik Kabel
amplefile{lorem}\expanded{\setregisterentry[index][entries=\recurselevel]}% \samplefile{lorem}\footnote{xxx\expanded{\setregisterentry[index][entries=\recurselevel][footnote={\rawcountervalue[footnote]}]}}%    \samplefile{lorem}} \page \placei

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
\high{\currentregisterpageuserdata{footnote \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\samplefile{lorem}\expanded{\setregisterentry[index][entries=\recurselevel]}% \samplefile{lorem}\footnote{xxx\expanded{\setregisterentry[index][entries=\recurselevel][foo

[NTG-context] Re: more register questions!

2024-05-03 Thread Wolfgang Schuster
xpanded{\setregisterentry[index][entries=\recurselevel]}% \samplefile{lorem}\footnote{xxx\expanded{\setregisterentry[index][entries=\recurselevel][footnote={\rawcountervalue[footnote]}]}}%    \samplefile{lorem}} \page \placei

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-24 Thread Pablo Rodriguez via ntg-context
On 4/24/24 02:15, Joel via ntg-context wrote: > [...] Any idea how I can get current footnote value? Hi Joel, current footnote value can be accessed with \rawcountervalue[footnote], such as in: \starttext \dorecurse{25} {\ \footnote{Footnote \recurselevel}: \rawcounterva

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
r[Fakepage] \strut \blank \bold{[\Schema]} \vfill This is page \recurselevel \vfill \stopbuffer \starttext \dorecurse{\Pages}{\getbuffer[Fakepage]\page} \stoptext ___ If your question is of interest to

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
ction(n) context(n + ((n % 4 == 0) and 1 or (5 - n % 4))) end } \stopluacode \unprotect \def\beforequadruplenumber#1{\clf_beforequadruplenumber\numexpr#1\relax} \def\afterquadruplenumber #1{\clf_afterquadruplenumber \numexpr#1\relax} \protect \starttext \dorecurse{20}{\recurselevel\space = \beforequ

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
pr #1 + 3 \orelse\ifnum\modulonumber{4}{#1} = 3 \the\numexpr #1 + 2 \else \the\numexpr #1 +1 \fi} \dorecurse{25}{\recurselevel: \beforequadruplenumber{\recurselevel}\\} \dorecurse{25}{\recurselevel: \afterquadruplenumber{\recurselevel}\\} %\page[123] %\null \page[\befor

[NTG-context] Re: Asking help for better way to make tickets.

2024-01-12 Thread Marco Patzer
[page] \setuppagenumbering [state=stop] \setupmakeup [standard] [align=middle] \setupblank [2*line] \showframe \starttext \dorecurse{12}{%% \startstandardmakeup Text \blank {\tfd\recurselevel} \blank Text \stopstandardmakeup \page} \stoptext That'

[NTG-context] Asking help for better way to make tickets.

2024-01-12 Thread Jeong Dal via ntg-context
;), .75A + .25B);\stopuseMPgraphic\starttext\dorecurse{4}{\startcombination[3*1]%distance=0mm]{\useMPgraphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=0}}{}\stopcombination\startcombination[3*1]%distance=0mm]{\useMPg

[NTG-context] Re: named destinations in /GoToR

2023-11-14 Thread Pablo Rodriguez via ntg-context
lowing sample: \setupinteraction[state=start, focus=standard] \starttext \dorecurse{5}{\dorecurse{5} {\chapter[\recurselevel]{Chapter} \section[sec-\recurselevel]{Section}}} \stoptext Of course, this kind of identifiers have to be unique to be useful, but I wonder

[NTG-context] Re: named destinations in /GoToR

2023-11-13 Thread Michal Vlasák
> \starttext > \dorecurse{5} > {\chapter[\recurselevel]{Chapter} > \section[sec-\recurselevel]{Section}} > \stoptext > > This source only samples PDF documents not generated with ConTeXt. This > means that no .tuc file may be available and named destinations ma

[NTG-context] named destinations in /GoToR

2023-11-13 Thread Pablo Rodriguez via ntg-context
Dear list, imagine I have a PDF document (named "whatever.pdf") such as the one generated from this source: \setupinteraction[state=start, focus=standard] \starttext \dorecurse{5} {\chapter[\recurselevel]{Chapter} \section[sec-\recurselevel]{Section}} \stoptext T

[NTG-context] Re: typearea

2023-10-29 Thread Thomas Meyer
t /(\PageWidth /32768)\relax }} \par \setbox \scratchbox \hbox {\dorecurse {26}{\character \recurselevel }} \Width =\dimexpr \TA@alphabet     \setupTypeArea[bcor=0pt,oneside=no,alphabets=2.6] 79  height=\the\Height, 80  width=\the\Width, 81  header=2\lineheight, 82   

[NTG-context] typearea

2023-10-29 Thread Thomas Meyer
text/third/typearea/t-typearea.tex: Missing number, treated as zero     { \TA@alphabets \par \PageWidth =\dimexpr \paperwidth -\TA@bcor \relax \par \edef \Ratio {\withoutpt {     \the \dimexpr 2\paperheight /(\PageWidth /32768)\relax }} \par \setbox \scratchbox \hbox {\dorecurse {26}{\ch

[NTG-context] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
I had no luck with page floats in columnsets; according to the manual they should work. Hraban \setuppapersize[A5,landscape] \useMPlibrary[dum] \definecolumnset[Two][n=2] \starttext \startcolumnset[Two] \dorecurse{5}{1\recurselevel\samplefile{lorem}\par} \startplacefigure[location=page

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
mla=AOV7GLPWRTK-xooHNe0iQ3uubfcSbG__GY_Guy35FdaqDJA3OfLLtp01-E1kzjxUhltlsfj494MaoQFkk9U9hCFYSipoR8aX0Vu2E6sV}, ] There is no need to use userdata as intermediate: % \startsetups[userdata:idautor] % \dontleavehmode % \imghref % {\externalfigure[cvlac.pdf][logo]} % {\datasetvariable{autores}{\recurselevel}{vclac}} %

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
ually set the length of the dataset in the loop and use recurselevel... % Maybe there is a way to use the length of the "autores" dataset? and use indexes? \dorecurse{5}{ \startuserdata[idautor][ author={\datasetvariable{autores}{\recurselevel}{nombre}}, cvlac={\datasetvariab

[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
erence (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: 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] 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] 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{tufte}} \s

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

2023-03-05 Thread Keith McKay via ntg-context
oundcolor=blue] \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] 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 with LMTX (b

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

2022-12-05 Thread Hans Hagen via ntg-context
{\cldcontext{document.foundsection.first}} {0} { \dostepwiserecurse {\cldcontext{document.foundsection.first}} {\cldcontext{document.foundsection.last}} {1} { \DoWithSection{#1}{\recurselevel} } } \stoptexdefinition

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

2022-12-05 Thread Henning Hraban Ramm via ntg-context
re[filename.pdf][section=17A] Use a loop in Lua or TeX: https://wiki.contextgarden.net/System_Macros/Loops_and_Recursion \dostepwiserecurse {5} {17} {1} {\externalfigure[filename.pdf][page=\recurselevel]} or \startluacode for s=5, 17 do context.externalfigure({"filename.pdf"},{p

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

2022-08-25 Thread Pablo Rodriguez via ntg-context
\recursestring\dorecurse{26} > {\character{\recurselevel}̱ }\par > \egroup} > \egroup} > \stoptext Many thanks for your reply, Hans. I wonder whether mtxrun --script check should have s

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
} {\character{\recurselevel}̱ }\par}\egroup} \stoptext just run the attached Many thanks, it works fine. the one in the update is more interesting - Hans Hagen | PRAGMA ADE

Re: [NTG-context] C with macron

2022-08-25 Thread Pablo Rodriguez via ntg-context
sc} >> {\bgroup\recursestring\dorecurse{26} >>{\character{\recurselevel}̱ }\par}\egroup} >>\stoptext > just run the attached Many thanks, it works fine. Pablo ___ If your question

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 quest

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

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
\getfiguredimensions[\Doc] > \dorecurse{\noffigurepages} > {\externalfigure[\Doc] >[page=\recurselevel, width=20cm, scale=950]}} > \stoptext > > > I didn’t know how to get an array (or indexed table or whatever you > > call it) in ConTeXt/Tex. >

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Pablo Rodriguez via ntg-context
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=\

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
of the commands > mentioned above): > > \startbuffer[newbuff] > \setuppapersize[A3] > \setupbodyfont[sans, 1200pt] > \starttext > \dorecurse{8} > {\startmakeup[page][pagestate=start, align=center, style=\bf] >\recurselevel > \stopmakeup} >

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
th \getfiguredimensions you get the number of pages of each PDF > document (\noffigurepages). > > The following source both generates the source PDF document and the > imposed result with clipped pages (just to see a sample of the commands > mentioned above): > > \startbuffer[

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
F document and the imposed result with clipped pages (just to see a sample of the commands mentioned above): \startbuffer[newbuff] \setuppapersize[A3] \setupbodyfont[sans, 1200pt] \starttext \dorecurse{8} {\startmakeup[page][pagestate=start, align=center, style=\bf] \recurselevel

Re: [NTG-context] Clipping multiple PDFs

2022-08-21 Thread Pablo Rodriguez via ntg-context
enerates the source PDF document and the imposed result with clipped pages (just to see a sample of the commands mentioned above): \startbuffer[newbuff] \setuppapersize[A3] \setupbodyfont[sans, 1200pt] \starttext \dorecurse{8} {\startmakeup[page][pagestate=start, align=center, style=\

[NTG-context] Write a long chapter title in two lines

2022-08-15 Thread Jeong Dal via ntg-context
flushoutputstream[es] > \page \flushoutputstream[en] > \stoptext > > To reorder pages, I rename the output to "wg.pdf" and run the following > code: > > \setuppapersize[A6] > \setuplayout[page] > \starttext > \dorecurse{26} > {\ifnum\recurselevel =

[NTG-context] sync text streams in facing pages

2022-08-15 Thread Pablo Rodriguez via ntg-context
output to "wg.pdf" and run the following code: \setuppapersize[A6] \setuplayout[page] \starttext \dorecurse{26} {\ifnum\recurselevel = 1 \externalfigure[wg.pdf][page=\recurselevel]\else \externalfigure[wg.pdf][page=\recurselevel] \externalfigure[wg.pdf][page={\t

[NTG-context] dorecurse within combination

2022-07-07 Thread Henning Hraban Ramm via ntg-context
Hi, I’d like to place pages from a multipage PDF in a combination: \startcombination[3*1] \dorecurse{3}{% {\externalfigure[multipage][width=\textwidth/3,page=\recurselevel]}{} } \stopcombination That doesn’t work, because ConTeXt expects a { after \startcombination. (“A left brace was

Re: [NTG-context] How to print a random whole number between x and y?

2022-06-17 Thread Wolfgang Schuster via ntg-context
get the error message. What you can try is to replace \getrandomnumber and "page=\n" with "page=\randomnumber{...}{...}". \startbuffer[dummyfile] \dorecurse{10}{\centerbox{\definedfont[Sans sa 10]Page \recurselevel}} \stopbuffer \setuplayout[page] \starttext %\getrandomnumber\n

Re: [NTG-context] \setuplist only for bodypart

2022-06-17 Thread Pablo Rodriguez via ntg-context
\starttext \completecontent \startfrontmatter \dorecurse{5} {\chapter{Chapter \recurselevel}} \stopfrontmatter \startbodymatter \dorecurse{5} {\chapter{Chapter \recurselevel}} \stopbodymatter \startbackmatter \dorecurse{5} {\chapter{Chapter \recurselevel}} \stopbackmatter \stoptex

[NTG-context] How to define a section title, after the section title appears?

2022-06-12 Thread Joel via ntg-context
conditions decide to place macros \altMa, \altMb, or \altMc inside, but becomes called "Compare and Contrast" if one of a dozen other macros are pladed there. - The macros are defined in an entirely different macros.tex file. - The whole document is in a recurse loop, so \recurseleve

[NTG-context] stacking of marginals

2022-05-31 Thread Henning Hraban Ramm via ntg-context
between stack=yes or no: \usemodule[visual] \useMPlibrary[dum] \setupmargindata[inmargin][stack=yes] \starttext \dorecurse{20}{% \fakewords{5}{30} \inmargin{\externalfigure[dummy\recurselevel][width=15mm,height=15mm]} \fakewords{5}{40}\par } \stoptext Hraban

Re: [NTG-context] item enumeration

2022-05-25 Thread Wolfgang Schuster via ntg-context
:\currentparentitemgroup][\recurselevel].}%  #1% } \defineconversion[legal][\legalconversion] How can fix this? Are you looking for the repeat keyword? \starttext \setupitemize[1][width=\widthofstring    {0},distance=1em] \setupitemize[2][width=\widthofstring  {0.0},distance=1em] \setupitemize[3

[NTG-context] item enumeration

2022-05-25 Thread Jorge Manuel via ntg-context
Hi to All A have this piece of code that works in old ConText versions but with new versions (current version: 2022.04.19 19:53) don’t. \def\legalconversion#1{  \dorecurse{\numexpr\currentitemlevel-1}{%  \rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%  #1% } \defineconversion

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Pablo Rodriguez via ntg-context
onversion=mp]}] \definesymbol [no] [{\externalfigure[off.svg][conversion=mp]}] \setupfield[setup3][width=2ex, height=2ex] \dorecurse{3} {\definefield [check-\recurselevel] [check] [setup3] [yes,no] [no]} \setupbodyfont[sans, 30pt] \starttext \startTEXpage[offset=1em, foregroun

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
{Work supported by fund \recurselevel.}}} \endgraf Me\dorecurse{10}{\expanded{\email{\tt my.name@mailbox.\recurselevel.com }}\high{,}}\note[address][fst]\high{,}\note[address][snd]\high{,}\note[address][thd] \endgraf \placenotes[address] \blank[medium] \startcolumns\hyphenpenalty1000

Re: [NTG-context] recursion in a table

2022-05-02 Thread Hans Hagen via ntg-context
On 5/2/2022 2:30 AM, Aditya Mahajan via ntg-context wrote: \expanded{\NC \recurselevel \noexpand\NC ... } There is no need for \noexpand before \NC. Even \NR is protected. In MKIV there are some more sensitive ones like \FR but in LMTX these are defined as \noaligned which permits them

Re: [NTG-context] recursion in a table

2022-05-01 Thread Aditya Mahajan via ntg-context
upexternalfigures[width=3em,height=2em,frame=on,] > > %\def\TXT{\ruledhbox{\bf(XyX)}} > \def\TXT{\externalfigure[pic]} > > \starttabulate[|l|l|l|l|l|l|] > \NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR > \HL > \dostepwiserecurse{0}{359}{45}{% > %\exp

[NTG-context] recursion in a table

2022-05-01 Thread Henning Hraban Ramm via ntg-context
[pic]} \starttabulate[|l|l|l|l|l|l|] \NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR \HL \dostepwiserecurse{0}{359}{45}{% %\expanded{\setuprotate[rotation=\recurselevel]} \NC{\expanded{\recurselevel}˚}% \NC{\ruledhbox{X\rotate[location=normal,rotation=\recurselevel]{\TXT}X

[NTG-context] How to create a more human-readable syntax for displaying workbook activities?

2022-04-18 Thread Joel via ntg-context
code, I can compile a specific range of chapters, not the whole workbook. \define\activityA{} \define\activityB{} \dostepwiserecurse{1}{30}{1}{     \chapter{\recurselevel}         \activityA         \activityB } \activityA prints the workbook activity "Activity A". \activityB prints t

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
e{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \ifnum\headnumber[chapter]=5 {\bfd five} \fi \blank \input tufte \blank \input ward \blank \ifnum\recurselevel=5 \page \i

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
mpty]} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \ifnum\h

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
e{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \ifnum\headnumber[chapter]=5 {\bfd five} \fi \blank \input tufte \blank \input ward \blank \ifnum\recurselevel=5 \page \input zapf

Re: [NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
{\page[empty]} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \blank \input tufte \blank \input ward \blank \ifnum\recurselevel=5 \page \input zapf \input zapf \fi \stopchapter } \stopte

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
\startsetups chapter:after \doifoddpageelse{} {\page[empty]} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recu

Re: [NTG-context] mwe (font proble) SOLVED

2021-11-14 Thread skyhorse--- via ntg-context
bullet of type #1. > >\stopitemize > > } > > \starttext > >\dorecurse{9}{\T\recurselevel} > > \stoptext > > > > Compiling this into a pdf file with context produces an error. > > I've pasted the complete context typesetting run to show the

Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread Wolfgang Schuster via ntg-context
is a bullet of type #1. \stopitemize } \starttext \dorecurse{9}{\T\recurselevel} \stoptext Compiling this into a pdf file with context produces an error. I've pasted the complete context typesetting run to show the error, in hopes that it will shed some light on what's wrong wit

Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread skyhorse--- via ntg-context
\item This is a bullet of type #1. > >\stopitemize > > } > > \starttext > >\dorecurse{9}{\T\recurselevel} > > \stoptext > > > > Compiling this into a pdf file with context produces an error. > > I've pasted the complete context typesetting run to s

Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread Hans Hagen via ntg-context
\recurselevel} \stoptext Compiling this into a pdf file with context produces an error. I've pasted the complete context typesetting run to show the error, in hopes that it will shed some light on what's wrong with my setup. I have a feeling that the stand along install is missing some vital p

[NTG-context] minimum working example plus (output)

2021-11-13 Thread skyhorse--- via ntg-context
Here is the minium not-working example which I took from the Wikigarden a few minutes ago. \def\T#1{% \startitemize[#1,joinedup] \item This is a bullet of type #1. \stopitemize } \starttext \dorecurse{9}{\T\recurselevel} \stoptext Compiling this into a pdf file with context

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-25 Thread Bruce Horrocks via ntg-context
netext >> [chapterfooter] % name >> [footer]% vertical location >> [pagenumber]% content >> >> \setuphead >> [chapter] >> [header=empty, >>footer=chapterfooter] >> >> \starttext >> >> \dorecurse{4} >> {\ex

[NTG-context] Move the page number from header to footer on the current page only?

2021-10-24 Thread Gerben Wierda via ntg-context
> >> \definetext >> [chapterfooter] % name >> [footer]% vertical location >> [pagenumber]% content >> >> \setuphead >> [chapter] >> [header=empty, >>footer=chapterfooter] >> >> \starttext >> >&g

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
[header=empty, >footer=chapterfooter] > > \starttext > > \dorecurse{4} > {\expanded{\chapter{Chapter \recurselevel}} >\dorecurse{10}{\samplefile{lorem}}} > > \stoptext > > Wolfgang Yes, this works in a simple setup. But it doesn’t work in mine with my LHS-q

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Wolfgang Schuster via ntg-context
. How can I do this? \definetext   [chapterfooter] % name   [footer]    % vertical location   [pagenumber]    % content \setuphead   [chapter]   [header=empty,    footer=chapterfooter] \starttext \dorecurse{4}   {\expanded{\chapter{Chapter \recurselevel}}    \dorecurse{10}{\samplefile{lorem

Re: [NTG-context] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Hans Hagen via ntg-context
he way, neither does \blackboard{Q} work. But \rationals works in the case of the letter Q. Hi Gerben, it only seems to work inside math:  \starttext  \dorecurse{26}{$\blackboard\characters{\recurselevel}  \Characters{\recurselevel}$}  \stoptext I hope it helps, Yes, the new \blackboard command

Re: [NTG-context] A book with sections

2021-10-23 Thread Wolfgang Schuster via ntg-context
Don't reset the counter for parts and chapters \defineresetset [default] [0,0] [1] \starttext \completecontent \dorecurse{4}   {\expanded{\part{Part \recurselevel}}    \dorecurse{5}{\expanded{\chapter{Chapter \recurselevel \stoptext

Re: [NTG-context] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Wolfgang Schuster via ntg-context
e case of the letter Q. Hi Gerben, it only seems to work inside math:  \starttext  \dorecurse{26}{$\blackboard\characters{\recurselevel}  \Characters{\recurselevel}$}  \stoptext I hope it helps, Yes, the new \blackboard command works, so $\blackboard{Q}$ works. Thanks. The \blackboard comman

Re: [NTG-context] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Gerben Wierda via ntg-context
only seems to work inside math: > > \starttext > \dorecurse{26}{$\blackboard\characters{\recurselevel} > \Characters{\recurselevel}$} > \stoptext > > I hope it helps, Yes, the new \blackboard command works, so $\blackboard{Q}$ works. Thanks. Feature request: make sure that the new

Re: [NTG-context] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Pablo Rodriguez via ntg-context
On 10/23/21 3:00 PM, Gerben Wierda via ntg-context wrote: > By the way, neither does \blackboard{Q} work. But \rationals works in > the case of the letter Q. Hi Gerben, it only seems to work inside math: \starttext \dorecurse{26}{$\blackboard\characters{\recurselevel} \Char

Re: [NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Pablo Rodriguez via ntg-context
kip4cm \dostepwiserecurse{0}{360}{10}{ \doloopoverlist{normal,default,depth,fit,broad,high,middle}{ \ruledhbox{\rotate[rotation=\recurselevel, location=\recursestring]{% \framed [width=\textheight, height=\textwidth, rulethickness=5pt, depth=0cm, foregroundstyle=\bfd] {\recurse

Re: [NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Hans Hagen via ntg-context
}] \starttext \doiffile{A3page.pdf} {\def\Doc{A3page.pdf} \getfiguredimensions[\Doc] \dorecurse{\noffigurepages} {\ifodd\recurselevel \rotate[rotation=90] {\externalfigure[\Doc][page=\recurselevel, width=\textheight]} \else\rotate[rotation=270

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
df][page=1,width=\textheight]}} } \stoptext irr it's actually shown somewhere in a manual but the source also has this % \dostepwiserecurse{0}{360}{10} % {\startlinecorrection[blank] %\hbox % {\expanded{\setuprotate[rotation=\recurselevel]}% % \traceboxplacementtrue %

[NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-21 Thread Pablo Rodriguez via ntg-context
] \dorecurse{\noffigurepages} {\ifodd\recurselevel \rotate[rotation=90] {\externalfigure[\Doc][page=\recurselevel, width=\textheight]} \else\rotate[rotation=270] {\externalfigure[\Doc][page=\recurselevel, width=\textheight]} \fi}} \stoptext I’m afraid that if

Re: [NTG-context] Test suite fonts/features-005.tex failing for me

2021-10-08 Thread Hans Hagen via ntg-context
ext/latest/cont-tst.zip> Can anyone else reproduce this, please? shoul dbe: What \recursedepth\recurselevel\space \feature[+]{smallcaps} What \recursedepth\recurselevel\space \feature[+]{oldstyle} What \recursedepth\recurselevel

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-14 Thread juh via ntg-context
pagenumbering >   [alternative=doublesided] > > \showframe > > \starttext > \dorecurse{10}{\expanded{\chapter{Chapter > \convertnumber{word}{\recurselevel > \stoptext this looks interesting, but it's not quite what I want. I think I would like to have a different so

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-13 Thread Wolfgang Schuster via ntg-context
? \setuphead   [chapter]   [page=yes,    alternative=inmargin,    location=outer,    align=outer] \setuppagenumbering   [alternative=doublesided] \showframe \starttext \dorecurse{10}{\expanded{\chapter{Chapter \convertnumber{word}{\recurselevel \stoptext Wolfgang

Re: [NTG-context] Rotating pages

2021-08-07 Thread Wolfgang Schuster via ntg-context
to achieve this? \startbuffer[apx] \setuppapersize[ \setuppapersize[%   \dorecurse{\noffigurepages}       {\startTEXpage \externalfigure[\jobname-apx.pdf][page=\recurselevel]  \stopTEXpage} \externalfigure [...] [page=\recurselevel,orientation=90] Wolfgang

[NTG-context] Rotating pages

2021-08-07 Thread Jeroen via ntg-context
\dorecurse{10}{\input zapf\par} \typesetfile[\jobname-apx.tex][--purgeall][object=no, width=0pt] \stopbodymatter \startappendices \getfiguredimensions[\jobname-apx.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname-apx.pdf][page=\recurselevel

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-06 Thread Jeroen via ntg-context
odymatter \dorecurse{10}{\input zapf\par} \typesetfile[\jobname-slides.tex][--purgeall][object=no, width=0pt] \stopbodymatter \startappendices \getfiguredimensions[\jobname-slides.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname-slides.p

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Pablo Rodriguez via ntg-context
ile as \typesetfile[\jobname-slides.tex][--purgeall][object=no, width=0pt] and the output file would read: \getfiguredimensions[\jobname-slides.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname-slides.pdf][page=\recurselevel] \stopTEXpage} I mean, y

  1   2   3   4   5   6   7   8   9   10   >