[NTG-context] Re: Adjust pagenumbering while skipping first page
On 9/4/2023 6:09 PM, Jeroen wrote: The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages] \setcounter [userpage] [0] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument \setupfootertexts [title] [\pagenumber\space of \lastpagenumber] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Adjust pagenumbering while skipping first page
The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages] \setcounter [userpage] [0] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Par Builder Tests
On 7/21/2023 5:34 PM, Keith McKay wrote: Hi all, At the end of June, Hans uploaded a new lmtx version which included improvements to par building which he and Mikael had been working on in math mode. Hans suggested in the online chat that these improvements may be useful in typesetting novels. I was keen to try these since I have typset novels in the past. I have ran some tests on two novels which I downloaded from the Gutenberg Project site as epubs and extracted them to get the original xhtml files which I then typeset in context. I made very little in the way of changes to the files so that my setup for xml was very simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{1}{150} \setpenalties\clubpenalties {1}{150} \stopsetups \setuplayout[ width=10cm, topspace=0.5in, backspace=2.0cm, header=7.5mm, footer=0.25in, location={middle,middle}, vs=2, grid=yes, setups=mypenalties ] %\enabletrackers[makeup] %\enabletrackers[builders.hpack.quality] \enabletrackers[builders.hpack.overflow] %\enabletrackers[layout.vz] %\enabletrackers[paragraphs.passes] \enabletrackers[paragraphs.passes=summary] %\enabletrackers[paragraphs.passes=details] \setupalign[granular] %\setupalign[nothyphenated,hz,verytolerant] %\setupalign[vertical,height] %\setupalignpass[decent] %\setupalignpass[quality] %\setupalignpass[test1] \setupalignpass[test2] %\setupalignpass[test3] %\setupalignpass[test4] %\setupalignpass[test5] %\setupalignpass[optional1] %\setupalignpass[test2b] \starttext \setuppagenumbering[location={footer,middle},alternative=doublesided,state=start] \setcounter[userpage][1] %\showmakeup[vbox] %\showlayout \dostepwiserecurse{0}{30}{1}{ \xmlprocessfile{mysetups}{/path to xhtml files/4439720318703948998_84-h-\recurselevel.htm.xhtml}{} } \stoptext Below are the result showing the number of overfull boxes for these novels using the setups in the file spac-imp-tests.mkxl . See the manual Low Level - Lines Test Novel1 Novel2 Test1 70 35 Test2 30 8 Test3 62 23 Test4 89 40 Test5 28 9 Optional1 55 19 Quality 74 32 Decent 39 11 From these initial tests one can see that Test2 gave the lowest number of overfull boxes. So I edited test two, ran it, and the results are below. Test Novel1 Novel2 Test2b 11 0 My setup for test 2b is as follows: \startsetups align:pass:test2b \pretolerance 100 \tolerance 200 \parpasses 3 classes \indecentparpassclasses threshold 0.025pt tolerance 800 extrahyphenpenalty 50 next threshold 0.025pt tolerance 900 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 10 adjustspacingstretch 15 next threshold 0.025pt tolerance 1000 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 20 adjustspacingstretch 40 emergencystretch .25\bodyfontsize \relax % \linebreakpasses\plusone \stopsetups The only difference between test 2 and 2b are that I increased the tolerance in each of the three passes. In novel 2 this was successful in eliminating the overfull boxes but not in Novel 1 although I noticed that majority of overfull boxes were above 1pt with the largest about 12pt in Novel 1. I am at the stage now where I need some kind of strategy to reduce/eliminate overfull boxes, other than changing the tolerance, and I'm hoping for some advice from the community. Suggestions for further reading particularly on the commands in \setupalignpass and their usage would be appreciated and on the best way to tackle overfull boxes. you're too tolerant (stick to 200), you can even start out with pretolerance 50 and tolerance 150 and then in the passes 200 Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Par Builder Tests
Hi all, At the end of June, Hans uploaded a new lmtx version which included improvements to par building which he and Mikael had been working on in math mode. Hans suggested in the online chat that these improvements may be useful in typesetting novels. I was keen to try these since I have typset novels in the past. I have ran some tests on two novels which I downloaded from the Gutenberg Project site as epubs and extracted them to get the original xhtml files which I then typeset in context. I made very little in the way of changes to the files so that my setup for xml was very simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{1}{150} \setpenalties\clubpenalties {1}{150} \stopsetups \setuplayout[ width=10cm, topspace=0.5in, backspace=2.0cm, header=7.5mm, footer=0.25in, location={middle,middle}, vs=2, grid=yes, setups=mypenalties ] %\enabletrackers[makeup] %\enabletrackers[builders.hpack.quality] \enabletrackers[builders.hpack.overflow] %\enabletrackers[layout.vz] %\enabletrackers[paragraphs.passes] \enabletrackers[paragraphs.passes=summary] %\enabletrackers[paragraphs.passes=details] \setupalign[granular] %\setupalign[nothyphenated,hz,verytolerant] %\setupalign[vertical,height] %\setupalignpass[decent] %\setupalignpass[quality] %\setupalignpass[test1] \setupalignpass[test2] %\setupalignpass[test3] %\setupalignpass[test4] %\setupalignpass[test5] %\setupalignpass[optional1] %\setupalignpass[test2b] \starttext \setuppagenumbering[location={footer,middle},alternative=doublesided,state=start] \setcounter[userpage][1] %\showmakeup[vbox] %\showlayout \dostepwiserecurse{0}{30}{1}{ \xmlprocessfile{mysetups}{/path to xhtml files/4439720318703948998_84-h-\recurselevel.htm.xhtml}{} } \stoptext Below are the result showing the number of overfull boxes for these novels using the setups in the file spac-imp-tests.mkxl . See the manual Low Level - Lines Test Novel1 Novel2 Test1 70 35 Test2 30 8 Test3 62 23 Test4 89 40 Test5 28 9 Optional1 55 19 Quality 74 32 Decent 39 11 From these initial tests one can see that Test2 gave the lowest number of overfull boxes. So I edited test two, ran it, and the results are below. Test Novel1 Novel2 Test2b 11 0 My setup for test 2b is as follows: \startsetups align:pass:test2b \pretolerance 100 \tolerance 200 \parpasses 3 classes \indecentparpassclasses threshold 0.025pt tolerance 800 extrahyphenpenalty 50 next threshold 0.025pt tolerance 900 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 10 adjustspacingstretch 15 next threshold 0.025pt tolerance 1000 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 20 adjustspacingstretch 40 emergencystretch .25\bodyfontsize \relax % \linebreakpasses\plusone \stopsetups The only difference between test 2 and 2b are that I increased the tolerance in each of the three passes. In novel 2 this was successful in eliminating the overfull boxes but not in Novel 1 although I noticed that majority of overfull boxes were above 1pt with the largest about 12pt in Novel 1. I am at the stage now where I need some kind of strategy to reduce/eliminate overfull boxes, other than changing the tolerance, and I'm hoping for some advice from the community. Suggestions for further reading particularly on the commands in \setupalignpass and their usage would be appreciated and on the best way to tackle overfull boxes. Best Wishes Keith McKay ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Numbered Itemlist With Interruption
\startitemize[continue]% THIS SHOULD DO WHAT YOU WANT \item Picking up where we left off. \item And all is well. \stopitemize Julian On 26/4/23 13:21, Michael Urban via ntg-context wrote: I am trying to have two numbered itemizations, with a paragraph in between, such that the second list starts where the first left off, without having to manually calculate the new start point. The following does not work, and I do not understand why. Mike \starttext \definecounter[mynumber][] \startitemize[n] \item The first item. \item The second item \item Item number \currentitemnumber{}, the last one. \setcounter[mynumber][\currentitemnumber] \stopitemize The \type{\getnumber[mynumber]} value is \getnumber[mynumber]. \incrementcounter[mynumber] And now the big finish, start at \getnumber[mynumber]: \startitemize[n][start=\getnumber[mynumber]] % WHY DOES THIS FAIL? \item Picking up where we left off. \item And all is well. \stopitemize Done! \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :ntg-context@ntg.nl /https://www.ntg.nl/mailman/listinfo/ntg-context webpage :https://www.pragma-ade.nl /http://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ wiki :https://contextgarden.net __ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Numbered Itemlist With Interruption
I am trying to have two numbered itemizations, with a paragraph in between, such that the second list starts where the first left off, without having to manually calculate the new start point. The following does not work, and I do not understand why. Mike \starttext \definecounter[mynumber][] \startitemize[n] \item The first item. \item The second item \item Item number \currentitemnumber{}, the last one. \setcounter[mynumber][\currentitemnumber] \stopitemize The \type{\getnumber[mynumber]} value is \getnumber[mynumber]. \incrementcounter[mynumber] And now the big finish, start at \getnumber[mynumber]: \startitemize[n][start=\getnumber[mynumber]] % WHY DOES THIS FAIL? \item Picking up where we left off. \item And all is well. \stopitemize Done! \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Structure: multi-volume products
Alan, I'm attaching the two master files used for the following (also ran cross refs between each vol.): Murugaiyan, Appasamy & Parlier-Renault, Édith (2021) (Eds) Whispering of Inscriptions: South Indian Epigraphy and Art History: Papers from an International Symposium in memory of Professor Noboru Karashima (Paris, 12–13 October 2017). Oxford: Indica et Buddhica. (2 vols) https://indica-et-buddhica.com/publications/murugaiyan-appasamy-parlier-renault-edith/whispering-of-inscriptions-south-indian-epigraphy-and-art-history Best, Richard -- T +6433121699 M +64210640216 rmaho...@indica-et-buddhica.org https://indica-et-buddhica.com/ Indica et Buddhica Littledene Bay Road Oxford NZ NZBN: 9429041761809 -Original Message- From: Alan Braslau via ntg-context Reply-To: mailing list for ConTeXt users To: mailing list for ConTeXt users Cc: Alan Braslau Subject: [NTG-context] Structure: multi-volume products Date: Thu, 15 Dec 2022 20:23:36 -0700 Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) X-Spam-Score: 0.0 Hello, I have a book project that is being cut into two volumes (because it is too long and will be sold as a boxed set). Each volume is presently a separate *product* in the project structure. I presently set the counters in the second volume using: \setupheadnumber [part] [2] \setupheadnumber [chapter] [5] (I have multiple [5] parts in the project, and the first volume ends with part 2 and chapter 5.) 1) Is this the right way to be handling this? 2) Any suggestions on how I can put a Table of Contents for the first volume in the second volume? Thanks! Alan __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net __ _ % master000.tex – ConTeXt MkIV Module \startproduct master000 \project iebpmonographs \environment ieb-c-layout-000 \environment monograph-local-layout \usemodule[statistical-charts] % \enabletrackers[typesetters.suspects] % \showbodyfont % \showbodyfontenvironment \useexternaldocument[m001][master001][Whispering of Inscriptions, Vol.~{\sc ii}] \startfrontmatter \component tlpg000 { \setupheadtext[content=Contents of Vol.~i.] \setupheadertexts[Contents of Vol.~i.][pagenumber][pagenumber][Contents of Vol.~i.] \noheaderandfooterlines \completecontent \PY \PB } { \setupheadtext[tables=Tables of Vol.~i.] \setupheadertexts[Tables of Vol.~i.][pagenumber][pagenumber][Tables of Vol.~i.] \noheaderandfooterlines \completelistoftables \PY \PB } { \setupheadtext[figures=Figures of Vol.~i.] \setupheadertexts[Figures of Vol.~i.][pagenumber][pagenumber][Figures of Vol.~i.] \noheaderandfooterlines \completelistoffigures \PY } \component ackn % A. Murugaiyan & E. Parlier-Renault \component pref % A. Murugaiyan & E. Parlier-Renault \component intr % Y. Subbarayalu \stopfrontmatter \startbodymatter \setcounter[userpage][1] \component chp02 % Y. Subbarayalu \component chp01 % V. Gillet \component chp03 % G. Vijayavenugopal \component chp04 % E. Francis \component chp05 % N. Athiyaman \component chp06 % V. Selvakumar \component chp07 % S. Rajavelu \component chp08 % A. Murugaiyan \component chp09 % S. Brocquet \stopbodymatter % \startbackmatter % \component indx % \stopbackmatter \stopproduct % master001.tex – ConTeXt MkIV Module \startproduct master001 \project iebpmonographs \environment ieb-c-layout-001 \environment monograph-local-layout % \enabletrackers[typesetters.suspects] % \showbodyfont % \showbodyfontenvironment \useexternaldocument[m000][master000][Whispering of Inscriptions, Vol.~{\sc i}] \startfrontmatter \component tlpg001 { \setupheadtext[content=Contents of Vol.~ii.] \setupheadertexts[Contents of Vol.~ii.][pagenumber][pagenumber][Contents of Vol.~ii.] \noheaderandfooterlines \completecontent \PY \PB } { \setupheadtext[tables=Tables of Vol.~ii.] \setupheadertexts[Tables of Vol.~ii.][pagenumber][pagenumber][Tables of Vol.~ii.] \noheaderandfooterlines \completelistoftables \PY \PB } { \setupheadtext[figures=Figures of Vol.~ii.] \setupheadertexts[Figures of Vol.~ii.][pagenumber][pagenumber][Figures of Vol.~ii.] \noheaderandfooterlines \completelistoffigures \PY } \stopfrontmatter \startbodymatter \setcounter[userpage][1] \component chp10 % P. Estienne \component chp11 % V. Renganathan \component chp12 % C. Schmid \component chp13 % K. Rajan \component chp14 % A. Davrinche \component chp15 % M. Le Sauce-Carnis \component chp16 % V. Olivier \component chp17 % K. Ladrech \component chp18 % E. Par
Re: [NTG-context] Can I just put a footnote without marking in the main text?
I found a way to wrap everything before \startdocument, so I think this looks like a template more or less: In case anyone is interested, here's the MWE: \definenote[address] \setupnote[address][rule=off,location=text] \setupnotation[footnote][numberconversion=numerals] \definenote[putjustmark] \setupnote[putjustmark][location=none] \setupnotation[putjustmark][numberconversion=set 2] \definenote[putjustnote][footnote] \setupnote[putjustnote][textcommand=\gobbleoneargument] \setupnotation[putjustnote][numberconversion=set 2] \newif\ifnoteintitle \newtoks\titlefootnotes \titlefootnotes\emptytoks \def\thanks#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\email#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\unskipfunnylines{\ifnoteintitle\endgraf\kern-2\lineheight\fi} \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \setupaddress[style=italic] \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \defineaddress[thd][name={Name of Third Institute or Affiliation, City, Country}] \processcommacommand[fst,snd,thd]\useaddress \startsetups [document:start] The Title\dorecurse{10}{\expanded{\thanks{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 \the\titlefootnotes\relax \setcounter[footnote][0] \unskipfunnylines \stopsetups \startsetups [document:stop] \stopcolumns \stopsetups \startdocument test\footnote{test} \input knuth \input knuth \input knuth \input knuth \stopdocument On Wed, May 18, 2022 at 10:02 PM Ross wrote: > After some visualisations, I found that my token \titlefootnotes will > ALWAYS generate two lines if there is/are any non-zero number of footnotes > there. Interesting. So I need a \newif that each time a \thanks or \email > is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards. > > I still don't know why this \kern macro won't have any effect if it's > inside a token or a \startsetup. > > On Wed, May 18, 2022 at 4:56 PM Ross wrote: > >> Hi Massi, >> >> You are a champion! >> >> On Wed, May 18, 2022 at 4:41 PM mf wrote: >> >>> I hope I got the point now: >>> >>> ... >>> \startcolumns >>> >>> \the\titlefootnotes >>> >>> \kern-\rawcountervalue[address]\lineheight % dirty trick >>> >>> test\footnote{test} >>> >>> \input knuth >>> >>> \stopcolumns >>> ... >>> >>> Massi >>> >>> Il 18/05/22 10:07, Ross ha scritto: >>> > Dear Massi, >>> > >>> > Thanks for your solution. But the thing may be related to the >>> > \appendtoks macro. It doesn't work to put just \setnotetext there. >>> > \note works fine, so that's the reason I need the "full functional >>> macro". >>> > >>> > Maybe I didn't get the point, so if it's not too much to ask, could >>> you >>> > do it on my MWE? >>> > >>> > PS: sorry I have to use another email account because my institute >>> > mailbox took forever to get the message before my government (China) >>> > finishes auditing it. >>> > >>> > Best wishes, >>> > Zhichu >>> > >>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context >> > <mailto:ntg-context@ntg.nl>> wrote: >>> > >>> > Is this what you mean? >>> > >>> > \starttext >>> > Hello\footnotetext{Footnote without mark}. >>> > \stoptext >>> > >>> > Kind regards, >>> > Massi >>> > >>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: >>> > > Hi everybody, >>> > > >>> > > >>> > > After some attempts to put footnotes in a mixed 1&2 columns >>> > layout, I >>> > > decide to put marks in the one-column environment and flush them >>> > when >>> > > entering the two-column environment. >>> > > >>> > > >>> > > The code
Re: [NTG-context] Can I just put a footnote without marking in the main text?
After some visualisations, I found that my token \titlefootnotes will ALWAYS generate two lines if there is/are any non-zero number of footnotes there. Interesting. So I need a \newif that each time a \thanks or \email is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards. I still don't know why this \kern macro won't have any effect if it's inside a token or a \startsetup. On Wed, May 18, 2022 at 4:56 PM Ross wrote: > Hi Massi, > > You are a champion! > > On Wed, May 18, 2022 at 4:41 PM mf wrote: > >> I hope I got the point now: >> >> ... >> \startcolumns >> >> \the\titlefootnotes >> >> \kern-\rawcountervalue[address]\lineheight % dirty trick >> >> test\footnote{test} >> >> \input knuth >> >> \stopcolumns >> ... >> >> Massi >> >> Il 18/05/22 10:07, Ross ha scritto: >> > Dear Massi, >> > >> > Thanks for your solution. But the thing may be related to the >> > \appendtoks macro. It doesn't work to put just \setnotetext there. >> > \note works fine, so that's the reason I need the "full functional >> macro". >> > >> > Maybe I didn't get the point, so if it's not too much to ask, could you >> > do it on my MWE? >> > >> > PS: sorry I have to use another email account because my institute >> > mailbox took forever to get the message before my government (China) >> > finishes auditing it. >> > >> > Best wishes, >> > Zhichu >> > >> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context > > <mailto:ntg-context@ntg.nl>> wrote: >> > >> > Is this what you mean? >> > >> > \starttext >> > Hello\footnotetext{Footnote without mark}. >> > \stoptext >> > >> > Kind regards, >> > Massi >> > >> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: >> > > Hi everybody, >> > > >> > > >> > > After some attempts to put footnotes in a mixed 1&2 columns >> > layout, I >> > > decide to put marks in the one-column environment and flush them >> > when >> > > entering the two-column environment. >> > > >> > > >> > > The code is ugly but the result is acceptable. Except that the >> > invisible >> > > footnote marks do generate something in the main text, so >> there's a >> > > blank line for each footnote. >> > > >> > > >> > > Here's an MWE: >> > > >> > > >> > > = >> > > >> > > \definenote[address] >> > > \setupnote[address][rule=off,location=text] >> > > >> > > >> > > >> > > \definenote[putjustmark] >> > > \setupnote[putjustmark][location=none] >> > > \setupnotation[putjustmark][numberconversion=set 2] >> > > >> > > >> > > \definenote[putjustnote]%[footnote] % if footnotes need to be >> > grouped, >> > > uncomment the second argument and the line after >> \the\titlefootnotes >> > > \setupnote[putjustnote][textcommand=\gobbleoneargument] >> > > \setupnotation[putjustnote][numberconversion=set 2] >> > > >> > > >> > > \newtoks\titlefootnotes >> > > >> > > >> > > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to >> > > \titlefootnotes} >> > > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to >> > > \titlefootnotes} >> > > >> > > >> > > \appendtoks >> > >\setcounter[footnote][0] % this looks stupid because it has no >> > effect >> > >%\setupnotation[footnote][numberconversion=numerals] >> > > \to \titlefootnotes >> > > >> > > \definenamespace >> > > [addr] >> > > [type=module, >> > > name=address, >> > > command=yes, >> > > setup=list, >> > > parent=addr, >> > >] >> > > >> > > \define[1]\use
Re: [NTG-context] Can I just put a footnote without marking in the main text?
Hi Massi, You are a champion! On Wed, May 18, 2022 at 4:41 PM mf wrote: > I hope I got the point now: > > ... > \startcolumns > > \the\titlefootnotes > > \kern-\rawcountervalue[address]\lineheight % dirty trick > > test\footnote{test} > > \input knuth > > \stopcolumns > ... > > Massi > > Il 18/05/22 10:07, Ross ha scritto: > > Dear Massi, > > > > Thanks for your solution. But the thing may be related to the > > \appendtoks macro. It doesn't work to put just \setnotetext there. > > \note works fine, so that's the reason I need the "full functional > macro". > > > > Maybe I didn't get the point, so if it's not too much to ask, could you > > do it on my MWE? > > > > PS: sorry I have to use another email account because my institute > > mailbox took forever to get the message before my government (China) > > finishes auditing it. > > > > Best wishes, > > Zhichu > > > > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context > <mailto:ntg-context@ntg.nl>> wrote: > > > > Is this what you mean? > > > > \starttext > > Hello\footnotetext{Footnote without mark}. > > \stoptext > > > > Kind regards, > > Massi > > > > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: > > > Hi everybody, > > > > > > > > > After some attempts to put footnotes in a mixed 1&2 columns > > layout, I > > > decide to put marks in the one-column environment and flush them > > when > > > entering the two-column environment. > > > > > > > > > The code is ugly but the result is acceptable. Except that the > > invisible > > > footnote marks do generate something in the main text, so there's > a > > > blank line for each footnote. > > > > > > > > > Here's an MWE: > > > > > > > > > = > > > > > > \definenote[address] > > > \setupnote[address][rule=off,location=text] > > > > > > > > > > > > \definenote[putjustmark] > > > \setupnote[putjustmark][location=none] > > > \setupnotation[putjustmark][numberconversion=set 2] > > > > > > > > > \definenote[putjustnote]%[footnote] % if footnotes need to be > > grouped, > > > uncomment the second argument and the line after > \the\titlefootnotes > > > \setupnote[putjustnote][textcommand=\gobbleoneargument] > > > \setupnotation[putjustnote][numberconversion=set 2] > > > > > > > > > \newtoks\titlefootnotes > > > > > > > > > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > > \titlefootnotes} > > > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > > \titlefootnotes} > > > > > > > > > \appendtoks > > >\setcounter[footnote][0] % this looks stupid because it has no > > effect > > >%\setupnotation[footnote][numberconversion=numerals] > > > \to \titlefootnotes > > > > > > \definenamespace > > > [addr] > > > [type=module, > > > name=address, > > > command=yes, > > > setup=list, > > > parent=addr, > > >] > > > > > > \define[1]\useaddress > > > {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} > > > > > > > > > \starttext > > > > > > > > > > > > \defineaddress[fst][name={Name of Institute or Affiliation, City, > > Country}] > > > \defineaddress[snd][name={Name of Secondary Institute or > > Affiliation, > > > City, Country}] > > > > > > \processcommacommand[fst,snd]\useaddress > > > > > > > > > The Title\thanks{Work supported by somebody.} > > > > > > > > Me\email{myemail@some.where > }\high{,}\note[address][fst]\high{,}\note[address][snd] > > > > > > > > > > > > > > \placenotes[address] > > > > >
Re: [NTG-context] Can I just put a footnote without marking in the main text?
Dear Massi, Thanks for your solution. But the thing may be related to the \appendtoks macro. It doesn't work to put just \setnotetext there. \note works fine, so that's the reason I need the "full functional macro". Maybe I didn't get the point, so if it's not too much to ask, could you do it on my MWE? PS: sorry I have to use another email account because my institute mailbox took forever to get the message before my government (China) finishes auditing it. Best wishes, Zhichu On Wed, May 18, 2022 at 3:36 PM mf via ntg-context wrote: > Is this what you mean? > > \starttext > Hello\footnotetext{Footnote without mark}. > \stoptext > > Kind regards, > Massi > > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: > > Hi everybody, > > > > > > After some attempts to put footnotes in a mixed 1&2 columns layout, I > > decide to put marks in the one-column environment and flush them when > > entering the two-column environment. > > > > > > The code is ugly but the result is acceptable. Except that the invisible > > footnote marks do generate something in the main text, so there's a > > blank line for each footnote. > > > > > > Here's an MWE: > > > > > > = > > > > \definenote[address] > > \setupnote[address][rule=off,location=text] > > > > > > > > \definenote[putjustmark] > > \setupnote[putjustmark][location=none] > > \setupnotation[putjustmark][numberconversion=set 2] > > > > > > \definenote[putjustnote]%[footnote] % if footnotes need to be grouped, > > uncomment the second argument and the line after \the\titlefootnotes > > \setupnote[putjustnote][textcommand=\gobbleoneargument] > > \setupnotation[putjustnote][numberconversion=set 2] > > > > > > \newtoks\titlefootnotes > > > > > > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > \titlefootnotes} > > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > \titlefootnotes} > > > > > > \appendtoks > >\setcounter[footnote][0] % this looks stupid because it has no effect > >%\setupnotation[footnote][numberconversion=numerals] > > \to \titlefootnotes > > > > \definenamespace > > [addr] > > [type=module, > > name=address, > > command=yes, > > setup=list, > > parent=addr, > >] > > > > \define[1]\useaddress > > {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} > > > > > > \starttext > > > > > > > > \defineaddress[fst][name={Name of Institute or Affiliation, City, > Country}] > > \defineaddress[snd][name={Name of Secondary Institute or Affiliation, > > City, Country}] > > > > \processcommacommand[fst,snd]\useaddress > > > > > > The Title\thanks{Work supported by somebody.} > > > > Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] > > > > > > > > > \placenotes[address] > > > > \blank[medium] > > > > \startcolumns > > > > > > \the\titlefootnotes > > > > %\setcounter[footnote][0] % why it's necessary to set the counter > > outside the token if I define [putjustnote] as [footnote]? > > > > > > test\footnote{test} > > > > \input knuth > > > > > > > > \stopcolumns > > > > \stoptext > > > > = > > > > > ___ > > > > > 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 > > > ___ > > > > > ___ > 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 > > ___ > -- Best Regards Chen ___ 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] Can I just put a footnote without marking in the main text?
Is this what you mean? \starttext Hello\footnotetext{Footnote without mark}. \stoptext Kind regards, Massi Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: Hi everybody, After some attempts to put footnotes in a mixed 1&2 columns layout, I decide to put marks in the one-column environment and flush them when entering the two-column environment. The code is ugly but the result is acceptable. Except that the invisible footnote marks do generate something in the main text, so there's a blank line for each footnote. Here's an MWE: = \definenote[address] \setupnote[address][rule=off,location=text] \definenote[putjustmark] \setupnote[putjustmark][location=none] \setupnotation[putjustmark][numberconversion=set 2] \definenote[putjustnote]%[footnote] % if footnotes need to be grouped, uncomment the second argument and the line after \the\titlefootnotes \setupnote[putjustnote][textcommand=\gobbleoneargument] \setupnotation[putjustnote][numberconversion=set 2] \newtoks\titlefootnotes \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \appendtoks \setcounter[footnote][0] % this looks stupid because it has no effect %\setupnotation[footnote][numberconversion=numerals] \to \titlefootnotes \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \starttext \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \processcommacommand[fst,snd]\useaddress The Title\thanks{Work supported by somebody.} Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] \placenotes[address] \blank[medium] \startcolumns \the\titlefootnotes %\setcounter[footnote][0] % why it's necessary to set the counter outside the token if I define [putjustnote] as [footnote]? test\footnote{test} \input knuth \stopcolumns \stoptext = ___ 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 ___ ___ 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] Can I just put a footnote without marking in the main text?
Hi everybody, After some attempts to put footnotes in a mixed 1&2 columns layout, I decide to put marks in the one-column environment and flush them when entering the two-column environment. The code is ugly but the result is acceptable. Except that the invisible footnote marks do generate something in the main text, so there's a blank line for each footnote. Here's an MWE: = \definenote[address] \setupnote[address][rule=off,location=text] \definenote[putjustmark] \setupnote[putjustmark][location=none] \setupnotation[putjustmark][numberconversion=set 2] \definenote[putjustnote]%[footnote] % if footnotes need to be grouped, uncomment the second argument and the line after \the\titlefootnotes \setupnote[putjustnote][textcommand=\gobbleoneargument] \setupnotation[putjustnote][numberconversion=set 2] \newtoks\titlefootnotes \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \appendtoks \setcounter[footnote][0] % this looks stupid because it has no effect %\setupnotation[footnote][numberconversion=numerals] \to \titlefootnotes \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \starttext \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \processcommacommand[fst,snd]\useaddress The Title\thanks{Work supported by somebody.} Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] \placenotes[address] \blank[medium] \startcolumns \the\titlefootnotes %\setcounter[footnote][0] % why it's necessary to set the counter outside the token if I define [putjustnote] as [footnote]? test\footnote{test} \input knuth \stopcolumns \stoptext = ___ 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] Counter names
On 1/20/2022 2:24 PM, Joaquín Ataz López via ntg-context wrote: Good morning to all. I would like to ask where I can find information about the name of the different counters that are handled in ConTeXt, in order to manipulate them manually. I guess the number of internal ConTeXt counters will be tremendous. But I would like to know what the "most common" counters are called, for example the ones that control the different structural units (chapter, section...) or the elements of a structured list, etc. I have tried to apply \incrementcounter or \decrementcounter to some counters that also exist in TeX as, for example, chapter, section... but I don't get any result. most counters are 'protected' from messing them up and section related counters are kind of grouped anyway and have their own system other counters, like those for floats are more directly accessible \starttext \chapter{test} \setupheadnumber[chapter][+5] \placefigure{}{} \chapter{test} \placefigure{}{} \setcounter[figure][4] \placefigure{}{} \stoptext chemical combination endnote figure footnote formula graphic intermezzo itemgroup:itemize itemgroup:itemize:note linenote paragraph realpage subpage table textnote:note userpage otherw will be defined when you create instances Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Table of Content
Dear List! I did this example, which works perfect. If i would like to take a new page after the Table of Content, is \page the right way? % mode=mkiv \setuppapersize[A7][A7] \language[de] %list the "subject" sections in the ToC but don't modify the "section" counter: \setuphead[subject] [incrementnumber=list] %"width": distance between number and text in the ToC entry, "margin" : indent of ToC entry relative to left page margin \setuplist[section][width=1.5em] \setuplist[subsection][width=2.5em, margin=1.5em] \setuplist[subject] \setuplist[subject, section, subsection] \setupcombinedlist[content][list={subject,section,subsection}, alternative=c] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][5] \page \subject{Vorwort} \page \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][12] \section{One} \subsection{Sec A} \section{Two} \subject{Bibliography} \stoptext Uschi ___ 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] Display reference number as Roman number
On 11/24/2020 22:09, Rik Kabel wrote: Hello all, What I thought should be a simple conversion escapes me. I have a reference (created originally via a label defined by \definelabel) that, when referenced as \in[label] or \ref[number][label] displays a number, and that is how I normally use it. However, I want to display it in one instance as a Roman numeral. \Romannumerals{\in[label]} complains that it is not being fed a number. How can I display the label number in Roman number format in this one instance? -- Rik Okay, I have something that works. Perhaps not optimally, but it is functional. \definelabel[Qa] \definecounter[SAVE][numberconversion=R] \starttext This is labeled.\Qa\par This is labeled.\Qa[REF]\par \setcounter[SAVE][{\rawcountervalue[Qa]}] See \in[REF].\par See \ref[number][REF].\par See \in[REF].\par This is labeled.\Qa\par See \convertedcounter[SAVE].\par \stoptext If you can improve it, please do. A solution that lets me use the label name (Qa here) and convert the associated number would be nice. -- Rik ___ 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] xtable row number trouble
Oleg schrieb am 26.10.2020 um 21:03: On Sun, Oct 25, 2020 at 09:26:06PM +0100, Wolfgang Schuster wrote: Oleg schrieb am 25.10.2020 um 14:51: Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \stopxtable And got: 7 8 9 If i place \setcounter[rownum][0] right after \startxtable, then i got: 1 2 3 Is this normal? Yes, to fix it use \startxcell \doifelsemode{*trialtypesetting} {0} {\incrementcounter[rownum]% \convertedcounter[rownum]} \stopxcell It seems that reseting once at table start is simpler, isn't it :-)? Try your method with natural table or tabulate and it won't work anymore. What is the difference between \rawcounter and \convertedcounter? \rawcounter give me the plain number as i want. In this case there is no difference but I suggest to use \rawcounter only when you need the value of the counter, e.g. counter>... or counter=... With \convertedcounter you have always the option to change the style of the value, e.g. number conversion, prefixes etc. What's about \newcount&\advance variant? Why it not work? Short answer: expansion You're using advance in a place where it is just ignored, there are ways to get rid of these limitations with Luametatex but it's better to use \incrementcounter. 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] xtable row number trouble
On Sun, Oct 25, 2020 at 09:26:06PM +0100, Wolfgang Schuster wrote: > Oleg schrieb am 25.10.2020 um 14:51: > > Hi, all. > > > > I try to place a row number into the first column of my table. > > I tried: > > > > \definecounter[rownum][way=bytext,prefix=no] > > \setcounter[rownum][0] > > > > \starttext > > \startxtable > > \startxrow > > \startxcell > > \incrementcounter[rownum] > > \rawcounter[rownum] > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell > > \incrementcounter[rownum] > > \rawcounter[rownum] > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell > > \incrementcounter[rownum] > > \rawcounter[rownum] > > \stopxcell > > \stopxrow > > \stopxtable > > > > And got: > > > > 7 > > 8 > > 9 > > > > If i place \setcounter[rownum][0] right after \startxtable, then i got: > > > > 1 > > 2 > > 3 > > > > Is this normal? > > Yes, to fix it use > > \startxcell >\doifelsemode{*trialtypesetting} > {0} > {\incrementcounter[rownum]% > \convertedcounter[rownum]} > \stopxcell It seems that reseting once at table start is simpler, isn't it :-)? What is the difference between \rawcounter and \convertedcounter? \rawcounter give me the plain number as i want. What's about \newcount&\advance variant? Why it not work? -- Олег Неманов (Oleg Nemanov) ___ 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] xtable row number trouble
Oleg schrieb am 25.10.2020 um 14:51: Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \stopxtable And got: 7 8 9 If i place \setcounter[rownum][0] right after \startxtable, then i got: 1 2 3 Is this normal? Yes, to fix it use \startxcell \doifelsemode{*trialtypesetting} {0} {\incrementcounter[rownum]% \convertedcounter[rownum]} \stopxcell 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] xtable row number trouble
Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \stopxtable And got: 7 8 9 If i place \setcounter[rownum][0] right after \startxtable, then i got: 1 2 3 Is this normal? I tried: \newcount\rownumd \rownumd = 0 \starttext \startxtable \startxrow \startxcell \advance\rownumd by 1 \the\rownumd \stopxcell \stopxrow \startxrow \startxcell \advance\rownumd by 1 \the\rownumd \stopxcell \stopxrow \startxrow \startxcell \advance\rownumd by 1 \the\rownumd \stopxcell \stopxrow \stopxtable And got: 1 1 1 Can anybody help? -- Олег Неманов (Oleg Nemanov) ___ 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] page counter problem
he page counter does not increase in the first iteration an PDf inclusion but seems to work properly after that. Have attached a sample file (69K) that will serve to show the problem—at least, on my machine. \starttext \setupexternalfigures[location=default] \setuplayer[preset=middlebottom, method=overlay]{} \setcounter[userpage][101] \noheaderandfooterlines \getfiguredimensions[HannahBW.pdf] \dorecurse{\noffigurepages} {\vbox to \paperheight {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax \hbox to \hsize {\hskip-\backspace \layeredtext[] [boffset=3pc] {\red\userpagenumber} {\externalfigure[HannahBW.pdf][page=#1]}% \hss}% \vss} } \dorecurse{\noffigurepages} {\vbox to \paperheight {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax \hbox to \hsize {\hskip-\backspace \layeredtext[] [boffset=3pc] {\red\userpagenumber} {\externalfigure[HannahBW.pdf][page=#1]}% \hss}% \vss} } \stoptext HannahBW.pdf Description: Adobe PDF document ___ 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] \setupuserpagenumber not working as expected
ersion=romannumerals]\setuplist[chapter][pageconversionset=pagenumber]\setuppagenumber[number=1]\stopsectionblockenvironment\startsectionblockenvironment[bodypart]\setuppagenumber[number=1]\stopsectionblockenvironmentThe frontmatter is some 16 pages worth (ends on a verso page but that verso carries the arabic number 1 instead of page xvi which it should be, since the final paragraph on that page ends with \stopfrontmatter. That means Chapter 1 (immediately after \startbodymatter) is now page 2 instead of page 1!I tried a slightly simpler version of the above which I found on Stackexchange: \definestructureconversionset [frontpart:pagenumber] [] [romannumerals]\startsectionblockenvironment [bodypart] \setcounter [userpage] [1]\stopsectionblockenvironmentbut it gave me the same result. Any idea how I can get the correct result?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-contextwebpage : http://www.pragma-ade.nl / http://context.aanhet.netarchive : https://bitbucket.org/phg/context-mirror/commits/wiki : http://contextgarden.net___ ___ 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] \setupuserpagenumber not working as expected
tter is some 16 pages worth (ends on a verso page but that verso carries the arabic number 1 instead of page xvi which it should be, since the final paragraph on that page ends with \stopfrontmatter. That means Chapter 1 (immediately after \startbodymatter) is now page 2 instead of page 1! I tried a slightly simpler version of the above which I found on Stackexchange: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \startsectionblockenvironment[bodypart] \setcounter[userpage][1] \stopsectionblockenvironment but it gave me the same result. Any idea how I can get the correct result? 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 ___ ___ 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] \setupuserpagenumber not working as expected
with \stopfrontmatter. That means Chapter 1 (immediately after \startbodymatter) is now page 2 instead of page 1!I tried a slightly simpler version of the above which I found on Stackexchange: \definestructureconversionset [frontpart:pagenumber] [] [romannumerals]\startsectionblockenvironment [bodypart] \setcounter [userpage] [1]\stopsectionblockenvironmentbut it gave me the same result. Any idea how I can get the correct result?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] \setupuserpagenumber not working as expected
jbf schrieb am 03.09.2020 um 06:04: Am seeking to have frontmatter pages in roman numerals and from Chapter 1 onwards in arabic numerals. I have achieved something of the kind, but page 1 (arabic) is appearing on the last page of the frontmatter and not the first page of Chapter 1. I do not know why this is happening. My setup for page numbering is as follows (something I found somewhere - wiki? elsewhere? Not sure. I didn't make it up!): \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuplist[chapter][pageconversionset=pagenumber] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \stopsectionblockenvironment The frontmatter is some 16 pages worth (ends on a verso page but that verso carries the arabic number 1 instead of page xvi which it should be, since the final paragraph on that page ends with \stopfrontmatter. That means Chapter 1 (immediately after \startbodymatter) is now page 2 instead of page 1! I tried a slightly simpler version of the above which I found on Stackexchange: |\definestructureconversionset[frontpart:pagenumber][][romannumerals]|| | |\startsectionblockenvironment[bodypart]| |\setcounter[userpage][1]\stopsectionblockenvironment| but it gave me the same result. Any idea how I can get the correct result? Do you have these settings in your document? \setupsectionblock [frontpart] [page=] \setupsectionblock [bodypart] [page=] When this is the case change them to \setupsectionblock [frontpart] [page=yes] \setupsectionblock [bodypart] [page=yes] or add \page before \stopfrontmatter. 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] \setupuserpagenumber not working as expected
Am seeking to have frontmatter pages in roman numerals and from Chapter 1 onwards in arabic numerals. I have achieved something of the kind, but page 1 (arabic) is appearing on the last page of the frontmatter and not the first page of Chapter 1. I do not know why this is happening. My setup for page numbering is as follows (something I found somewhere - wiki? elsewhere? Not sure. I didn't make it up!): \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuplist[chapter][pageconversionset=pagenumber] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \stopsectionblockenvironment The frontmatter is some 16 pages worth (ends on a verso page but that verso carries the arabic number 1 instead of page xvi which it should be, since the final paragraph on that page ends with \stopfrontmatter. That means Chapter 1 (immediately after \startbodymatter) is now page 2 instead of page 1! I tried a slightly simpler version of the above which I found on Stackexchange: |\definestructureconversionset[frontpart:pagenumber][][romannumerals]|| | |\startsectionblockenvironment[bodypart]| |\setcounter[userpage][1]\stopsectionblockenvironment| but it gave me the same result. Any idea how I can get the correct result? 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] Overriding the number on a float
On Mon, 24 Aug 2020, Taco Hoekwater wrote: > > > > On 24 Aug 2020, at 19:59, Wolfgang Schuster > > wrote: > >> \setcounter[figure][5] % next figure is no.6 > > For this subfigure stuff, perhaps this is useful? > > [...] > > I could not find a safe way to increment the subfigure number automatically, > unfortunately. Another option is to define: \startplacesubfigure ... \stopplacesubfigure which could use the current value of figure counter as prefix and increment the subfigure counter. Something similar is there for subformulas in the math mode, but I'll have to go back and check the implementation details. Aditya ___ 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] Overriding the number on a float
Thanks all for useful tips. I ended up doing something similar as a short term fix for my float number override issue, basically setting up a new float type to use for the deviant ones and then resetting the numbering of the existing ones. It would be great if there was a facility to just drop in an override on an individual float using the equivalent of ownnumber={27.1b}, but I appreciate this may be much more complex under the hood than it seems to a mere mortal. Certainly my brief perusal of the sources left me baffled, as usual! Thanks again. Duncan On Mon, 24 Aug 2020 at 22:51, Taco Hoekwater wrote: > > > > On 24 Aug 2020, at 19:59, Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> wrote: > > > >> > >> > >> \setcounter[figure][5] % next figure is no.6 > > For this subfigure stuff, perhaps this is useful? > > % setup definitions > \definecounter[subfigure][way=bytext,prefix=no] > \setupcounter[subfigure][state=start,numberconversion=a] > \setcounter[subfigure][1] > > \def\setsubfigures > {\setcounter[subfigure][1] >\incrementcounter[figure] > > > \setupcaption[figure][state=stop,numberstopper={\convertedcounter[subfigure]}]} > > \def\unsetsubfigures > {\setupcaption[figure][state=start,numberstopper=]} > > %usage > \setsubfigures > > \startplacefigure[title=Test figure] > \externalfigure[dummy] > \stopplacefigure > > \incrementnumber[subfigure] > > \startplacefigure[title=Test another figure] > \externalfigure[dummy] > \stopplacefigure > > \unsetsubfigures > > > I could not find a safe way to increment the subfigure number > automatically, unfortunately. > > Best wishes, > Taco > > ___ > 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 > > ___ > -- Duncan Hothersall, Operations Director CAPDM Limited - Online Program Enablers 0131 677 2400 www.capdm.com Registered in Scotland: SC168970 VAT: 682 846 983 Registered address: 20 Forth Street Edinburgh EH1 3LH UK <https://maps.google.com/?q=22+Forth+Street,+Edinburgh,+EH1+3LH,+UK=gmail=g> Capture, author, publish, deliver and manage your learning materials. *Sign up to the CAPDM newsletter here <http://eepurl.com/bqzBQn>* ___ 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] Overriding the number on a float
> On 24 Aug 2020, at 19:59, Wolfgang Schuster > wrote: > >> >> >> \setcounter[figure][5] % next figure is no.6 For this subfigure stuff, perhaps this is useful? % setup definitions \definecounter[subfigure][way=bytext,prefix=no] \setupcounter[subfigure][state=start,numberconversion=a] \setcounter[subfigure][1] \def\setsubfigures {\setcounter[subfigure][1] \incrementcounter[figure] \setupcaption[figure][state=stop,numberstopper={\convertedcounter[subfigure]}]} \def\unsetsubfigures {\setupcaption[figure][state=start,numberstopper=]} %usage \setsubfigures \startplacefigure[title=Test figure] \externalfigure[dummy] \stopplacefigure \incrementnumber[subfigure] \startplacefigure[title=Test another figure] \externalfigure[dummy] \stopplacefigure \unsetsubfigures I could not find a safe way to increment the subfigure number automatically, unfortunately. Best wishes, Taco ___ 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] Overriding the number on a float
Hi, If there are a few special numberings of floats, and one wants floats numbered 1.6a and 1.6b, the following seems to work: Best regards: Otared %%% begin ownnumber-in-floats.tex \useMPlibrary[dum] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \startsection[title=Two] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[figure][5] % next figure is no.6 \startsection[ownnumber=10,title={A section}] \start \setupcaptions[numberstopper={a}] \startplacefigure[title=Test figure] \externalfigure[dummy] \stopplacefigure \stop \stopsection \setcounter[figure][5] \startsection[ownnumber=11,title={Another section}] % ownnumber doesn’t work \start \setupcaptions[numberstopper={b}] \startplacefigure[title=Test another figure] \externalfigure[dummy] \stopplacefigure \stop \startplacefigure[title=Test another figure] \externalfigure[dummy] \stopplacefigure \stopsection \stoptext %%% end ownnumber-in-floats.tex > On 24 Aug 2020, at 19:37, Henning Hraban Ramm wrote: > > > >> Am 24.08.2020 um 17:36 schrieb Wolfgang Schuster >> : >> >> Henning Hraban Ramm schrieb am 24.08.2020 um 15:29: >>>> Am 23.08.2020 um 11:25 schrieb Duncan Hothersall : >>>> >>>> I think there was a question on this very recently but I don;t think it >>>> got an answer and I can't find it to reply to, so apologies for the extra >>>> noise. I have a large text with floats numbered sequentially by chapter >>>> and then figure/table number, but at the last minute I've had a request >>>> for two figures in a particular chapter to become 27.1a and 27.1b instead >>>> of 27.1 and 27.2. It's not a combination - they are separate figures on >>>> different pages. >>>> >>>> I've experimented with the options I can see, but it's not obvious if >>>> there is a facility to override the numbering of two figures in a stream >>>> of normally numbered figures like this. I was thinking of the equivalent >>>> of the old \sym{symbol} command that used to work as a way to override a >>>> single item in an otherwise sequential list. >>>> >>>> I guess there's a brute force method of setting up a new type of figure >>>> with the label "Figure 27.1" and having them numbered as lowercase alpha, >>>> but if there's an easier way that would be great. >>> I’m also interested in overriding automatical numbering, e.g. of chapters >>> or itemization items. >>> E.g. in my songbook, I’d like to have the verses numbered but interrupted >>> by a chorus numbered as "C" (i.e. "R" in German). >>> Similarly the paragraphs of some (by)laws that were changed a lot and use a >>> numbering like 1, 2, 3, 3a, 4, 7... >>> Something like >>> \startitem[number={R}] >>> or >>> \startsection[number={3a}] >>> would be nice. >>> If I set it to an integer, ConTeXt should set the counter accordingly, >>> otherwise continue counting from the previous calculated number. Would that >>> be possible? >> >> >> You can set your own section numbers but the counter isn't stopped. > > Thank you! I overlooked "ownnumber". It works for sections, but not for items > or floats. > > \setnumber[section][10] doesn’t work, \setcounter the same (according to the > source they’re synonymous) – does section use a different counter name or is > it no counter at all? > > \setnumber[figure][10] works (but only with integers, not some alphanumerical > stuff, sorry Duncan). > > Hraban > > > \useMPlibrary[dum] > > \starttext > > \startsection[title=One] > \startplacefigure[title=Test] > \externalfigure[dummy] > \stopplacefigure > \stopsection > > \startsection[title=Two] > \startplacefigure[title=Test] > \externalfigure[dummy] > \stopplacefigure > \stopsection > > \setcounter[figure][5] % next figure is no.6 > > \startsection[ownnumber=10,title=???] % ownnumber doesn’t work > \startplacefigure[title=Test,ownnumber=10] > \externalfigure[dummy] > \stopplacefigure > \stopsection > > \setcounter[section][5] % doesn’t work > > \startsection[title=Three] > \startitemize[n] > \item one > \item two > \item three > \startitem[ownnumber=9] five\stopitem % ownnumber doesn’t work > \stopitemize > \stopsection > > \stoptext > > ___ > If your question is of interest to others as well, ple
Re: [NTG-context] Overriding the number on a float
Henning Hraban Ramm schrieb am 24.08.2020 um 19:37: Am 24.08.2020 um 17:36 schrieb Wolfgang Schuster : Henning Hraban Ramm schrieb am 24.08.2020 um 15:29: Am 23.08.2020 um 11:25 schrieb Duncan Hothersall : I think there was a question on this very recently but I don;t think it got an answer and I can't find it to reply to, so apologies for the extra noise. I have a large text with floats numbered sequentially by chapter and then figure/table number, but at the last minute I've had a request for two figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 27.2. It's not a combination - they are separate figures on different pages. I've experimented with the options I can see, but it's not obvious if there is a facility to override the numbering of two figures in a stream of normally numbered figures like this. I was thinking of the equivalent of the old \sym{symbol} command that used to work as a way to override a single item in an otherwise sequential list. I guess there's a brute force method of setting up a new type of figure with the label "Figure 27.1" and having them numbered as lowercase alpha, but if there's an easier way that would be great. I’m also interested in overriding automatical numbering, e.g. of chapters or itemization items. E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as "C" (i.e. "R" in German). Similarly the paragraphs of some (by)laws that were changed a lot and use a numbering like 1, 2, 3, 3a, 4, 7... Something like \startitem[number={R}] or \startsection[number={3a}] would be nice. If I set it to an integer, ConTeXt should set the counter accordingly, otherwise continue counting from the previous calculated number. Would that be possible? You can set your own section numbers but the counter isn't stopped. Thank you! I overlooked "ownnumber". It works for sections, but not for items or floats. \setnumber[section][10] doesn’t work, \setcounter the same (according to the source they’re synonymous) – does section use a different counter name or is it no counter at all? \setnumber[figure][10] works (but only with integers, not some alphanumerical stuff, sorry Duncan). \setupnumber is a synonym of \setupcounter and exists for backwards compatibility. Hraban \useMPlibrary[dum] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \startsection[title=Two] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[figure][5] % next figure is no.6 \startsection[ownnumber=10,title=???] % ownnumber doesn’t work \startplacefigure[title=Test,ownnumber=10] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[section][5] % doesn’t work \setupheadnumber[section][5] \startsection[title=Three] \startitemize[n] \item one \item two \item three \startitem[ownnumber=9] five\stopitem % ownnumber doesn’t work \starttext \startitemize \txt{I.} \unknown \sym{7.} \unknown \stopitemize \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] Overriding the number on a float
> Am 24.08.2020 um 17:36 schrieb Wolfgang Schuster > : > > Henning Hraban Ramm schrieb am 24.08.2020 um 15:29: >>> Am 23.08.2020 um 11:25 schrieb Duncan Hothersall : >>> >>> I think there was a question on this very recently but I don;t think it got >>> an answer and I can't find it to reply to, so apologies for the extra >>> noise. I have a large text with floats numbered sequentially by chapter and >>> then figure/table number, but at the last minute I've had a request for two >>> figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 >>> and 27.2. It's not a combination - they are separate figures on different >>> pages. >>> >>> I've experimented with the options I can see, but it's not obvious if there >>> is a facility to override the numbering of two figures in a stream of >>> normally numbered figures like this. I was thinking of the equivalent of >>> the old \sym{symbol} command that used to work as a way to override a >>> single item in an otherwise sequential list. >>> >>> I guess there's a brute force method of setting up a new type of figure >>> with the label "Figure 27.1" and having them numbered as lowercase alpha, >>> but if there's an easier way that would be great. >> I’m also interested in overriding automatical numbering, e.g. of chapters or >> itemization items. >> E.g. in my songbook, I’d like to have the verses numbered but interrupted by >> a chorus numbered as "C" (i.e. "R" in German). >> Similarly the paragraphs of some (by)laws that were changed a lot and use a >> numbering like 1, 2, 3, 3a, 4, 7... >> Something like >> \startitem[number={R}] >> or >> \startsection[number={3a}] >> would be nice. >> If I set it to an integer, ConTeXt should set the counter accordingly, >> otherwise continue counting from the previous calculated number. Would that >> be possible? > > > You can set your own section numbers but the counter isn't stopped. Thank you! I overlooked "ownnumber". It works for sections, but not for items or floats. \setnumber[section][10] doesn’t work, \setcounter the same (according to the source they’re synonymous) – does section use a different counter name or is it no counter at all? \setnumber[figure][10] works (but only with integers, not some alphanumerical stuff, sorry Duncan). Hraban \useMPlibrary[dum] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \startsection[title=Two] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[figure][5] % next figure is no.6 \startsection[ownnumber=10,title=???] % ownnumber doesn’t work \startplacefigure[title=Test,ownnumber=10] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[section][5] % doesn’t work \startsection[title=Three] \startitemize[n] \item one \item two \item three \startitem[ownnumber=9] five\stopitem % ownnumber doesn’t work \stopitemize \stopsection \stoptext ___ 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] Wrong page numbers in frontmatter
Hi, I'm not sure why the following MWE produces a document where page 2 has the page number i instead of ii. It seems to have something to do with the use of makeup. I was using it to create a vertically centered title page. Is there a better way of doing this which will give the correct page numbers? Best, Jack \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber][][numbers] \definemakeup[titlepage][align=middle] \starttext \startfrontmatter \startmakeup[titlepage] Title \stopmakeup test \stopfrontmatter \startbodymatter \setcounter[userpage][1] test \stopbodymatter \stoptext ___ 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] problem with counters (page)
Alan Bowen schrieb am 10.06.2020 um 17:04: Thanks, Taco! That works in my mwe. I added way=bytext in my env file and the output is just what I need. Why don't you use sub pages? \starttext %\setupsubpagenumber[start=5]\resetsubpagenumber \setcounter[subpage][5] \startTEXpage \samplefile{ward} \blank \midaligned{\subpagenumber} \stopTEXpage \startTEXpage \samplefile{ward} \blank \midaligned{\subpagenumber} \stopTEXpage \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] problem with counters (page)
Thanks, Taco! That works in my mwe. I added way=bytext in my env file and the output is just what I need. Best, Alan On Wed, Jun 10, 2020 at 9:44 AM Taco Hoekwater wrote: > Hi Alan, > > Sorry, I should have actually tried your MWE. You do *not* want > way=bypage here, as that resets the counter to one at the start > of the next page (it is useful for footnotes that are numbered > per-page, but not for actual page counters). > > > \definecounter[volpage][type=page] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[offset=2pc] > \input ward > \blank[medium] > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > \stopTEXpage} > \stoptext > > > > On 10 Jun 2020, at 15:05, Alan Bowen wrote: > > > > Hi, Taco— > > > > Thanks for the suggestion. I have tried it with \incrementcounter before > and after the TEXpage. Sadly, neither worked. > > > > This mwe is an attempt to capture the failure of the following in > processing a product with numerous components: > > > > \definecounter[volpage][type=page, way=bypage] > > \setupfootertexts[text] > > [] > > [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} > > \incrementcounter[volpage]}] > > [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} > > \incrementcounter[volpage]}] > > [] > > > > If your suggestion had worked, I would have had difficulty in applying > it. > > > > Alan > > > > On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater > wrote: > > Hi, > > > > Incrementing the counter outside of the TEXpage should work. > > > > Best wishes, > > Taco > > > > > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > > > > > My efforts to set up a new page counter in the footertexts of a book > are not proving successful. The following code shows the nature of the > problem. > > > > > > \definecounter[volpage][type=page, way=bypage] > > > \starttext > > > \setcounter[volpage][5] > > > \dorecurse{3}{\startTEXpage[offset=2pc] > > > \input ward > > > \blank[medium] > > > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > > > \stopTEXpage} > > > \stoptext > > > > > > As you will see, the counter is not incremented on pages 2 and 3. > > > > > > I expect that I have missed something important. But what? > > > > > > Alan > > > > ___ > > > 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 > > > > ___ > > > > Taco Hoekwater > > Elvenkind BV > > > > > > > > > > > ___ > > 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 > > > ___ > > > ___ > > 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 > > > ___ > > Taco Hoekwater > Elvenkind BV > > > > > > ___ > If your question is of interest to others as well, please add an entry to > the
Re: [NTG-context] problem with counters (page)
Hi Alan, Sorry, I should have actually tried your MWE. You do *not* want way=bypage here, as that resets the counter to one at the start of the next page (it is useful for footnotes that are numbered per-page, but not for actual page counters). \definecounter[volpage][type=page] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium] \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} \stopTEXpage} \stoptext > On 10 Jun 2020, at 15:05, Alan Bowen wrote: > > Hi, Taco— > > Thanks for the suggestion. I have tried it with \incrementcounter before and > after the TEXpage. Sadly, neither worked. > > This mwe is an attempt to capture the failure of the following in processing > a product with numerous components: > > \definecounter[volpage][type=page, way=bypage] > \setupfootertexts[text] > [] > [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} > \incrementcounter[volpage]}] > [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} > \incrementcounter[volpage]}] > [] > > If your suggestion had worked, I would have had difficulty in applying it. > > Alan > > On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater wrote: > Hi, > > Incrementing the counter outside of the TEXpage should work. > > Best wishes, > Taco > > > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > > > My efforts to set up a new page counter in the footertexts of a book are > > not proving successful. The following code shows the nature of the problem. > > > > \definecounter[volpage][type=page, way=bypage] > > \starttext > > \setcounter[volpage][5] > > \dorecurse{3}{\startTEXpage[offset=2pc] > > \input ward > > \blank[medium] > > > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > > \stopTEXpage} > > \stoptext > > > > As you will see, the counter is not incremented on pages 2 and 3. > > > > I expect that I have missed something important. But what? > > > > Alan > > ___ > > 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 > > ___ > > Taco Hoekwater > Elvenkind BV > > > > > ___ > 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 > ___ > ___ > 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 > ___ Taco Hoekwater Elvenkind BV ___ 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] problem with counters (page)
Hi, Taco— Thanks for the suggestion. I have tried it with \incrementcounter before and after the TEXpage. Sadly, neither worked. This mwe is an attempt to capture the failure of the following in processing a product with numerous components: \definecounter[volpage][type=page, way=bypage] \setupfootertexts[text] [] [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} \incrementcounter[volpage]}] [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} \incrementcounter[volpage]}] [] If your suggestion had worked, I would have had difficulty in applying it. Alan On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater wrote: > Hi, > > Incrementing the counter outside of the TEXpage should work. > > Best wishes, > Taco > > > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > > > My efforts to set up a new page counter in the footertexts of a book are > not proving successful. The following code shows the nature of the problem. > > > > \definecounter[volpage][type=page, way=bypage] > > \starttext > > \setcounter[volpage][5] > > \dorecurse{3}{\startTEXpage[offset=2pc] > > \input ward > > \blank[medium] > > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > > \stopTEXpage} > > \stoptext > > > > As you will see, the counter is not incremented on pages 2 and 3. > > > > I expect that I have missed something important. But what? > > > > Alan > > > ___ > > 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 > > > ___ > > Taco Hoekwater > Elvenkind BV > > > > > > ___ > 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 > > ___ > ___ 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] problem with counters (page)
Hi, Incrementing the counter outside of the TEXpage should work. Best wishes, Taco > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > My efforts to set up a new page counter in the footertexts of a book are not > proving successful. The following code shows the nature of the problem. > > \definecounter[volpage][type=page, way=bypage] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[offset=2pc] > \input ward > \blank[medium] > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > \stopTEXpage} > \stoptext > > As you will see, the counter is not incremented on pages 2 and 3. > > I expect that I have missed something important. But what? > > Alan > ___ > 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 > ___ Taco Hoekwater Elvenkind BV ___ 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] problem with counters (page)
My efforts to set up a new page counter in the footertexts of a book are not proving successful. The following code shows the nature of the problem. \definecounter[volpage][type=page, way=bypage] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium] \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} \stopTEXpage} \stoptext As you will see, the counter is not incremented on pages 2 and 3. I expect that I have missed something important. But what? Alan ___ 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] packed list only if items > 5
Hi Pablo, I am not sure if the itemize environment can be configured on the fly. The following code should solve your problem: \definecounter[minforpacked] \setcounter[minforpacked][5] \def\mystartitemize#1\stopitemize{% \definecounter[mycounter] {\def\startitem##1\stopitem{\incrementcounter[mycounter]}#1} \ifnum \rawcountervalue[mycounter]>\rawcountervalue[minforpacked] \setupitemize[packed]\fi \startitemize#1\stopitemize} \starttext \mystartitemize %normal \dorecurse{2}{\startitem text\stopitem} \stopitemize \thinrule \mystartitemize %packed \dorecurse{7}{\startitem text\stopitem} \stopitemize \stoptext Best wishes, Tomáš Thu, Nov 14, 2019 ve 09:07:21PM +0100 Pablo Rodriguez napsal(a): # Dear list, # # I have the following sample: # # \starttext # \startitemize[\ifnum\currentnofitems>5 packed\fi] # \dorecurse{7} # {\startitem\currentitemnumber/\currentnofitems\stopitem} # \stopitemize # \stoptext # # Is there any way to get a packed list if and only if it contains more # than a given number of items? # # Many thanks for your help, # # Pablo # -- # http://www.ousia.tk # ___ # 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 # ___ Tomáš Hála Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 http://akela.mendelu.cz/~thala ___ 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] Right-to-left Documents
I'm trying to create a two-sided document in an RTL language. I'd like to reverse the margins and the page flow, so that the first page has the binding on the right side, rather than on the left, and the documents display correctly in pdf readers. I posted this question on TeX Stack exchange, and was informed by Wolfgang Schuster that it is currently impossible to do. He suggested that I use \setcounter[realpage][2] to simulate a document that starts with a left page, but warned that this might cause unwanted side effects. Would it be possible to properly implement document-level right to left direction? I am not an expert ConTeXt user, but I would be happy to assist in testing as much as I am able. Thank you, Marc Trius ___ 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] Unexpected behavior of subsection labels
Hi, 1. Try to make shorter example because your example contains too much stuff for a minimal example. 2. You forgot \starttext in your example. 3. Your fonts don't contain greek letters which explains the missing counter in the PDF. Did you check if the fallback fonts are loaded. \setuphead [section] [number=no] \setuphead [subsection] [number=yes, sectionsegments=subsection, conversion=g] \setupbodyfont[dejavu] \starttext \completecontent \chapter{yay} \section{wow} \subsection{Text} \stoptext Wolfgang Jairo A. del Rio schrieb am 06.10.2019 um 23:29: I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, force=yes] \definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, force=yes] \definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, force=yes] \definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean, force=yes] \definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, force=yes] \definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek, force=yes] \definefallbackfamily[mainface][tt][CMU Typewriter Text][preset=range:greek, force=yes] \definefontfamily[mainface][rm][Latin Modern Roman][sc=file:lmromancaps10regular] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,10pt] \setuplayout[backspace=2cm,topspace=2cm] \definepapersize[nice][width=180mm,height=250mm] \setuppapersize[nice][nice] \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section,subsection] \setupinteractionscreen[option=bookmark] \setupindenting[medium,yes] \definestructureconversionset [frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title=Text] Bye \stopsubsection \stopsection \stopchapter \stopbodymatter \stoptext What is puzzling to me is the absence of subsection labels. What I expect is: 1. Yay Wow α. Text However, what I've got is: 1. Yay Wow Text It's weird that bookmarks and TOC correctly show α before "Text". I don't know what is wrong. Thank you in advance. ___ 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 ___ ___ 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] Unexpected behavior of subsection labels
I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, force=yes] \definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, force=yes] \definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, force=yes] \definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean, force=yes] \definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, force=yes] \definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek, force=yes] \definefallbackfamily[mainface][tt][CMU Typewriter Text][preset=range:greek, force=yes] \definefontfamily[mainface][rm][Latin Modern Roman][sc=file:lmromancaps10regular] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,10pt] \setuplayout[backspace=2cm,topspace=2cm] \definepapersize[nice][width=180mm,height=250mm] \setuppapersize[nice][nice] \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section,subsection] \setupinteractionscreen[option=bookmark] \setupindenting[medium,yes] \definestructureconversionset [frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title=Text] Bye \stopsubsection \stopsection \stopchapter \stopbodymatter \stoptext What is puzzling to me is the absence of subsection labels. What I expect is: 1. Yay Wow α. Text However, what I've got is: 1. Yay Wow Text It's weird that bookmarks and TOC correctly show α before "Text". I don't know what is wrong. Thank you in advance. ___ 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] Custom Footertext
I have condensed it into a single document. The footer has in the right side the page numbering and at the left the "section". Both only start at the second page, which is good. I was wondering if the "section" could have the "title" in front of it. The title always stays the same, and the section changes. Many Thanks Jeroen \setuppapersize[A4,portrait] [A4,portrait] \setuplayout[backspace=20mm, width=175mm, topspace=20mm, header=0mm, footer=2mm, height=263mm, bottomheight=1mm, footerdistance=10mm] \usetypescript[pagella] \setupbodyfont[pagella,12pt] \setupcolors[state=start] \setupfootertexts[section][] \setupfooter[alternative=,style=\bf\em] \setuppagenumbering[alternative=,location={footer,right},style=\bf\em] \setcounter[userpage][0] \setupcombinedlist[content][level=1] \setupexternalfigures[directory={images}] \startdocument[ metadata:title={MkIV Context Notes}, metadata:subtitle={}, metadata:subject={MkIV Context}, affiliation=Context] \starttext \startfrontmatter \title{MkIV \CONTEXT\ Notes.} \startcolumns[n=2] \input zapf \stopcolumns \vfill \placecontent \stopfrontmatter \startbodymatter \section{Introduction} \dorecurse{5}{\input knuth} \section{Closure} \dorecurse{5}{\input bryson} \stopbodymatter \startappendices \setupcombinedlist[content][level=1] \section{Appendix A} \dorecurse{5}{\input tufte} \stopappendices \stoptext Op zo 29 sep. 2019 om 21:36 schreef Wolfgang Schuster < wolfgang.schuster.li...@gmail.com>: > Jeroen schrieb am 29.09.2019 um 20:36: > > This is the main file. > Neither minimal nor complete and \stopdocument is also missing. > > \environment mkivcnotesenv > > \startdocument > > [metadata:subject={MkIV Context}, > >affiliation=Context] > > \starttext > > \startfrontmatter > > \input{frontpage.tex} > > \stopfrontmatter > > \startbodymatter > > \section{Introduction} > > \dorecurse{10}{input knuth} > > \stopbodymatter > > \startappendices > > %\input{a1.tex} > > \stopappendices > > \stoptext > > Are you looking for something like this (I need more information for a > better answer): > > \definetext [sectionfooter] [footer] [section] > %\definetext [sectionfooter] [footer] [text] [section] [] > > \setupfootertexts [I'm a footer text!] [pagenumber] > > \setuppagenumbering >[location=, > style=bolditalic] > > \setuphead >[section] >[page=yes, % needed for the footer setting > footer=sectionfooter] > > \starttext > > \section{Introduction} > > \dorecurse{10}{\input knuth} > > \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] Custom Footertext
Dear list members, I am using the following environment file. The document itself is made-up of sections only. Instead of the section as footer, I would like to add a custom footer text throughout the document, starting at the second page as is the page numbering. I just don't seem to be able to adjust it. Who can help me out? Best Regards, Jeroen \startenvironment mkivcnotesenv \setuppapersize[A4,portrait] [A4,portrait] \setuplayout[backspace=20mm, width=175mm, topspace=20mm, header=0mm, footer=2mm, height=263mm, bottomheight=1mm, footerdistance=10mm] \usetypescript[pagella] \setupbodyfont[pagella,12pt] \setupcolors[state=start] \setuptype[style={\switchtobodyfont[11pt,tt]}] \setuptyping[style={\switchtobodyfont[11pt,tt]}] \setupfootertexts[section][] \setupfooter[alternative=,style=\bf\em] \setuppagenumbering[alternative=,location={footer,right},style=\bf\em] \setcounter[userpage][0] \setupcombinedlist[content][level=1] \setupexternalfigures[directory={images}] \stopenvironment ___ 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] index problem: [entry not flushed]
Jeong Dal schrieb am 11.02.19 um 11:17: 2. Also, the numbers of examples is not reset even though the new chapter began, for example, Example 2.3, 2.4, 3.5, 3.6 etc. However, I couldn’t make the same error with this code, It never happened without theorems, but it appeared when I added \startTheorem in my book. So, I add "\setcounter[Exam][0]” before the \startchapter everytime. I couldn’t figure out what relation is there between Theorems and Exam. The numbers are correct with the latest beta. mtx-context | current version: 2019.02.10 17:43 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] index problem: [entry not flushed]
Dear all, I used a customized Theorem structure which is made by the help of experts in this list. I have two questions. 1. Recently I added titles of theorems which was indexed and found a strange error message "[entry not flushed]” in the list of index. Please run the following sample code? %% \defineframed [MyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf] \startuseMPgraphic{MyFrame} picture p ; numeric o ; path a, b ; pair c ; %p := textext.rt("\FunnyFramed{\enumerationparameter{text} \convertedcounter[Theorem]}") ; p := textext.rt("\wrappedconstruction{\MyFramed{\currentconstructiontext}}") ; % p := textext.rt("\FunnyFramed{\currentconstructiontext}") ; o := BodyFontSize ; a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; p := p shifted (2o,OverlayHeight-ypart center p) ; drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, before={\blank[line,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [alternative=empty, title=yes, titleleft=, titleright=, text={\translate[en=Theorem, kr=정리]}, prefix=yes, prefixsegments=chapter, way=bychapter, % alternative=command, before=\startMyText, after=\stopMyText] \defineenumeration[Lemma] [alternative=empty, title=no, text={\translate[en=Lemma, kr=보조정리]}, prefix=yes, prefixsegments=chapter, way=bychapter, counter=Theorem, before=\startMyText, after=\stopMyText] \defineenumeration[Exam] [text={\white\translate[en=Example, kr=예제]}, numbercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, background=color,backgroundcolor=blue]}, %height=1.3em, title=yes, prefix=yes, prefixsegments=chapter, way=bychapter, before={\blank}, after=\blank] \setupbodyfont[rm, 11pt] \starttext \startchapter[title={First}] \startTheorem This is the first Theorem \stopTheorem \startExam We call it \index{OneTwo}{\bf OneTwo} \stopExam \startTheorem{\index{OneOne}{\bf OneOne}} This is the first Theorem \stopTheorem \startExam We call it \index{OneTwo}{\bf OneTwo} \stopExam \stopchapter \startchapter[title={Second}] \startTheorem{\index{TwoOne}{\bf TwoOne}} This is the first Theorem \stopTheorem \startExam We call it \index{Two 3}{\bf Two 3} \stopExam \startExam We call it \index{TwoTwo}{\bf TwoTwo} \stopExam \stopchapter \startchapter[title={Third}] \startExam We call it \index{Three 1}{\bf Three 1} \stopExam \startTheorem{\index{ThreeOne}{\bf ThreeOne}} This is the first Theorem \stopTheorem \startExam We call it \index{ThreeThree}{\bf ThreeThree} \stopExam \stopchapter \page \placeindex \stoptext %% How to get rid of the message [entry not flushed]? 2. Also, the numbers of examples is not reset even though the new chapter began, for example, Example 2.3, 2.4, 3.5, 3.6 etc. However, I couldn’t make the same error with this code, It never happened without theorems, but it appeared when I added \startTheorem in my book. So, I add "\setcounter[Exam][0]” before the \startchapter everytime. I couldn’t figure out what relation is there between Theorems and Exam. Thank you for reading. Best regards, Dalyoung ___ 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] Why do I have to enclose \rawcounter in braces in this MWE ?
Hello list, Why do I have to enclose \rawcountervalue in braces to get this MWE compiled ? \definecounter[fiche][way=bytext] \setupheadertexts[Fiche méthodologique N.{\rawcountervalue[fiche]} ][][][] \starttext \setcounter[fiche][2] \starttitle[title={Un essai}] \startsection[title={Un premier chapitre}] voilà \stopsection \startsubsection[title={Un deuxième}] tak jest. \stopsubsection \stoptitle \stoptext Thanks, Damien Thiriet ___ 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] Disproportion in initializing user counters
On 07/15/2018 03:49 PM, Hans Hagen wrote: > On 7/15/2018 12:33 PM, Jaroslav Hajtmar wrote: >> Hello ConTeXist. >> >> I encountered a disproportion in initializing user counters. Why >> initialization at the beginning of the source text does not work and >> what is the mechanism of how the user counters work. >> [...] >> \starttext >> >> %\setcounter[mycounter][0] % initializing at this point not working (the >> counter is 10 more than it should be). WHY? > > tables take multiple passes so you need to decrement when still > trialtypesetting > > \iftrialtypesetting .. \fi Many thanks for your reply, Hans. The original issue was mine, using with the handlecsv module. And I had no idea about what was wrong there. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] Disproportion in initializing user counters
On 7/15/2018 12:33 PM, Jaroslav Hajtmar wrote: Hello ConTeXist. I encountered a disproportion in initializing user counters. Why initialization at the beginning of the source text does not work and what is the mechanism of how the user counters work. Thanx Jaroslav Hajtmar Here is a sample example: \definecounter[mycounter] \def\getmycounter{\incrementcounter[mycounter]\getnumber[mycounter]} \startbuffer[groups] \startxrow \startxcell \getmycounter\stopxcell \startxcell Content of column\stopxcell \stopxrow \stopbuffer \starttext %\setcounter[mycounter][0] % initializing at this point not working (the counter is 10 more than it should be). WHY? \startxtable \startxrow \startxcell Column 1\stopxcell \startxcell Column 2\stopxcell \stopxrow \setcounter[mycounter][0] % initializing at this point works fine \dorecurse{5}{\getbuffer[groups]} \stopxtable \stoptext tables take multiple passes so you need to decrement when still trialtypesetting \iftrialtypesetting .. \fi -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Disproportion in initializing user counters
Hello ConTeXist. I encountered a disproportion in initializing user counters. Why initialization at the beginning of the source text does not work and what is the mechanism of how the user counters work. Thanx Jaroslav Hajtmar Here is a sample example: \definecounter[mycounter] \def\getmycounter{\incrementcounter[mycounter]\getnumber[mycounter]} \startbuffer[groups] \startxrow \startxcell \getmycounter\stopxcell \startxcell Content of column\stopxcell \stopxrow \stopbuffer \starttext %\setcounter[mycounter][0] % initializing at this point not working (the counter is 10 more than it should be). WHY? \startxtable \startxrow \startxcell Column 1\stopxcell \startxcell Column 2\stopxcell \stopxrow \setcounter[mycounter][0] % initializing at this point works fine \dorecurse{5}{\getbuffer[groups]} \stopxtable \stoptext ___ 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] Numbered, counted snippets in running text
On Sat, 19 May 2018 16:47:34 -0600, Henri Menke <henrime...@gmail.com> wrote: On 05/20/2018 09:34 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Just put together a macro that appears to do what's desired. However, is there a cleaner, more ConTeXt-like way to do this? === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopTEXpage === This feels more like “the ConTeXt way” to me. \defineframed [MQTframed] [offset=overlay, frame=off, background=color, backgroundcolor=green, align=middle] \definecounter[MQT] \setcounter[MQT][1] \define[1]\NUM {% \startframed[MQTframed] \convertedcounter[MQT]\par #1% \stopframed \incrementcounter[MQT]% } \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text}\par} \stopTEXpage See attached. Thanks in advance for any suggestions for improvement. Many thanks, Henri; this is a big help! Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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] Numbered, counted snippets in running text
On 05/20/2018 09:34 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: > Dear gang, > > Just put together a macro that appears to do what's desired. However, is > there a cleaner, more ConTeXt-like way to do this? > > === > \newcount \MQT > \MQT=1 > \define[1]\NUM{% > \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] > {\starttabulate[|c|] > \NC \mbox{\the\MQT} \NR > \NC #1 \NR > \stoptabulate}% > \advance\MQT by 1 > \hbox{}} > > \startTEXpage > \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } > \stopTEXpage > === This feels more like “the ConTeXt way” to me. \defineframed [MQTframed] [offset=overlay, frame=off, background=color, backgroundcolor=green, align=middle] \definecounter[MQT] \setcounter[MQT][1] \define[1]\NUM {% \startframed[MQTframed] \convertedcounter[MQT]\par #1% \stopframed \incrementcounter[MQT]% } \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text}\par} \stopTEXpage > > See attached. Thanks in advance for any suggestions for improvement. > > Best wishes > Idris > > > ___ > 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 > ___ > ___ 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 setup the footnote number in local footnotes
On Sun, 25 Mar 2018 09:29:01 -0600, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. März 2018 um 17:04 Dear gang, Consider the following: == \starttext \startframedtext[width=fit,frame=off,offset=0pt] % \startlocalfootnotes[n=2] \startlocalfootnotes \input ward \startfootnote \input ward \stopfootnote \placelocalfootnotes \stoplocalfootnotes \stopframedtext \stoptext == See attached: 1) Would like the footnote-number counter to start at 2, not 1. Add \setcounter[footnote][1] after \startlocalfootnotes. Works, many thanks. 2) Alternatively, would like to be able to define a conversion that sets the footnote numeral to 2. 3) Uncommenting the line % \startlocalfootnotes[n=2] doesn't work, although it is mentioned here: http://wiki.contextgarden.net/Command/startlocalfootnotes So that must be for MKII.. Check setup-en.pdf for valid arguments in MkIV. There are no options for \startlocalfootnotes and there is no command such as \setuplocalfootnotes. So how does one setup a conversion (or manual numbering) for localfootnotes? Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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 setup the footnote number in local footnotes
Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. März 2018 um 17:04 Dear gang, Consider the following: == \starttext \startframedtext[width=fit,frame=off,offset=0pt] % \startlocalfootnotes[n=2] \startlocalfootnotes \input ward \startfootnote \input ward \stopfootnote \placelocalfootnotes \stoplocalfootnotes \stopframedtext \stoptext == See attached: 1) Would like the footnote-number counter to start at 2, not 1. Add \setcounter[footnote][1] after \startlocalfootnotes. 2) Alternatively, would like to be able to define a conversion that sets the footnote numeral to 2. 3) Uncommenting the line % \startlocalfootnotes[n=2] doesn't work, although it is mentioned here: http://wiki.contextgarden.net/Command/startlocalfootnotes So that must be for MKII.. Check setup-en.pdf for valid arguments in MkIV. 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 make the first chapter number 0?
Hello Jeong, see both solutions attached. Check them in relation to TOC. Best regards, Lukas On Sat, 27 Jan 2018 16:08:03 +0100, Jeong Dal <hak...@me.com> wrote: Hi, I’d like to start the chapter number from 0. So I tried “\setcounter[chapter][-1]” or “\setcounter[chapter][0]” to test, but it doesn’t work. Is there any good method to make the number of the first chapter 0? Thank you for reading. Best regards, Dalyoung -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 ZeroStart.mkiv Description: Binary data ZeroStart.pdf Description: Adobe PDF document Sec0.mkiv Description: Binary data Sec0.pdf Description: Adobe PDF document ___ 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 make the first chapter number 0?
Hi, I’d like to start the chapter number from 0. So I tried “\setcounter[chapter][-1]” or “\setcounter[chapter][0]” to test, but it doesn’t work. Is there any good method to make the number of the first chapter 0? Thank you for reading. Best regards, Dalyoung ___ 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] figure numbering S3, S4, S6, ...
On Thu, 2017-07-13 at 09:54 +0200, Thomas Möbius wrote: > Dear list, > > I am compiling some figures as supplementary material and would like to > have figure captions follow the convention: > > Figure S3 > Figure S4 > Figure S5 > ... > > and I need that the numbering starts with S3 instead of S1. > > How can I achieve this? \setuppapersize[A6] \setupexternalfigures[location=default] \setupfloatcaption [figure] [way=bytext,numberstarter={S}] \setcounter[figure][2] \starttext \startplacefigure[title={Cow}] \externalfigure[cow][width=2cm] \stopplacefigure \startplacefigure[title={Another Cow}] \externalfigure[cow][width=2cm] \stopplacefigure \stoptext > > Minimal example: > > \setuppapersize[A6] > \setupexternalfigures[location=default] > > \setupcaptions[way=bytext] > > \placefigure > {Cow} > {\externalfigure[cow][width=2cm]} > > \placefigure > {Another Cow} > {\externalfigure[cow][width=2cm]} > ___ > 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 > ___ ___ 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] A new problem in old TOC
Hello Wolfgang! Thank you. Now it works perfect. Sorry for the long example. Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Samstag, 16. Juli 2016 07:00 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] A new problem in old TOC <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 15. Juli 2016 um 19:33 Hello Wolfgang! Yes, I want it both title in header and in the TOC! Ursula Hermann Danksagung \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] The two settings above can be removed because they aren’t necessary for the example. \startchapter [title={Ursula Hermann\indenting[yes, next] Danksagung}] The \crlf command insert a line break in the ToC and the heading \startchapter[title={Ursula Hermann\crlf Danksagung}] and the \\ command inserts a space in the ToC and a line break in the heading \startchapter[title={Ursula Hermann\\Danksagung}] 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A new problem in old TOC
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 15. Juli 2016 um 19:33 Hello Wolfgang! Yes, I want it both title in header and in the TOC! Ursula Hermann Danksagung \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] The two settings above can be removed because they aren’t necessary for the example. \startchapter [title={Ursula Hermann\indenting[yes, next] Danksagung}] The \crlf command insert a line break in the ToC and the heading \startchapter[title={Ursula Hermann\crlf Danksagung}] and the \\ command inserts a space in the ToC and a line break in the heading \startchapter[title={Ursula Hermann\\Danksagung}] 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A new problem in old TOC
Am 15.07.2016 16:51, schrieb Wolfgang Schuster: Ursula Hermann 15. Juli 2016 um 16:27 High Wolfgang! Now i have tried this one: \mainlanguage[de] \setuppapersize[A4] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann \indenting[yes, next] Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \stoptext I need in the TOC: 1. The Author, below the title of the chapter. Do you want to show (title after author) Ursula Hermann Danksagung both in the header and the ToC or should each use a different layout. BTW: Points 1-3 from my last mail aren't fixed (look here https://mailman.ntg.nl/pipermail/ntg-context/2016/086184.html how your mail looks in other mail clients). 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Hello Wolfgang! Yes, I want it both title in header and in the TOC! Ursula Hermann Danksagung \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann\indenting[yes, next] Danksagung}] \stopchapter \stoptext Uschi ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A new problem in old TOC
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 15. Juli 2016 um 16:27 High Wolfgang! Now i have tried this one: \mainlanguage[de] \setuppapersize[A4] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann \indenting[yes, next] Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \stoptext I need in the TOC: 1. The Author, below the title of the chapter. Do you want to show (title after author) Ursula Hermann Danksagung both in the header and the ToC or should each use a different layout. BTW: Points 1--3 from my last mail aren't fixed (look here https://mailman.ntg.nl/pipermail/ntg-context/2016/086184.html how your mail looks in other mail clients). 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A new problem in old TOC
High Wolfgang! Now i have tried this one: \mainlanguage[de] \setuppapersize[A4] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann \indenting[yes, next] Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \stoptext I need in the TOC: 1. The Author, below the title of the chapter. Uschi Hermann Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 15. Juli 2016 12:54 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] A new problem in old TOC <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 15. Juli 2016 um 11:30 I have a problem with an old TOC. I tried to put in an Author, but the problem is, that there is so much distance between the forename and the surname, and than comes the title. Here my example: \mainlanguage[de] \setuppapersize[A4] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter][width=fit] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsect ion}] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann {Danksagung}}] \starttext \stoptext Could somebody help me? Do I need a special way? Not with your current example because 1. it contains 3 \starttext commands, 2. there are too many setups (e.g. \setupinteraction) which aren't necessary for your example, 3. I get lot of empty lines when I copy your exampe into my editor which I have to delete (not funny), 4. and I can't reproduce your problem when I fix points 1 and 3. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A new problem in old TOC
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 15. Juli 2016 um 11:30 I have a problem with an old TOC. I tried to put in an Author, but the problem is, that there is so much distance between the forename and the surname, and than comes the title. Here my example: \mainlanguage[de] \setuppapersize[A4] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter][width=fit] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann {Danksagung}}] \starttext \stoptext Could somebody help me? Do I need a special way? Not with your current example because 1. it contains 3 \starttext commands, 2. there are too many setups (e.g. \setupinteraction) which aren't necessary for your example, 3. I get lot of empty lines when I copy your exampe into my editor which I have to delete (not funny), 4. and I can't reproduce your problem when I fix points 1 and 3. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A new problem in old TOC
I have a problem with an old TOC. I tried to put in an Author, but the problem is, that there is so much distance between the forename and the surname, and than comes the title. Here my example: \mainlanguage[de] \setuppapersize[A4] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter][width=fit] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsect ion}] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann {Danksagung}}] \starttext \stoptext Could somebody help me? Do I need a special way? Uschi ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Otared! At least the example is this. Now it works perfekt: \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \startsection [title=Activité 2] \stopsection \startchapter [title={Cours-Méthodes}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \startchapter [title={S'entraîner}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \stoptext \definestructureconversionset [frontpart:pagenumber] [5] [numbers] \setupmakeup [standard] [pagestate=start, style=bigbodyfont, align=middle] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \startchapter [title=First chapter] \stopchapter \startchapter [title=Second chapter] \stopchapter \stopbodymatter \stoptext Thank‘s so much, for helping me . Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Otared Kavian Gesendet: Donnerstag, 30. Juni 2016 12:05 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hi again, Maybe what you want to achieve is resetting the page numbers at some point: in that case you can say: \page \resetuserpagenumber just before the chapter where you want your chapter with roman numerals beginning at number 1. Best regards: OK On 28 Jun 2016, at 14:15, Ursula Hermann <ursula.herm...@univie.ac.at> wrote: Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann Gesendet: Dienstag, 28. Juni 2016 12:31 An: 'mailing list for ConTeXt users' Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hallo Wolfgang! Thanks for helping me. It was perfekt. Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 24. Juni 2016 18:34 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : <mailto:ntg-context@ntg.nl> ntg-context@ntg.nl / <http://www.ntg.nl/mailman/listinfo/ntg-context> http://www.ntg.nl/mailman/listinfo/ntg-context webpage : <http://www.pragma-ade.nl/> http://www.pragma-ade.nl / <http://tex.aanhet.net/> http://tex.aanhet.net archive : <http://foundry.supelec.fr/projects/contextrev/> http://foundry.supelec.fr/projects/contextrev/ wiki : <http://contextgarden.net/> http://contextgarden.net ___ ___ If your question is
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Otared! I have it. I found an mail on the mailinglist . This works. It is: \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][5] \startpart [title={Danksagung}] \stoppart \startchapter [title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \startpart [title={Danksagung}] \startchapter [title={Bildbeschreibung der Cover-Grafik}] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \startsection [title=Activité 2] \startchapter [title={Cours-Méthodes}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \startchapter [title={S'entraîner}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \stoptext And thanks for the other tip. Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Otared Kavian Gesendet: Donnerstag, 30. Juni 2016 12:05 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hi again, Maybe what you want to achieve is resetting the page numbers at some point: in that case you can say: \page \resetuserpagenumber just before the chapter where you want your chapter with roman numerals beginning at number 1. Best regards: OK On 28 Jun 2016, at 14:15, Ursula Hermann <ursula.herm...@univie.ac.at> wrote: Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann Gesendet: Dienstag, 28. Juni 2016 12:31 An: 'mailing list for ConTeXt users' Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hallo Wolfgang! Thanks for helping me. It was perfekt. Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 24. Juni 2016 18:34 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : <mailto:ntg-context@ntg.nl> ntg-context@ntg.nl / <http://www.ntg.nl/mailman/listinfo/ntg-context> http://www.ntg.nl/mailman/listinfo/ntg-context webpage : <http://www.pragma-ade.nl/> http://www.pragma-ade.nl / <http://tex.aanhet.net/> http://tex.aanhet.net archive : <http://foundry.supelec.fr/projects/contextrev/> http://foundry.supelec.fr/projects/contextrev/ wiki : <http://contextgarden.net/> http://contextgarden.net ___ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Hi again, Maybe what you want to achieve is resetting the page numbers at some point: in that case you can say: \page \resetuserpagenumber just before the chapter where you want your chapter with roman numerals beginning at number 1. Best regards: OK > On 28 Jun 2016, at 14:15, Ursula Hermann <ursula.herm...@univie.ac.at> wrote: > > Hello Wolfgang! > > I have now written as you told me. > \starttext > \placecontent > \setupuserpagenumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stoptext > > Ähm where do i set the counter. I mean when I set\setcounter? > > Uschi > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Ursula Hermann > Gesendet: Dienstag, 28. Juni 2016 12:31 > An: 'mailing list for ConTeXt users' > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > > Hallo Wolfgang! > > Thanks for helping me. It was perfekt. > > Uschi > > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Wolfgang Schuster > Gesendet: Freitag, 24. Juni 2016 18:34 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > >> Ursula Hermann <mailto:ursula.herm...@univie.ac.at> >> 24. Juni 2016 um 15:53 >> Hello evrybody! >> >> I need in a Toc pagenumberings with romannumrals and numbers. >> >> I have written this one: >> >> \mainlanguage[de] >> >> \setupinteraction[state=start] % don't forget this line! >> % make chapter, section bookmarks visible when opening document >> \placebookmarks[chapter,section,subsection][chapter,section] >> \setupinteractionscreen[option=bookmark]\starttext >> \setuplist[chapter] >> \setuplist[section][width=1em] >> \setuplist[subsection][width=1.5em, margin=0.6em] >> \setuplist[subject][margin=1.5em] >> \setuppagenumbering >> \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] > None of the above setups are needed for a minimal example, remove them next > time. > > \setupuserpagenumbering[conversion=romannumerals] > You’re looking for the \setupuserpagenumber command (but \setuppagenumber > would > also work because it’s a synonym for the command) and you have to use the > numbercommand > key to change the conversion. > > \setupuserpagenumber[numberconversion=romannumerals] > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / > http://www.ntg.nl/mailman/listinfo/ntg-context > <http://www.ntg.nl/mailman/listinfo/ntg-context> > webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / > http://tex.aanhet.net <http://tex.aanhet.net/> > archive : http://foundry.supelec.fr/projects/contextrev/ > <http://foundry.supelec.fr/projects/contextrev/> > wiki : http://contextgarden.net <http://contextgarden.net/> > ___ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Ursula, I don’t know whether the example you sent is what you typeset, but you should pay attention to close each \startchpater by a corresponding \stopchapter. The same remark applies to other \startSOMETHING command, which should have a corresponding \stopSOMETHING. This is probably not related to the question you are asking, but nevertheless is important in many instances. Best regards: OK > On 28 Jun 2016, at 14:15, Ursula Hermann <ursula.herm...@univie.ac.at> wrote: > > Hello Wolfgang! > > I have now written as you told me. > \starttext > \placecontent > \setupuserpagenumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stoptext > > Ähm where do i set the counter. I mean when I set\setcounter? > > Uschi > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Ursula Hermann > Gesendet: Dienstag, 28. Juni 2016 12:31 > An: 'mailing list for ConTeXt users' > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > > Hallo Wolfgang! > > Thanks for helping me. It was perfekt. > > Uschi > > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Wolfgang Schuster > Gesendet: Freitag, 24. Juni 2016 18:34 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > >> Ursula Hermann <mailto:ursula.herm...@univie.ac.at> >> 24. Juni 2016 um 15:53 >> Hello evrybody! >> >> I need in a Toc pagenumberings with romannumrals and numbers. >> >> I have written this one: >> >> \mainlanguage[de] >> >> \setupinteraction[state=start] % don't forget this line! >> % make chapter, section bookmarks visible when opening document >> \placebookmarks[chapter,section,subsection][chapter,section] >> \setupinteractionscreen[option=bookmark]\starttext >> \setuplist[chapter] >> \setuplist[section][width=1em] >> \setuplist[subsection][width=1.5em, margin=0.6em] >> \setuplist[subject][margin=1.5em] >> \setuppagenumbering >> \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] > None of the above setups are needed for a minimal example, remove them next > time. > > \setupuserpagenumbering[conversion=romannumerals] > You’re looking for the \setupuserpagenumber command (but \setuppagenumber > would > also work because it’s a synonym for the command) and you have to use the > numbercommand > key to change the conversion. > > \setupuserpagenumber[numberconversion=romannumerals] > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / > http://www.ntg.nl/mailman/listinfo/ntg-context > <http://www.ntg.nl/mailman/listinfo/ntg-context> > webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / > http://tex.aanhet.net <http://tex.aanhet.net/> > archive : http://foundry.supelec.fr/projects/contextrev/ > <http://foundry.supelec.fr/projects/contextrev/> > wiki : http://contextgarden.net <http://contextgarden.net/> > ___ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Wolfgang! I woud like to change the counter because there is a wrong pagenumber at the numbers, not at the romannumerals . I have compiled but I always have 2 instead of 6.This ist the pagenumber I need. Thanks Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Dienstag, 28. Juni 2016 22:53 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 28. Juni 2016 um 14:15 Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Where and why do you want to change the page counter. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 28. Juni 2016 um 14:15 Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Where and why do you want to change the page counter. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann Gesendet: Dienstag, 28. Juni 2016 12:31 An: 'mailing list for ConTeXt users' Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hallo Wolfgang! Thanks for helping me. It was perfekt. Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 24. Juni 2016 18:34 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] adding font feature tnum in the TOC
Hello Wolfgang, I used your solution. However I think instead of an “=“ it should be “+”. I wikified this issue. Kind regards Willi > On 29 mrt. 2016, at 17:48, Willi Egger <cont...@boede.nl> wrote: > > Wolfgang! > > Many thanks for this! - I get the result I wanted to. > > Kind regards > > Willi >> On 29 mrt. 2016, at 17:33, Wolfgang Schuster <schuster.wolfg...@gmail.com> >> wrote: >> >>> Willi Egger 29. März 2016 um 15:11 >>> Hi, >>> >>> hm, I am a little puzzled… >>> >>> If I am correct then one should be able to enable the font feature tnum for >>> the page-numbers with “pagecommand=“. >>> >>> I have >>> >>> \setuphead >>> [section] >>> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, >>> after={\godown[-1\lineheight]}, number=no] >>> >>> \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}] >>> >>> However if I do this then I get the pagenumber prefixed with ‘section’ e.g. >>> >>> bbb bar buch bühne section3 >>> >>> What am I doing in the wrong way? >> \setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}] >> >> \definefontfeature[default][default][onum=yes] >> >> \setupbodyfont[pagella] >> >> \starttext >> >> \setcounter[userpage][100] >> >> \completecontent >> >> \dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}} >> >> \stoptext >> >> ___ >> 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://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___ > > ___ > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] adding font feature tnum in the TOC
Wolfgang! Many thanks for this! - I get the result I wanted to. Kind regards Willi > On 29 mrt. 2016, at 17:33, Wolfgang Schuster <schuster.wolfg...@gmail.com> > wrote: > >> Willi Egger 29. März 2016 um 15:11 >> Hi, >> >> hm, I am a little puzzled… >> >> If I am correct then one should be able to enable the font feature tnum for >> the page-numbers with “pagecommand=“. >> >> I have >> >> \setuphead >> [section] >> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, >> after={\godown[-1\lineheight]}, number=no] >> >> \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}] >> >> However if I do this then I get the pagenumber prefixed with ‘section’ e.g. >> >> bbb bar buch bühne section3 >> >> What am I doing in the wrong way? > \setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}] > > \definefontfeature[default][default][onum=yes] > > \setupbodyfont[pagella] > > \starttext > > \setcounter[userpage][100] > > \completecontent > > \dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}} > > \stoptext > > ___ > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] adding font feature tnum in the TOC
Willi Egger <mailto:cont...@boede.nl> 29. März 2016 um 15:11 Hi, hm, I am a little puzzled… If I am correct then one should be able to enable the font feature tnum for the page-numbers with “pagecommand=“. I have \setuphead [section] [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, after={\godown[-1\lineheight]}, number=no] \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}] However if I do this then I get the pagenumber prefixed with ‘section’ e.g. bbb bar buch bühne section3 What am I doing in the wrong way? \setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}] \definefontfeature[default][default][onum=yes] \setupbodyfont[pagella] \starttext \setcounter[userpage][100] \completecontent \dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}} \stoptext ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page number woes
On 03/14/2016 03:43 PM, Mari Voipio wrote: > Greetings all! > > I have a book setup that worked perfectly as long as the inside cover > was only one page long. But then we added information to the inside > cover and had to split the information on two pages. The so called > inside cover works fine, the TOC works fine, but the main text part > (starting with Intro) begins now on page 2 when it should be on page > 1. And this happens even when the TOC is two pages long, which is a > bit weird (I would assume that if it counts TOC into page numbers, > two-page TOC would mean that Intro starts on page 3, but nope, it > still starts on page 2). > [...] Hi Mari, how about adding "\setcounter[userpage][1]" just before the introduction? Just in case it might help, Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A document composed only of TEXpages
On 3/3/2016 7:49 PM, Chicho Pep wrote: Hello everybody, I would like to have a document composed of TEXpages only, where each TEXpage contains one whole subsection or section. I have achieved that indeed, but I don't get to understand how the numbering of pages works in this case. I've tried to use \setcounter[userpage][\pagenumber+1]. TEXpage etc is probably not the best mechanism to use for that as it is just a vbox in the test suite there is a file experiment-001.tex that shows you a trick (maybe that should be module) Here is my document: *** \setupinteraction[state=start] \startsetups[myTEXpagesetup] \setupwhitespace[line] \setuptolerance[space] \stopsetups \setupfittingpage[TEXpage] [command=\texsetup{myTEXpagesetup}, height=fit, width=210mm, offset=10mm] \starttext \startTEXpage \startsection[title={My Section}] \placecontent \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My First Subsection}] Contents \stopsubsection \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My Second Subsection}] Contents \stopsubsection \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My Third Subsection}] Contents \stopsubsection \stopTEXpage \stopsection \stoptext *** The PDF browser numbers the pages correctly, and in this case they get numbers 1 to 4. But the generated list of contents in page 1 says that section "My Third Subsection" is in page 3 instead of 4, though the link correctly jumps to page 4. The (sub)section in the last TEXpage of the document gets always numbered as if it would be in the next to last TEXpage. To make the list of contents look good, I may add one last empty TEXpage at the end of the document. But I'd still like to ask how, or if, it would be possible to make this use case work without that trick. There's a pair more things: When the document is composed of only one single TEXpage, then that page gets number 0 in the PDF browser, instead of number 1. When I don't use \setcounter[userpage][\pagenumber+1] in between the TEXpages, they get numbers 1,1,1,2 in the PDF browser, while the list of contents says my subsections are in pages 1,1,0 (but the links jump always to the correct page). Thank you for your help Pep p.s. As PDF browsers, I use Evince, Okular and Firefox's built-in PDF Viewer p.p.s. I love ConTeXt :) ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A document composed only of TEXpages
Hello everybody, I would like to have a document composed of TEXpages only, where each TEXpage contains one whole subsection or section. I have achieved that indeed, but I don't get to understand how the numbering of pages works in this case. I've tried to use \setcounter[userpage][\pagenumber+1]. Here is my document: *** \setupinteraction[state=start] \startsetups[myTEXpagesetup] \setupwhitespace[line] \setuptolerance[space] \stopsetups \setupfittingpage[TEXpage] [command=\texsetup{myTEXpagesetup}, height=fit, width=210mm, offset=10mm] \starttext \startTEXpage \startsection[title={My Section}] \placecontent \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My First Subsection}] Contents \stopsubsection \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My Second Subsection}] Contents \stopsubsection \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My Third Subsection}] Contents \stopsubsection \stopTEXpage \stopsection \stoptext *** The PDF browser numbers the pages correctly, and in this case they get numbers 1 to 4. But the generated list of contents in page 1 says that section "My Third Subsection" is in page 3 instead of 4, though the link correctly jumps to page 4. The (sub)section in the last TEXpage of the document gets always numbered as if it would be in the next to last TEXpage. To make the list of contents look good, I may add one last empty TEXpage at the end of the document. But I'd still like to ask how, or if, it would be possible to make this use case work without that trick. There's a pair more things: When the document is composed of only one single TEXpage, then that page gets number 0 in the PDF browser, instead of number 1. When I don't use \setcounter[userpage][\pagenumber+1] in between the TEXpages, they get numbers 1,1,1,2 in the PDF browser, while the list of contents says my subsections are in pages 1,1,0 (but the links jump always to the correct page). Thank you for your help Pep p.s. As PDF browsers, I use Evince, Okular and Firefox's built-in PDF Viewer p.p.s. I love ConTeXt :) ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] late reset of counter with way=bypage
Solved with a workaround > - > \setupnotation[footnote][way=bypage] > > \definecounter[authornote][way=bypage] > > % taken and adapted from > https://www.mail-archive.com/ntg-context@ntg.nl/msg56637.html > \define[1]\authorNote{\bgroup% >\savecounter[footnote]% \incrementcounter[authornote]\decrementcounter[authornote]% <-- authornote is incremented and decremented to force the reset by page >\setcounter[footnote][{\rawcountervalue[authornote]}]% >\setupnotation[footnote][numberconversion=set 1]% >\footnote{#1}% >\restorecounter[footnote]% >\incrementcounter[authornote]% >\egroup} > > \starttext > > First footnote\footnote{First footnote}. > First author's footnote\authorNote{First author's footnote}. > Second footnote\footnote{Second footnote}. > Second author's footnote\authorNote{Second author's footnote}. > > \page > > First footnote\footnote{First footnote}. > First author's footnote\authorNote{First author's footnote}. > Second footnote\footnote{Second footnote}. > Second author's footnote\authorNote{Second author's footnote}. > > \stoptext > - Wolfgang Schuster already answered me on this (see https://www.mail-archive.com/ntg-context%40ntg.nl/msg78847.html): > It’s a bug and hopefully fixed in a new beta but the counter is only reset > when you increment the value. If you need the value of a counter with "way=bypage" without modifying its value, the workaround is: - increment the counter to force its reset by page - decrement it to get the correct current value Greetings, Massi ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] late reset of counter with way=bypage
Hello list, this is an example of footnotes with two different markers (and counters): numbers for editor's footnotes, stars for author's footnotes. The footnotes are typeset together, in the order they appear in the text, so number and star markers are interspersed. The two counters are reset every page (way=bypage). - \setupnotation[footnote][way=bypage] \definecounter[authornote][way=bypage] % taken and adapted from https://www.mail-archive.com/ntg-context@ntg.nl/msg56637.html \define[1]\authorNote{\bgroup% \savecounter[footnote]% \setcounter[footnote][{\rawcountervalue[authornote]}]% \setupnotation[footnote][numberconversion=set 1]% \footnote{#1}% \restorecounter[footnote]% \incrementcounter[authornote]% \egroup} \starttext First footnote\footnote{First footnote}. First author's footnote\authorNote{First author's footnote}. Second footnote\footnote{Second footnote}. Second author's footnote\authorNote{Second author's footnote}. \page First footnote\footnote{First footnote}. First author's footnote\authorNote{First author's footnote}. Second footnote\footnote{Second footnote}. Second author's footnote\authorNote{Second author's footnote}. \stoptext - The problem: the first authorNote of the second page has its counter set to 3 instead of 1 (you see 3 stars as marker). The second authorNote has the right value of 2 (2 stars as marker). This means that "way=bypage" works for the authornote counter too, but one step late. What am I missing? Some \iftrialtypesetting? Greetings, Massi ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to put title and counter of the enumeration env. in the FrameTitle?
Dear all, I found a partial solution for my former question which still have problems. 1. I set a new counter “ThmNumber” and use it in the FrameTitle. Its output is similar to what I want. 2. insert “after={\doglobal\increment\ThmNumber}” in the enumeration environment. 3. But the Initial value of ThmNumber is 0 even though \setcounter\ThmNumber1. Please enhance the sample code which works nicer way. Also, where can I find good explanation on “counter”? Thank you for reading. Best regards, Dalyoung % \newcounter\ThmNumber \setcounter\ThmNumber1 \increment\ThmNumber \startuseMPgraphic{FunnyFrame} picture p ; numeric o ; path a, b ; pair c ; p := textext.rt(\MPstring{FunnyFrame}) ; o := BodyFontSize ; a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; p := p shifted (2o,OverlayHeight-ypart center p) ; drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[Thm] [frame=off, background=FunnyFrame, offset=\bodyfontsize, increment=yes, width=\textwidth, after={\doglobal\increment\ThmNumber}]%\overlaywidth]% \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf #1\hss}}} \starttext This is a test for Framed Theorem. I'd like to put \quote{Theorem \#1(Some Title)} in a small frame and the main text in the big frame. \blank[big] {\FrameTitle{Theorem \ThmNumber} \startThm First theorem\par \input knuth \stopThm} {\FrameTitle{Theorem \ThmNumber} \startThm First theorem\par \input knuth \stopThm} \stoptext ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hidden chapter header? ... was: Change counter of chapters
Thanks Pablo for workable solutions. Both solutions are working, as I imagined. Anyway, fortunately I do not work with Word itself, but for example. Colleagues, friends and acquaintances. It is sometimes necessary make something in ConTeXt when Word is not enough on it. So fortunately there is no condemnation to me, but to someone else:-). Greeting Jaroslav Hajtmar From: ntg-context ntg-context-boun...@ntg.nl To: mailing list for ConTeXt users ntg-context@ntg.nl Cc: Date: Sat, 18 Apr 2015 09:23:51 +0200 Subject: Re: [NTG-context] Hidden chapter header? ... was: Change counter of chapters On 04/18/2015 07:22 AM, Jaroslav Hajtmar wrote: Hello ConTeXist My last Subject contribution maybe so misleading that it nobody react. I'll try therefore to bring different view: Exist any possibility of creating some kind of hidden chapters (sections, subsections)? The command would increase the counter of chapters (sections, subsections). Maybe it seems as rape of ConTeXt, but in certain moments this option would help me. In my case it is the integration of practical part of project (worked in ConTeXt) into Word project:-(... For example I need to start writing any text from 53 page and such from the 5th chapter (or section). It is possible in a similar way as I set the start page number set also the counter of chapters (sections)? Hi Jaroslav, adding the following commands before \startext does the work: \definehead[hiddenchapter][chapter] \setuphead[hiddenchapter][placehead=no] But there is a proper way to set the chapter number: \setupheadnumber[chapter][56] % +2 or -5 also accepted By the way, going from ConTeXt to Word you know you are on the road to perdition, don’t you? ;-) I hope it helps, Pablo Here is my minimal example: \starttext %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} \page \setcounter[userpage][53] \chapter{Fifth (actually first) nonfictive chapter} blablabla \stoptext -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hidden chapter header? ... was: Change counter of chapters
On 04/18/2015 07:22 AM, Jaroslav Hajtmar wrote: Hello ConTeXist My last Subject contribution maybe so misleading that it nobody react. I'll try therefore to bring different view: Exist any possibility of creating some kind of hidden chapters (sections, subsections)? The command would increase the counter of chapters (sections, subsections). Maybe it seems as rape of ConTeXt, but in certain moments this option would help me. In my case it is the integration of practical part of project (worked in ConTeXt) into Word project:-(... For example I need to start writing any text from 53 page and such from the 5th chapter (or section). It is possible in a similar way as I set the start page number set also the counter of chapters (sections)? Hi Jaroslav, adding the following commands before \startext does the work: \definehead[hiddenchapter][chapter] \setuphead[hiddenchapter][placehead=no] But there is a proper way to set the chapter number: \setupheadnumber[chapter][56] % +2 or -5 also accepted By the way, going from ConTeXt to Word you know you are on the road to perdition, don’t you? ;-) I hope it helps, Pablo Here is my minimal example: \starttext %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} \page \setcounter[userpage][53] \chapter{Fifth (actually first) nonfictive chapter} blablabla \stoptext -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Hidden chapter header? ... was: Change counter of chapters
Hello ConTeXist My last Subject contribution maybe so misleading that it nobody react. I'll try therefore to bring different view: Exist any possibility of creating some kind of hidden chapters (sections, subsections)? The command would increase the counter of chapters (sections, subsections). Maybe it seems as rape of ConTeXt, but in certain moments this option would help me. In my case it is the integration of practical part of project (worked in ConTeXt) into Word project:-(... For example I need to start writing any text from 53 page and such from the 5th chapter (or section). It is possible in a similar way as I set the start page number set also the counter of chapters (sections)? Thanx for help. Jaroslav Hajtmar Here is my minimal example: \starttext %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} %\hiddenchapter{Fictive chapter} \page \setcounter[userpage][53] \chapter{Fifth (actually first) nonfictive chapter} blablabla \stoptext ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Handling line numbers in frontmatter.
In the sample shown below I get correct (roman) line numbers but the very first page, imported from plug.tex has an unwanted page number. If I surround that page with: \startstandardmakeup[doublesided=no,page=yes] and \stopstandardmakeup the page number disappears but the page count is wrong by one. Page numbers are roman. I have tried changing the page number sequence using e.g,: \setcounter[userpage][-4] but that has no effect. I tried iv instead of 4 but that didn't work either. MKIV and Texlive 2014. --- \starttext \startfrontmatter \setuppagenumbering[state=start] %\startstandardmakeup[doublesided=no,page=yes] \input plug.tex %\stopstandardmakeup \page[yes] \startstandardmakeup[doublesided=no,page=yes] \stopstandardmakeup \startstandardmakeup[doublesided=no,page=yes] \externalfigure[graph1.pdf][width=\paperwidth, height=\paperheight] \stopstandardmakeup %\setcounter[userpage][number=4] \startstandardmakeup[doublesided=no,page=yes] {\obeylines {\bf From Kitchen to Market-Sell Your Specialty Food} 6th Edition Stephen F. Hall (etc.) } \stopstandardmakeup \stoptext --- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Change counter of chapters (sections, subsections...)
Hello ConTeXistI need to start writing any text from 53 page and such from the 5th chapter (or section). It is possible in a similar way as I set the start page number set also the counter of chapters (sections)? Here is my minimal example: \starttext \chapter{Fictive chapter} \chapter{Fictive chapter} \chapter{Fictive chapter} \chapter{Fictive chapter} \page \setcounter[userpage][53] \chapter{Fifth (actually first) nonfictive chapter} blablabla \stoptext Thanx for help. Jaroslav Hajtmar___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Page numbering, new style and running heads.
The new method of handling page numbering (roman and arabic) using e.g., \setupuserpagenumber[numberconversion=Romannumerals] \setcounter[userpage][5] works just fine if you remember one thing: in running heads the word pagenumber has to be replaced with userpagenumber. But in the \chapter setup it is still pagenumber I spent the morning and a few extra minutes figuring those two things out. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactive table of content -- jumps always 1 page too far
On 01/31/2015 05:42 PM, Rob Heusdens wrote: [...] The code looks likes this, but this examples does not exhibit the same faulty off-by-1-page interactive page jump behaviour. In the chapters in the body matter, always directly after a new chapter a section begins (in this example omitted). Hi Rob, include in your preamble the following command to avoid makeups not being numbered as pages: \setupmakeup[pagestate=start] So you don’t have to worry about setting counters for userpage. I don’t see any special problem here. You could define a colophon makeup for the colophon: \definemakeup[colophon][bottom=] (BTW, I thought colophons were at the end of the book.) I wonder what makes your links point to the next page from their destinations. BTW, which OS and PDF interpreter are you using? Pablo \setupinteraction[state=start] \setuppagenumbering[location=,alternative=doublesided] \definemakeup [titlepage] [align=middle,style=\bf] \starttext \startfrontmatter Small title \page \phantom{x}\vfill Colofon \page \starttitlepagemakeup BIG TITLE \stoptitlepagemakeup % - empty page inserted after here, so page number becomes 5 \setcounter[userpage][5] % - without this, the page number = 3 \setuppagenumbering[location={footer,middle}] \completecontent \chapter{Introduction} \dorecurse{4}{\input zapf} \stopfrontmatter \startbodymatter \setuppagenumbering[location={header,middle}] \dorecurse{21}{\chapter{Knuth} \dorecurse{10}{\input knuth}} \stopbodymatter \startappendices \chapter{Appendix} \dorecurse{4}{\input zapf} \stopappendices \startbackmatter \chapter{Notes} \dorecurse{4}{\input zapf} \stopbackmatter \stoptext -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactive table of content -- jumps always 1 page too far
Am 31.01.2015 um 17:42 schrieb Rob Heusdens robh...@xs4all.nl: \starttitlepagemakeup BIG TITLE \stoptitlepagemakeup % - empty page inserted after here, so page number becomes 5 \setcounter[userpage][5] % - without this, the page number = 3 You don’t need this manual setting for the pagenumber when you set „pagestate=start” for the markup environment. Below you can see that the second makeup environment increments the page number. \starttext \startmakeup[standard] Standardmakeup page \stopmakeup \input knuth \startmakeup[standard][pagestate=start] Standardmakeup page \stopmakeup \input knuth \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactive table of content -- jumps always 1 page too far
Am 31.01.2015 um 17:42 schrieb Rob Heusdens robh...@xs4all.nl: \starttitlepagemakeup BIG TITLE \stoptitlepagemakeup % - empty page inserted after here, so page number becomes 5 \setcounter[userpage][5] % - without this, the page number = 3 You donât need this manual setting for the pagenumber when you set âpagestate=startâ for the markup environment. Below you can see that the second makeup environment increments the page number. \starttext \startmakeup[standard] Standardmakeup page \stopmakeup \input knuth \startmakeup[standard][pagestate=start] Standardmakeup page \stopmakeup \input knuth \stoptext Wolfgang Wolfgang Thank you. But the real issue is still that page jumps from the interactive table of contents (at least, only those I have tried and noticed their misbehaviour) are always off by 1 page too far. I will try to make a MWE for this (the other code I sent, did not expose the error), and will try to see if \enabletrackers can point me to where the problem might be located (but first I have some other glitches I need to repair). greetings, Rob ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactive table of content -- jumps always 1 page too far
Hi Rob, there is a minimal sample: \setupcolors[state=start] \setupinteraction[state=start, focus=standard] \setupinteractionscreen[width=fit] \definecombinedlist[content][all] \setuphead[part][placehead=yes] \starttext \completecontent \dorecurse{5} {\part{Part} \input zapf \chapter{Chapter} \input zapf \section{Section} \input zapf \subsection{Subsection} \input zapf} \stoptext It doesnât show what you meant, the link destination is not on the heading itself, but on the next paragraph. I think this should be improved. And I guess it goes unnoticed, because after clicking on a link, the browser fits view to page. Can anyone guid me on where to look or what to try to solve this nasty problem? All you can do is to copy your file to a temporary version and start commenting commands from the preamble in that temporary version. This is trial and error. Remove individual commands from preamble, compile the document and check the error. When the error dissapeared, you have probably found its cause. If you report it to the mailing list, people will tell whether it is a bug or your code needs improvements. Donât do any other changes to that temporary file. After the bug hunting, you should delete that file. Sorry, but (Iâm afraid) this is the best way I know to hunt undefined bugs. I hope it helps, Pablo -- http://www.ousia.tk The code looks likes this, but this examples does not exhibit the same faulty off-by-1-page interactive page jump behaviour. In the chapters in the body matter, always directly after a new chapter a section begins (in this example omitted). \setupinteraction[state=start] \setuppagenumbering[location=,alternative=doublesided] \definemakeup [titlepage] [align=middle,style=\bf] \starttext \startfrontmatter Small title \page \phantom{x}\vfill Colofon \page \starttitlepagemakeup BIG TITLE \stoptitlepagemakeup % - empty page inserted after here, so page number becomes 5 \setcounter[userpage][5] % - without this, the page number = 3 \setuppagenumbering[location={footer,middle}] \completecontent \chapter{Introduction} \dorecurse{4}{\input zapf} \stopfrontmatter \startbodymatter \setuppagenumbering[location={header,middle}] \dorecurse{21}{\chapter{Knuth} \dorecurse{10}{\input knuth}} \stopbodymatter \startappendices \chapter{Appendix} \dorecurse{4}{\input zapf} \stopappendices \startbackmatter \chapter{Notes} \dorecurse{4}{\input zapf} \stopbackmatter \stoptext I'#314;l start trying \enabletrackers... ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setuppage is ignored
Thanks Wolfgang, it does work now! I didn't now that the counter would be called 'userpage'. It thought I had to set the page-counter (\setconter[page][1]), as I was using \setuppagenumber[numberconversion=numbers,state=start] and not \setupuserpagenumber[numberconversion=numbers,state=start] It seems as if both commands have the same effect. Are these synonyms? Is there a way for an end-user (like me) to infer from a command as \setuppagenumber that the corresponding counter is called userpage? I am just asking so I may get an understanding of how ConTeXt works, and I don't have to bother the list with so many questions. Thanks in advance. Best Thomas 2014-05-07 14:25 GMT+02:00 Wolfgang Schuster schuster.wolfg...@gmail.com: Am 07.05.2014 um 10:57 schrieb Thomas Möbius kont...@thomasmoebius.de: Dear list, it seems as if \setupnumber is ignored or I am using the wrong way to reset the page numbering. How to start the page numbering at 1 in the body matter? You have to change the value of the “userpage” counter, i.e. \setcounter[userpage][1] is needed. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Thomas Möbius Fakultät Statistik Technische Universität Dortmund 44221 Dortmund Telefon: 0231 755 - 3116 FAX: 0231 755 - 5304 E-Mail: friedr...@statistik.tu-dortmund.de ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setuppage is ignored
Am 07.05.2014 um 10:57 schrieb Thomas Möbius kont...@thomasmoebius.de: Dear list, it seems as if \setupnumber is ignored or I am using the wrong way to reset the page numbering. How to start the page numbering at 1 in the body matter? You have to change the value of the “userpage” counter, i.e. \setcounter[userpage][1] is needed. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Appendix Page Numbering
Am 06.02.2014 um 04:17 schrieb Troy Henderson thend...@gmail.com: To give an idea of what I am wanting, the attached screenshot is from Evince for a particular PDF that was created with some other program other than ConTeXt. Notice the custom page number names such as Statement, P-1, P-5, ..., P-25, APP-1, APP-3, ... How can I get this with ConTeXt? \defineconversionset[frontpart:pagenumber][][romannumerals] \definesectionblock[project][projectmatter] \startsectionblockenvironment[project] \setcounter[userpage][1] \setuppagenumber[numberstarter=P-] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setcounter[userpage][1] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setcounter[userpage][1] \setuppagenumber[numberstarter=APP-] \stopsectionblockenvironment \starttext \startfrontmatter \dorecurse{10}{\dontleavehmode\page} \stopfrontmatter \startprojectmatter \dorecurse{10}{\dontleavehmode\page} \stopprojectmatter \startbodymatter \dorecurse{10}{\dontleavehmode\page} \stopbodymatter \startappendices \dorecurse{10}{\dontleavehmode\page} \stopappendices \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] reset blocks with dorecurse
Please, can someone provide some assistance in resolving this problem, if possible. I need to prepare a worksheet for Friday and I'm having this problem, ie, each worksheet show the hints and the answers of all worksheets. thanks in advance Jorge 2014/1/14 DesdeChaves desdecha...@gmail.com Is there a way to empty the blocks after each recurse cycle. If i make three exams with the command \dorecurse[3], in the first exam i found the hints and the answers of all exams. I try with the commands \resetnumber[hint, answer], but don't work. begin question-hint-answer-blocks.tex \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question] [alternative=hanging, width=2.5cm, text={Question}, headstyle={\bi}, stopper={.}] \defineenumeration[hint] [alternative=hanging, width=4cm, text={Hint for question}, headstyle={\bi}, stopper={.}] \defineenumeration[answer] [alternative=hanging,width=4.5cm, text={Answer to question}, headstyle={\bi}, stopper={.}] \setupblock[question][before={\startquestion},after={\stopquestion}] \setupblock[hint][before={\starthint},after={\stophint}] \setupblock[answer][before={\startanswer},after={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \startsetups examn:make \resetnumber[answer] \resetnumber[question] \resetnumber[hint] \page \setcounter[userpage][1] \centerline{\kap{Maths}} \centerline{\kap{Worksheet}} \crlf Name:\thinrules[n=1]%, interlinespace=big] Evaluation:\thinrules[n=1]%, interlinespace=big] \getbuffer[examn] \stopsetups \starttext \setuppagenumbering[state=stop] \startbuffer[examn] \section{Questions} \beginquestion Compute $4\times 5$. \endquestion \beginhint Use the fact that $2\times 5 = 10$. \endhint \beginanswer $20$. \endanswer \beginquestion What is the value of $100 / 10$? \endquestion \beginhint Remember that $10\times 10 = 100$. \endhint \beginanswer $10$ \endanswer \section{Hints to all questions} \useblocks[hint] \section{Answers to all questions} \useblocks[answer] \setuppagenumber[number=1] \stopbuffer \setuprandomize[124] % set a seed \dorecurse{3} {\setups[examn:make]} \stoptext Thanks a lot Jorge -- Atentamente DesdeChaves ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] reset blocks with dorecurse
Is there a way to empty the blocks after each recurse cycle. If i make three exams with the command \dorecurse[3], in the first exam i found the hints and the answers of all exams. I try with the commands \resetnumber[hint, answer], but don't work. begin question-hint-answer-blocks.tex \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question] [alternative=hanging, width=2.5cm, text={Question}, headstyle={\bi}, stopper={.}] \defineenumeration[hint] [alternative=hanging, width=4cm, text={Hint for question}, headstyle={\bi}, stopper={.}] \defineenumeration[answer] [alternative=hanging,width=4.5cm, text={Answer to question}, headstyle={\bi}, stopper={.}] \setupblock[question][before={\startquestion},after={\stopquestion}] \setupblock[hint][before={\starthint},after={\stophint}] \setupblock[answer][before={\startanswer},after={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \startsetups examn:make \resetnumber[answer] \resetnumber[question] \resetnumber[hint] \page \setcounter[userpage][1] \centerline{\kap{Maths}} \centerline{\kap{Worksheet}} \crlf Name:\thinrules[n=1]%, interlinespace=big] Evaluation:\thinrules[n=1]%, interlinespace=big] \getbuffer[examn] \stopsetups \starttext \setuppagenumbering[state=stop] \startbuffer[examn] \section{Questions} \beginquestion Compute $4\times 5$. \endquestion \beginhint Use the fact that $2\times 5 = 10$. \endhint \beginanswer $20$. \endanswer \beginquestion What is the value of $100 / 10$? \endquestion \beginhint Remember that $10\times 10 = 100$. \endhint \beginanswer $10$ \endanswer \section{Hints to all questions} \useblocks[hint] \section{Answers to all questions} \useblocks[answer] \setuppagenumber[number=1] \stopbuffer \setuprandomize[124] % set a seed \dorecurse{3} {\setups[examn:make]} \stoptext Thanks a lot Jorge ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Image width in a two-column layout
It seems that there is a bug with \textwidth and \linewidth inside mixed columns. Minimum working example: % interface=en output=pdftex \definemixedcolumns[StyleColumns][ n=2, separator=rule, align=tolerant, before={\blank[big]},] \setupexternalfigures[ order={svg,pdf,png,jpg}, location=global, %wfactor=fit,] \setuphead[section][ after={\startStyleColumns}, aftersection={\stopStyleColumns},] \starttext \startbodymatter \setuppagenumbering[conversion=numbers] \setcounter[userpage][1] \startchapter[ title={Chapter}, reference=sec:chapter, ] \startsection[ title={Section}, reference=sec:chapter, ] \placefigure[]{}{% \externalfigure[sheep.jpg][ width=\textwidth, ] } \startsubsection[ title={Equipment}, reference=sec:equipment,] \input knuth \stopsubsection \stopsection \stopchapter\stopbodymatter \stoptext Actual results: the image appears as undefined. Expected results: the image appears, stretched to fill the column. Work around 1: use wfactor. Work around 2: \defineexternalfigure[fullwidth][factor=fit] and then use \externalfigure[file.jpg][fullwidth] Kind regards. ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Pagenumbering
On 2013–06–05 Tim Steenvoorden wrote: I doing something wrong is this a bug? \starttext \setupcounter[userpage][10] \setcounter [userpage] [10] Marco signature.asc Description: Digital 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Pagenumbering
Oh god, stupid me. Thanks, Marco! Cheers, Tim Op woensdag 5 juni 2013, om 12:54 heeft Marco Patzer het volgende geschreven: On 2013–06–05 Tim Steenvoorden wrote: I doing something wrong is this a bug? \starttext \setupcounter[userpage][10] \setcounter [userpage] [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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setuppagenumber--start at page xy
On 2013–04–21 Jörg Hagmann wrote: Has the code for starting pagenumbering at a given number changed? I'm using last year's template for an annual report, but can't get it to work. Minimal example: \setuppagenumber[number=3] \setcounter[userpage][3] Marco signature.asc Description: Digital 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___