[NTG-context] preventing column break after section title

2024-04-18 Thread Peter Münster
Hi, How could I prevent a column break after the second section title please? Minimal example: \starttext \startcolumns[n=2] \section{title 1} \dorecurse{22}{bla\par} \section{title 2} % Here starts a new column. \startitemize \dorecurse{15}{\item bla} \stopitemize \stopcolumns

[NTG-context] \getmarking for top at the current page

2024-04-15 Thread Biblio--- via ntg-context
s{Test}][]   [\setups{Test}][] \setuppagenumbering[location=footer] \starttext \startDatum[title={secA}]%   \dorecurse{50}{aaa }   \pagebreak     \dorecurse{50}{aaa } \stopDatum \startDatum[title={secB}]%   \dorecurse{630}{bbb } \stopDatum \startDatum[title={secC}]%   \dorecurse{50}{ccc } \sto

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
] \dorecurse{12}{\samplefile{knuth}} \stopchapter \startchapter [title=Zapf] \dorecurse{12}{\samplefile{zapf}} \stopchapter \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
g a custom list and use \writetolist immediately > before each \stopchapter command? > > \definelist[LastPages][criterium=all] > \starttext > \completecontent > \page > \completelist[LastPages] > \page > \dorecurse{10}{ > \startchapter[title={This is my chapter

[NTG-context] Re: last page number for a list

2024-04-03 Thread Bruce Horrocks
? \definelist[LastPages][criterium=all] \starttext \completecontent \page \completelist[LastPages] \page \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \writetolist[LastPages]{3.}{\namedstructurevariable{chapter

[NTG-context] Re: Visually balanced columns

2024-03-27 Thread Wolfgang Schuster
to disable gridfitting for startcolumns, but it produces a completely distorted output. The pagecolumns environment supports bottom aligned content. \setupwhitespace[medium] \setupalign[depth] \starttext \startpagecolumns \dorecurse{20}{\samplefile{jojomayer}\par} \stoppagecolumns \stoptext Wolfgang

[NTG-context] Re: Headertext

2024-03-27 Thread Thomas Meyer
quot; in the following example. begin example \showframe \starttext \setuphead[chapter][header=high] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \setuphead[chapter][header=empty] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \stoptext end example A

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
[StudyTitle][criterium=all] \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo01} \startSourceTitle[reference={\Reference}, bookmark=Source01, title={}][ title=Source01, author=Author01, authorInitials=ABC, reference={\Reference}, ] \input knuth \page \dorecurse{25}{\input ward\par

[NTG-context] Re: Headertext

2024-03-26 Thread Wolfgang Schuster
, how? When you use "header=high" you can't have a header because the block for it no longer exists, compare the results for "header=high" and "header=empty" in the following example. begin example \showframe \starttext \setuphead[chapter][header=high] \ch

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer
[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \startsection[title={This is my section

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
ing: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={

[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
[alternative=doublesided,location=,] \setupheadertexts[{\headnumber[section].~\getmarking[section]}---{\headnumber[chapter].~\getmarking[chapter]}] \setupfootertexts[][pagenumber][pagenumber][] \setuphead[chapter][header=high] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter

[NTG-context] Re: command line arguments

2024-03-20 Thread Hraban Ramm
, as used in \dorecurse{\Pages}{…}, but not for the imposition schema. Typesetting \Schema looks right, but \setuparranging doesn’t work. Where's my error? You forgot about expansion and in your case \doifelsedocumentargument is not fully expandable. This doesn't matter for \dorecurse where

[NTG-context] Re: command line arguments

2024-03-19 Thread Wolfgang Schuster
Hraban Ramm schrieb am 19.03.2024 um 21:41: Following up on the other imposition question, I'm trying to make an example file that shows an imposition schema according to command line arguments. This way it works for the number of pages, as used in \dorecurse{\Pages

[NTG-context] Re: command line arguments

2024-03-19 Thread Willi Egger
Description: Binary data > On 19 Mar 2024, at 21:41, Hraban Ramm wrote: > > Following up on the other imposition question, I'm trying to make an example > file that shows an imposition schema according to command line arguments. > > This way it works for the number of pages, as

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
Following up on the other imposition question, I'm trying to make an example file that shows an imposition schema according to command line arguments. This way it works for the number of pages, as used in \dorecurse{\Pages}{…}, but not for the imposition schema. Typesetting \Schema looks

[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: Structuring a magazine or booklet

2024-02-29 Thread Jean-Pierre Delange
://wiki.contextgarden.net/Imposition I'll read and test it. Hi Jean-Pierre, in its simplest form, a booklet may be: \setuppapersize[A4][A3, landscape] \setuparranging[2UP] \starttext \dorecurse{28}{\section{Section}\input zapf} \stoptext I think this seems to be what you may be aiming at. Just in case

[NTG-context] Re: Structuring a magazine or booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
][A3, landscape] \setuparranging[2UP] \starttext \dorecurse{28}{\section{Section}\input zapf} \stoptext I think this seems to be what you may be aiming at. Just in case it might help, Pablo ___ If your question is of int

[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] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
be greatly appreciated. \setupinteraction[state=start, color=darkblue] \setupwhitespace [big] \starttext Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)] .\par \dorecurse{5}{\samplefile{lorem}\par} \stoptext Processed as follows: context mwe.tex context --extra=select

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
r][first][style=bold] \setupTABLE[r][each][ topoffset=1em,bottomoffset=0.5em, background=sketchylines, % would be nice if the background wouldn’t start at each column ] \setupTABLE[c][each][frame=off] \bTABLE[] \bTR \bTD{Stadt}\eTD \bTD{Land}\eTD \bTD{Fluss}\eTD \eTR \dorecurse

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
7:56 am, Mikael Sundqvist wrote: > > > > Hi, > > > > not sure I get what you are missing. But you can try > > > > setbounds currentpicture to (fullsquare scaled 200) ; > > > > in base. And then do > > > > \dorecurse{5}{ > > \start

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
ages entry > with it. Feel free to modify. > > Cheers > Emanuel > > On Feb. 16 2024, at 7:56 am, Mikael Sundqvist wrote: > > Hi, > > not sure I get what you are missing. But you can try > > setbounds currentpicture to (fullsquare scaled 200) ; > >

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
. And then do\dorecurse{5}{\startTEXpage[offset=1DK]\useMPgraphic{layerset#1}\stopTEXpage}if that is the looping you are after./MikaelOn Fri, Feb 16, 2024 at 6:54 AM Emanuel Han via ntg-context wrote:>> Resp. the solution should be such that each generated PDF page has the same dimension, th

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
ot sure I get what you are missing. But you can try > setbounds currentpicture to (fullsquare scaled 200) ; > in base. And then do > \dorecurse{5}{ > \startTEXpage[offset=1DK] > \useMPgraphic{layerset#1} > \stopTEXpage > } > > if that is the looping you are after. > /M

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
Hi, not sure I get what you are missing. But you can try setbounds currentpicture to (fullsquare scaled 200) ; in base. And then do \dorecurse{5}{ \startTEXpage[offset=1DK] \useMPgraphic{layerset#1} \stopTEXpage } if that is the looping you are after. /Mikael On Fri, Feb 16, 2024 at 6:54 AM

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
actually need to keep the \dorecurse mechanism of the mwe (from line 44 > on), because I need the "setbounds currentpicture to TheFrame" and also > because I need page numbering inside the MPpage, as done with draw > textext(decimal(currentime)). > So, how can I use t

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
Dear Mikael, I actually need to keep the \dorecurse mechanism of the mwe (from line 44 on), because I need the "setbounds currentpicture to TheFrame" and also because I need page numbering inside the MPpage, as done with draw textext(decimal(currentime)). So, how can I use the \us

[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")

2024-01-23 Thread Thomas Meyer
dle}] \setuplayout   [grid=yes] \showgrid \starttext \samplefile{lorem} \startPlaceAtBottom {\sl\samplefile{lorem}} \stopPlaceAtBottom \page \dorecurse{4}{\samplefile{lorem}} \startPlaceAtBottom {\sl\samplefile{lorem}} \stopPlaceAtBottom \stoptext Wolfg

[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")

2024-01-22 Thread Wolfgang Schuster
def\startPlaceAtBottom {\PlaceAtBottom\bgroup} \mainlanguage[de] \setupbodyfont[libertinus, 12pt] \setuppagenumbering [location={footer,middle}] \setuplayout [grid=yes] \showgrid \starttext \samplefile{lorem} \startPlaceAtBottom {\sl\samplefile{lorem}} \stopPlaceAtBottom \page \dorecurs

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-19 Thread Hans Hagen
On 1/19/2024 1:33 AM, Aditya Mahajan wrote: \starttext \dorecurse{5000}{\ReadFile{knuth}} \stoptext I'll send you the PDFs offlist. lmtx defaults to 'modern' so you need to \setupbodyfont[modern] for mkiv Hans

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Aditya Mahajan
LMTX generates more pages so it is > > faster. > > puzzling > > > Of course, this is a meaningless experiment from a practical point of view > > as a 1000 page document will be more complex than just text. > % engine=pdftex 1.2 > % engine=luatmetatex 1.6 >

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Hans Hagen via ntg-context
from a practical point of view as a 1000 page document will be more complex than just text. % engine=pdftex 1.2 % engine=luatmetatex 1.6 % engine=luatex 1.8 % engine=xetex 2.4 \starttext \dorecurse{500} { \input knuth \par } \stoptext 125 pages, so how does your test file

[NTG-context] How to Create Asymmetrical Continuous Columns in ConTeXt?

2024-01-18 Thread seyal . zavira
] \setupcolumnset[mymixedcolumn:2][width=7cm] \starttext \startcolumnset[mymixedcolumn] \dorecurse{5}{ \input{knuth} } \stopcolumnset \stoptext also is there a mechanism to automatically continue text between desired frames? For example, is there a way to write a function that, if the text

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-14 Thread mf
an numerals, followed by the main text starting from page 1 in arabic numerals. So the twelfth page is 'XII', while the twenty-second is '2'. How do I get 'XII' from 12 and '2' from 22? \defineconversionset   [frontpart:pagenumber] [] [romannumerals] \setuppagenumber   [way=byblock] % Alternative met

[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: conversion from realpage to pagenumber

2024-01-12 Thread Wolfgang Schuster
than being reset % % \startsectionblockenvironment[bodypart] %   \resetuserpagenumber % \stopsectionblockenvironment \starttext \startfrontmatter \dorecurse{20}{\samplefile{lorem}\page} \stopfrontmatter \startbodymatter \dorecurse{20}{\samplefile{lorem}\page} \stopbodymatter \stoptext

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image( label("Word 1", z1); ); p2:=image( label("Mot 2", z2); ); p3:=image( label("Parola 3", z3); ); \stopuseMPgraphic \starttext \dorecurse{3}{ % Frame \startMPpage[pagestate

[NTG-context] Re: Problem with \startlinenumbering left and right arguments

2023-12-09 Thread Wolfgang Schuster
Marcus Vinicius Mesquita schrieb am 07.12.2023 um 19:21: Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth

[NTG-context] Problem with \startlinenumbering left and right arguments

2023-12-07 Thread Marcus Vinicius Mesquita
Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth} \stopchapter } \stoplinenumbering \stoptext Kind regards

[NTG-context] Re: (again) wrong destination types?

2023-12-04 Thread Bruce Horrocks
t; \input knuth \par >> a\footnote{b} \par >> \dorecurse{7}{\input knuth \par} >> \stoptext > > Many thanks for your fast reply, Bruce. > > I wanted to reply much sooner, but it was really impossible for me. > >> From your explanation, the first link (body to

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
,70); > > p1:=image( > label(textext("Word 1"), z1); > ); > > p2:=image( > label(textext("Mot 2"), z2); > ); > > p3:=image( > label(textext("Parola 3"), z3); > ); > > \stopMPinclusions > > \starttext > >

[NTG-context] Re: Inline math spacing

2023-12-04 Thread Hans Hagen via ntg-context
\enablemathautospacing % more global % \enablemathautofencing % more global \enablemathautonumbers % more global % \autofences % more local \usemodule[ipsum] \starttext \ipsum \stoptext And I attach the two files to setup the font. no math ... anyway \showglyphs \dorecurse{100}{test \im{\frac

[NTG-context] Re: (again) wrong destination types?

2023-12-03 Thread Pablo Rodriguez via ntg-context
On 11/22/23 00:06, Bruce Horrocks wrote: > [...] > I changed your example to the following: > \setupinteraction[state=start, page=name, focus=standard] > \starttext > \input knuth \par > a\footnote{b} \par > \dorecurse{7}{\input knuth \par} > \stoptext Many thanks for yo

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
hic{base} > picture p[]; > path TheFrame ; > TheFrame := fullsquare scaled 5in ; > z1 = (60,40); > z2 = (40,90); > z3 = (10,70); > > p1:=image( > label("Word 1", z1); > ); > > p2:=image( > label("Mot 2", z2); > ); > > p3:=image(

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
( label("Word 1", z1); ); p2:=image( label("Mot 2", z2); ); p3:=image( label("Parola 3", z3); ); \stopuseMPgraphic \starttext \dorecurse{3}{ % Frame \startMPpage[pagestate=start] \includeMPgraphic{base} currentime := #1 ; % Just for learning : draw TheFrame

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
ns picture p[]; path TheFrame ; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image( label(textext("Word 1"), z1); ); p2:=image( label(textext("Mot 2"), z2); ); p3:=image( label(textext("Parola 3"), z3); ); \stopMPinclusi

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
artPoint = point 0 of A; >> pair AEndPoint; AEndPoint = point 4 of A; >> path B; B = z5..z6; >> pair BStartPoint; BStartPoint = point 0 of B; >> pair BEndPoint; BEndPoint = point 1 of B; >> path C; C = AStartPoint..AEndPoint; >> >> p1:=image( >> draw A w

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
=image(draw A; label(lmt_outline [ > text = "\JapaneseFont 日本語" > ], AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > BStartPoint); > ); > > p4:=image(draw A; label(lmt_outline [ > text = "\Korea

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
, AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, BStartPoint); > ); > > p4:=image(draw A; label(lmt_outline [ > text = "\KoreanFont 한국어" > ], AStartPoint);); > > p5:=image( > label(textext("bāng"), BEndPoint);

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
); p4:=image(draw A; label(lmt_outline [ text = "\KoreanFont 한국어" ], AStartPoint);); p5:=image( label(textext("bāng"), BEndPoint); draw C withcolor green; ); p6:=image( draw B withcolor blue; ); \stopMPinclusions \starttext \dorecurse{6}{ % Frame \setupMPpage[background=colo

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
e[0] := (0,0); TheBrownianMotion := Coordinate[0] ; variance := 10 ; \stopMPinclusions \dorecurse{600}{ % Frame \setupMPpage[background=color, backgroundcolor=SpringGreen] \startMPpage[pagestate=start] currentime := #1 ; % Just for learning : draw TheFrame withpen pencircle scaled .1in withco

[NTG-context] Re: unwanted blank page

2023-11-20 Thread Pablo Rodriguez via ntg-context
: \starttext \startmakeup[standard][pagestate=start] \dorecurse{25}{\input knuth} \stopmakeup \stoptext My sample explicitly displays that makeups are intended for a single page. Since actual content for that makeup would fit in six pages without the makeup, it looks weird insi

[NTG-context] Re: learning about the grid

2023-11-19 Thread Pablo Rodriguez via ntg-context
\showgrid \setupinterlinespace[line=1.3ex] \starttext \dorecurse{25}{asa aeo eau} \setuplayout[grid=yes]\page \dorecurse{25}{asa aeo eau} \stoptext According to https://wiki.contextgarden.net/Grid_typesetting (feel free to improve the article), a way of solving this would be to wrap your stu

[NTG-context] Vertically aligned alternating fillers

2023-11-16 Thread Marco Patzer
{1}{\n}} \starttext %% dots are vertically aligned \dorecurse{6}{%% Foo \PavelFiller Bar\par} \hairline %% dots are not aligned \dorecurse{6}{%% \oneword\PavelFiller\oneword\par} \stoptext Marco LMTX 2023.09.04 19:15

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

2023-11-14 Thread Pablo Rodriguez via ntg-context
ey in \setupinteraction. It works fine now, with both the options you provided (and the patch, many thanks for both). I have accidentally discovered an issue in which users may run in an uninteded ways. If many destinations have the same identifier, only the first one is generated. Using the fol

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

2023-11-13 Thread Michal Vlasák
Hello Pablo, On Mon Nov 13, 2023 at 5:25 PM CET, Pablo Rodriguez via ntg-context wrote: > Dear list, > > imagine I have a PDF document (named "whatever.pdf") such as the one > generated from this source: > > \setupinteraction[state=start, > focus=standard]

[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] Footnotes on the bottom of the column's current page, instead of the columns' end

2023-10-25 Thread Juliano David Hilario
eargument] \setupnotation[question][counter=] \startdocument \startcolumns[n=2, balanced] \dorecurse{19}{ \question{1. This is a question for discussion. I wished it was on the current page instead of the end} \input{knuth} } \stopcolumns \stopdocument mwe.pdf Description: Adobe PDF

[NTG-context] Re: numbered itemize list item label alignment

2023-10-19 Thread Csikos Bela
the below code but the 3 digit labels' left sides go into the left > > margin. How can I fix it? > > > > Code: > > > > \showframe > > \starttext > > \startitemize[n,broad][itemalign=flushright] > > \dorecurse{250}{\item } > > \stopite

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Aditya Mahajan
right and the widest > > label's left side located at the left margin. > > I tried the below code but the 3 digit labels' left sides go into the left > > margin. How can I fix it? > > > > Code: > > > > \showframe > > \starttext > > \start

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Wolfgang Schuster
but the 3 digit labels' left sides go into the left margin. How can I fix it? Code: \showframe \starttext \startitemize[n,broad][itemalign=flushright] \dorecurse{250}{\item } \stopitemize \stoptext You can use the width-key to set a value for the number, below is a example for method

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Pablo Rodriguez
tried the below code but the 3 digit labels' left sides go into the > left margin. How can I fix it? Hi Csikos, width is the key, such as in: \showframe\showgrid\showstruts \starttext \startitemize[n,broad][width=.125tw, itemalign=flushright] \dorecurse{250}{\item } \stopitemize

[NTG-context] numbered itemize list item label alignment

2023-10-15 Thread Csikos Bela
margin. How can I fix it?Code:\showframe\starttext\startitemize[n,broad][itemalign=flushright]\dorecurse{250}{\item }\stopitemize\stoptextThe resulted pdf is attached as context-itemize-label-alignment.pdf.Thank you in advance,bcsikos context-itemize-label-alignment.pdf Description: Adobe PDF

[NTG-context] Bug? Text following columns at end of page goes into footer not next page

2023-09-30 Thread Bruce Horrocks
Two column text that ends near the foot of a page can push the next line into the footer rather than starting a new page. MWE for ConTeXt ver: 2023.09.26 18:19 LMTX :- \setuppapersize [A4] \showframe \starttext Knuth in knolumns \dorecurse{30}{\crlf} \startcolumns \input knuth \stopcolumns

[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] stream sync (or \pushoutputstream)

2023-09-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \showgrid \setuplayout[grid=yes] \starttext \startoutputstream[one] \startcolor[red] \dorecurse{4}{\input knuth\par\pushoutputstream} \stopcolor \stopoutputstream \startoutputstream[two] \startcolor

[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
y 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} } \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[green] \dorecurse{5}{\chapter{Stream Two}

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
ter headings and it all looks fine to me[1] - the red text is all on the right hand side and the greeen text is all on the left. If 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

[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

  1   2   3   4   5   6   7   8   9   10   >