Re: [NTG-context] how to interrupt doublesided in particular instance
So simple, Wolfgang. Thanks. I had got close amid all the varieties I was trying out to achieve the same result. Perhaps my closest was: \setuphead[chapter][pagebreak=chapterverso], but it couldn't quite cut it! Julian On 6/5/20 1:57 pm, Wolfgang Schuster wrote: jbf schrieb am 06.05.2020 um 01:31: Hi list, I have a document set up in a standard way (\setuppagenumbering[alternative=doublesided]) to ensure that new chapters always begin on a recto page, but in one particular instance only, I want the new chapter to start on the next (verso) page instead of creating a blank then starting on the recto side. I thought I might have been able to force that with \page[no] immediately after the previous chapter concluded or before \chapter{My new chapter}, but this command is ignored (and may well be the wrong command to achieve what I want). Is there a way to interrupt the setup so the new chapter in this case can start on the verso page? Create a new heading for chapters which can start on left/right pages. \setuppagenumbering[alternative=doublesided] \definehead[mychapter][chapter] \setuphead[mychapter][page=yes] \starttext \chapter{Right page} \chapter{Right page} \mychapter{New page} \chapter{Right page} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to interrupt doublesided in particular instance
jbf schrieb am 06.05.2020 um 01:31: Hi list, I have a document set up in a standard way (\setuppagenumbering[alternative=doublesided]) to ensure that new chapters always begin on a recto page, but in one particular instance only, I want the new chapter to start on the next (verso) page instead of creating a blank then starting on the recto side. I thought I might have been able to force that with \page[no] immediately after the previous chapter concluded or before \chapter{My new chapter}, but this command is ignored (and may well be the wrong command to achieve what I want). Is there a way to interrupt the setup so the new chapter in this case can start on the verso page? Create a new heading for chapters which can start on left/right pages. \setuppagenumbering[alternative=doublesided] \definehead[mychapter][chapter] \setuphead[mychapter][page=yes] \starttext \chapter{Right page} \chapter{Right page} \mychapter{New page} \chapter{Right page} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] how to interrupt doublesided in particular instance
Hi list, I have a document set up in a standard way (\setuppagenumbering[alternative=doublesided]) to ensure that new chapters always begin on a recto page, but in one particular instance only, I want the new chapter to start on the next (verso) page instead of creating a blank then starting on the recto side. I thought I might have been able to force that with \page[no] immediately after the previous chapter concluded or before \chapter{My new chapter}, but this command is ignored (and may well be the wrong command to achieve what I want). Is there a way to interrupt the setup so the new chapter in this case can start on the verso page? Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt version stuck at 2020.01.30
On Tue, 5 May 2020 20:38:55 +0200 Wolfgang Schuster wrote: > Marco Patzer schrieb am 05.05.2020 um 20:26: > > Hi! > > > > Has something changed regarding the installation/update procedure? > > ConTeXt seems to be stuck at 2020.01.30 and downloading the newest > > version results in that very version. > > https://mailman.ntg.nl/pipermail/ntg-context/2020/097651.html I vaguely remember someone mentioning it on the list at some point, but failed to find it. Thanks for the pointer. I'm back on track now. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt version stuck at 2020.01.30
Marco Patzer schrieb am 05.05.2020 um 20:26: Hi! Has something changed regarding the installation/update procedure? ConTeXt seems to be stuck at 2020.01.30 and downloading the newest version results in that very version. https://mailman.ntg.nl/pipermail/ntg-context/2020/097651.html Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] ConTeXt version stuck at 2020.01.30
Hi! Has something changed regarding the installation/update procedure? ConTeXt seems to be stuck at 2020.01.30 and downloading the newest version results in that very version. Steps to reproduce: rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh . tex/setuptex context --version → current version: 2020.01.30 14:13 According to https://minimals.contextgarden.net/current/context/ the directory “latest” seems to contain the latest version, rather than the “beta”. first-setup.sh however uses the “beta” directory. Has something changed and first-setup.sh hasn't been updated to reflect that change? Or is something else going on? Adapting first-setup.sh to mirror from the “latest” directory seems to fetch the latest version: rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sed -s '/\/bin\/mtxrun/s/--context=beta/--context=latest/' first-setup.sh sh ./first-setup.sh . tex/setuptex context --version → current version: 2020.04.30 11:10 Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Definition of \registerpagerange
> Am 05.05.2020 um 10:35 schrieb Hynek, Stefan : > > Hello fellow ConTeXies, > > since April 2019 it is possible to use \setupregister with > compress=text which is a fine addition and has its use cases. > Unfortunately, I am confronted with the demand to style the registers > with 'f.' for a following single page and else with page ranges. Since > the Definition of \registerpagerange is not well documented I don't > know which parameter to check for the conditional statement when > rewriting it. Could you please give me a hint? This doesn’t answer your question, but I found: \setupregister[index][compress=yes] % 14, 15 becomes 14-15 \setupregister[index][compress=text] % 14, 15 becomes 14f. To change the "f."/"ff." text, you’d use: \setuplabeltext[de][following:singular=sq.,following:plural=sqq.] This is defined in tex/context/base/mkiv/lang-txt.lua and addressed in context/base/mkiv/strc-reg.mkiv in the definition of \registerpagerange: \unexpanded\def\registerpagerange#1#2#3#4#5#6#7#8% #1:class #2:processor content, content todo: -- configurable {\pushcurrentregister{#1}% \edef\p_pagenumber{\registerparameter\c!pagenumber}% \ifx\p_pagenumber\v!no\else \registerpageseparator \global\setconstant\c_strc_registers_page_state\plusone \dostarttagged\t!registerpagerange\empty \dostarttagged\t!registerfrompage\empty \withregisterpagecommand{#2}{#3}{#4}{#5}% \dostoptagged \ifconditional\c_strc_registers_following \ifnum#3=\numexpr#6-1\relax \labeltext{following:\s!singular}% \else \labeltext{following:\s!plural}% \fi \else \registeronepagerangeseparator \dostarttagged\t!registertopage\empty \withregisterpagecommand{#2}{#6}{#7}{#8}% \fi \dostoptagged \dostoptagged \fi \popcurrentregister} (see https://source.contextgarden.net/tex/context/base/mkiv/strc-reg.mkiv?search=singular) You should be able to combine the two "else" branches. HTH Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Definition of \registerpagerange
Hello fellow ConTeXies, since April 2019 it is possible to use \setupregister with compress=text which is a fine addition and has its use cases. Unfortunately, I am confronted with the demand to style the registers with 'f.' for a following single page and else with page ranges. Since the Definition of \registerpagerange is not well documented I don't know which parameter to check for the conditional statement when rewriting it. Could you please give me a hint? In ConTeXt that shipped with TeXlive 2015 it worked that way: \unexpanded\def\registerpagerange#1#2#3#4#5#6#7% {\registerpageseparator \global\setconstant\c_strc_registers_page_state\plusone \dostarttagged\t!registerpagerange\empty \dostarttagged\t!registerfrompage\empty \withregisterpagecommand{#1}{#2}{#3}{#4}% \dostoptagged \ifnum\the\numexpr#6-#3\relax=1 f.% \else \registeronepagerangeseparator \dostarttagged\t!registertopage\empty \withregisterpagecommand{#1}{#5}{#6}{#7}% \dostoptagged \fi \dostoptagged} With best regards Stefan smime.p7s Description: S/MIME cryptographic signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Shift tabulate into margin and center
Hi all, Apparently the solution does not work with multiple blocks on the same page. Table floats get ill aligned and frame rules are drawn double (see attachment). How should I fix this? Cheers, Tim On 4 May 2020, 20:42 +0200, Tim Steenvoorden , wrote: > Hi all, > > I’ve a page layout with a broad left margin. I’d like to create frames in the > text which utilize the margin and the typearea with centered contents. I > managed to do this with the following code, but I wonder if there is an > easier and more elegant way to do this in ConTeXt, especially the centering > of the tabulation. > > Cheers, > Tim > > > \startproduct test-tabulate > > \setuppapersize[B5] > \setuplayout > [backspace=13pc, > leftmargin=8pc, > leftmargindistance=1pc, > width=24.5pc, > rightmargin=0pc, > %% > topspace=4pc, > header=0pc, > height=49pc, > footer=0pc, > bottomdistance=2.5pc, > bottom=1pc, > location=middle] > > \define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)} > > \section{First} > \subsection{First first} > > \input tufte > > \setupnarrower[left=-9pc] > \startnarrower[left] > \startframedtext[frame=off,topframe=on,bottomframe=on,align=middle,width=\fullwidth] > The whole frame should be shifted to the left. > As the text, this table should centered in the box. > \placefigure[none,force]{} > \starttabulate[|l|r|] > \NC 0 \NC 1 \NR > \NC 2 \NC 3 \NR > \NC 4 \NC 5 \NR > \NC 6 \NC 7 \NR > \NC 8 \NC 9 \NR > \stoptabulate > \startformula > E=mc^2 > \stopformula > \stopframedtext > \stopnarrower > > \input tufte > > \stopproduct > test-tabulate.pdf Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___