[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
] \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 others

[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
ge] \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's how I

[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
/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  headerdi

[NTG-context] typearea

2023-10-29 Thread Thomas Meyer
area/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}{\character \recurs

[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
as intermediate: % \startsetups[userdata:idautor] % \dontleavehmode % \imghref % {\externalfigure[cvlac.pdf][logo]} % {\datasetvariable{autores}{\recurselevel}{vclac}} % \quad % \imghref % {\externalfigure[orcid.pdf][logo]} % {\datasetvariable{autores}{\recurselevel}{orcid

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
[gscholar.pdf][logo]} {\userdataparameter{gscholar}} \quad \userdataparameter{author}\par \stopsetups \defineuserdata[idautor][alternative=idautor] \startdocument % I have to manually set the length of the dataset in the loop and use recurselevel... % Maybe there is a way to use the length

[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: 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{tuf

[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] 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] How to display the pages of a particular section in another PDF?

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

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
][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"},{page=s}) end \s

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 spotte

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

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

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] \recurseleve

Re: [NTG-context] Clipping multiple PDFs

2022-08-21 Thread Pablo Rodriguez via ntg-context
th generates 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
the 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

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

2022-06-17 Thread Wolfgang Schuster via ntg-context
ror 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{1}{10} %\

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
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
artchapter[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-07 Thread jbf via ntg-context
uphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \ifnum\headnumber[chapter]=5 {\

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 \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
stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \blank \i

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

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

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

2022-03-06 Thread śrīrāma via ntg-context
s 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}{\recurselevel}}]

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

2021-11-14 Thread skyhorse--- via ntg-context
topitemize > > } > > \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 w

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

2021-11-14 Thread Wolfgang Schuster via ntg-context
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 show the error, in hopes that it will shed some light on what's wrong with my setup

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 show t

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 part

[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-25 Thread Gerben Wierda via ntg-context
>> \definetext >> [chapterfooter] % name >> [footer]% vertical location >> [pagenumber]% content >> >> \setuphead >> [chapter] >> [header=empty, >>footer=chapterfooter] >> >> \starttext >> >&

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
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 Wolfgang

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 c

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
,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 % \hbox to .2

[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

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 solutio

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

2021-09-13 Thread Wolfgang Schuster via ntg-context
this? \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
e file 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

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

2021-07-31 Thread Jeroen via ntg-context
page \externalfigure[\jobname_slides.pdf][page=\recurselevel] \stopTEXpage} \stopappendices \stoptext Op za 31 jul. 2021 om 16:22 schreef Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl>: > > On 7/31/21 4:06 PM, Pablo Rodriguez via ntg-context wrote: >

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

2021-07-31 Thread Pablo Rodriguez via ntg-context
name_slides.tex][--purgeall][object=no, width=0pt] \stopbodymatter \startappendices \getfiguredimensions[\jobname_slides.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname_slides.pdf][page=\recurselevel] \stopTEXpage} \stopappendices \stoptext BT

Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Otared Kavian
> \dorecurse{50}{\expanded > {\startframe > \startMPcode > numeric u, omega, mylength, tt ; > u := 2cm ; > omega := 4 ; > mylength := 3.141596 ; > tt := \recurselevel ; > path p ; > p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 100 : > .. (((mylength/1

Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Jeroen
{\startframe \startMPcode numeric u, omega, mylength, tt ; u := 2cm ; omega := 4 ; mylength := 3.141596 ; tt := \recurselevel ; path p ; p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 100 : .. (((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u) endfor ; draw p withpen pencircle scaled .5pt

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
:= 3.141596 ; tt := \recurselevel - 1 ; N := 500 ; % number of steps path p ; p := (0u,0u) for i = 1 upto N : -- (((mylength/N)*i)*u,cos(omega*(mylength

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
\startMPcode numeric u, omega, mylength, tt ; u := 2cm ; omega := 4 ; mylength := 3.141596 ; tt := \recurselevel ; path p

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Jeroen
small animation to enlarge a circle > > > \usemodule[animation] > \setupinteraction[state=start] > \starttext > \startanimation[menu=yes,framerate=10] > \dorecurse{7}{\expanded > {\startframe > \startMPcode > path p; > numeric n, u; > u := 1cm; >

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Fabrice L
e > \startMPcode > path p; > numeric n, u; > u := 1cm; > n:=\recurselevel*u; > p := fullcircle scaled n; > draw p; > \stopMPcode > \stopframe}} > \stopanimation > \stoptext > > > This I use to draw a sine > > > \st

[NTG-context] Metapost Animation of Sine

2021-07-21 Thread Jeroen
I use this small animation to enlarge a circle \usemodule[animation] \setupinteraction[state=start] \starttext \startanimation[menu=yes,framerate=10] \dorecurse{7}{\expanded {\startframe \startMPcode path p; numeric n, u; u := 1cm; n:=\recurselevel*u; p := fullcircle

Re: [NTG-context] number in \doloopoverlist?

2021-07-14 Thread Pablo Rodriguez
On 7/14/21 9:06 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 14.07.2021 um 20:41: >> Dear list, >> >> I have the following sample: >> >>\starttext >>\doloopoverlist{a,b,c,d} >> {\recursestring, number: \recurselevel\\}

Re: [NTG-context] number in \doloopoverlist?

2021-07-14 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 14.07.2021 um 20:41: Dear list, I have the following sample: \starttext \doloopoverlist{a,b,c,d} {\recursestring, number: \recurselevel\\} \stoptext Which is the way to get the number when looping over a list? There is no number, you're just

[NTG-context] number in \doloopoverlist?

2021-07-14 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \doloopoverlist{a,b,c,d} {\recursestring, number: \recurselevel\\} \stoptext Which is the way to get the number when looping over a list? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] weekend upload - stacking and animation

2021-07-13 Thread Hans Hagen
; endfor ; \stopuseMPgraphic \unprotect \tolerant\protected\def\useMPanimation[#1]#2%    {\begingroup     \scratchtoks\emptytoks \dorecurse{10}{\etoksapp\scratchtoks{{\useMPgraphic[\c!stacking={\recurselevel}]{#2%     \expanded{\startanimation[#1]\the\scratchtoks

Re: [NTG-context] weekend upload - stacking and animation

2021-07-13 Thread Floris van Manen
\unprotect \tolerant\protected\def\useMPanimation[#1]#2%   {\begingroup    \scratchtoks\emptytoks \dorecurse{10}{\etoksapp\scratchtoks{{\useMPgraphic[\c!stacking={\recurselevel}]{#2%    \expanded{\startanimation[#1]\the\scratchtoks\stopanimation}%    \endgroup} \protect

Re: [NTG-context] weekend upload - stacking and animation

2021-07-13 Thread Hans Hagen
) withstacking i ; endfor ; \stopuseMPgraphic \unprotect \tolerant\protected\def\useMPanimation[#1]#2% {\begingroup \scratchtoks\emptytoks \dorecurse{10}{\etoksapp\scratchtoks{{\useMPgraphic[\c!stacking={\recurselevel}]{#2% \expanded{\startanimation[#1]\the\scratchtoks

  1   2   3   4   5   6   7   8   9   >