Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Kevin Kenan
On Apr 25, 2020, at 2:34 PM, Wolfgang Schuster wrote: > > \starttext > > \startitemize[n] > \item A > \txt{k} B > \noitem > \item C > \stopitemize > > \stoptext > > Wolfgang Nice…so many options. :) -kk___ If

Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Wolfgang Schuster
Kevin Kenan schrieb am 25.04.2020 um 23:30: Ah…thanks for the pointer to \definecoversion. Looks promising. I had also tried: \defineitemgroup[Steps] \setupitemgroup[Steps][each][n,packed] \starttext \startSteps \item A \sym{k} B\incrementnumber[itemgroup:Steps] \item C \stopSteps \stoptext

Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Kevin Kenan
Ah…thanks for the pointer to \definecoversion. Looks promising. I had also tried: \defineitemgroup[Steps] \setupitemgroup[Steps][each][n,packed] \starttext \startSteps \item A \sym{k} B\incrementnumber[itemgroup:Steps] \item C \stopSteps \stoptext Which is similar to your \txt solution and

Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Wolfgang Schuster
Kevin Kenan schrieb am 25.04.2020 um 21:24: I’m trying to create a conditional that changes the symbol used for certain item numbers. Here’s my code that doesn’t work. \define[1]\StepsCommand{\doifelse{#1}{2}{k}{#1}\ignorespaces} \defineitemgroup[Steps] \setupitemgroup[Steps][each][n,packed]

[NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Kevin Kenan
I’m trying to create a conditional that changes the symbol used for certain item numbers. Here’s my code that doesn’t work. \define[1]\StepsCommand{\doifelse{#1}{2}{k}{#1}\ignorespaces} \defineitemgroup[Steps] \setupitemgroup[Steps][each][n,packed]

Re: [NTG-context] Trouble setting PDF boxes

2020-04-25 Thread Jack Steyn
After much searching, my probably laughable attempt consists of combining the answer to the question at https://tex.stackexchange.com/questions/433110/setting-page-attributes-of-every-page-in-a-generated-context-file with what I can see in the source at

Re: [NTG-context] extracting pages using luacode

2020-04-25 Thread Floris van Manen
On 25-04-2020 16:56, Hans Hagen wrote: >> >> Where am I missing the point? > the syntax ... > >     context.externalfigure( { "my_pdf.pdf" }, { page = blz } ) so simple :-) Thanks! .F pEpkey.asc Description: application/pgp-keys

Re: [NTG-context] extracting pages using luacode

2020-04-25 Thread Hans Hagen
On 4/25/2020 4:17 PM, Floris van Manen wrote: I'm trying to extract pages from an existing pdf using lua. But this approach to extract pages 11 and 30 does not work: \starttext \startluacode for i, blz in ipairs({11, 30}) do context.startTEXpage() context.externalfigure("my_pdf.pdf",

[NTG-context] extracting pages using luacode

2020-04-25 Thread Floris van Manen
I'm trying to extract pages from an existing pdf using lua. But this approach to extract pages 11 and 30 does not work: \starttext \startluacode for i, blz in ipairs({11, 30}) do context.startTEXpage() context.externalfigure("my_pdf.pdf", page=blz) context.stopTEXpage() end \stopluacode

[NTG-context] Trouble setting PDF boxes

2020-04-25 Thread Jack Steyn
Hi, I am having trouble setting the PDF boxes to my desired dimensions. Suppose I have \setuppapersize[*a*][*b*]. I want CropBox = MediaBox = *b*. So far, so good: I can just use cropoffset=0mm in \setuplayout. But I want TrimBox = *a*. However, as far as I can see, I can't achieve this using

Re: [NTG-context] Solution: METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-25 Thread Gerben Wierda
On a hunch, I found a solution. I added \\ instead of \par at the end and goit exactly what I wanted. \enabletrackers[context.trace] \starttext %\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, g=0.000,