[NTG-context] Re: Two questions to counter in margin

2025-05-28 Thread Wolfgang Schuster
=bytext,type=number] \setcounter[Scenecounter][1] \definedescription    [Szene]    [headstyle={\bf\WORD\rawcountervalue[Scenecounter]}, headalign=right, alternative=top, hang=none,     before=\startnarrow[left=0in,right=.5in][left,right]\blank,     after=\stopnarrow\blank,%\incrementcounter

[NTG-context] Two questions to counter in margin

2025-05-28 Thread Thomas Meyer
Hi helpers, I have the following: \setupbodyfont[cursor,12pt] \setuplayout[ backspace=1.5in, width=5in, leftmargin=0.5in, rightmargin=0.5in, topspace=0.5in, grid=yes, ] \definecounter[Scenecounter][way=bytext,type=number] \setcounter[Scenecounter][1

[NTG-context] Re: Problem with \reference and \at

2025-03-24 Thread Jacob Kauffmann via ntg-context
Hi Uschi, \goto{Seite 33}[other] will get you there. Or \setcounter[userpage][33] combined with \at{Seite}[other]. Best wishes, Jacob Kauffmann > Am 24.03.2025 um 08:44 schrieb Ursula Hermann : > > Dear List, > > If I compile the following example, > > \usecolors[svg

[NTG-context] The formula after the text

2025-02-17 Thread Ursula Hermann
Dear List, There is a formula in my example, after the text, (iv) …, setuppapersize[A4,width=19cm,height=24cm]] \setcounter[userpage][439] \setupbodyfont[, 12.95pt] \setuplayout[backspace=2.9cm, width=13.50cm] \defineenumeration [theorem] [ text=Theorem, title=yes

[NTG-context] Re: The formula after the text

2025-02-17 Thread Wolfgang Schuster
Am 17.02.2025 um 17:09 schrieb Ursula Hermann: Dear List, There is a formula in my example, after the text, (vi) Wir berechnen …, in the next line left should be the formula setuppapersize[A4,width=19cm,height=24cm]] \setcounter[userpage][439] \setupbodyfont[, 12.95pt] \setuplayout

[NTG-context] The formula after the text

2025-02-17 Thread Ursula Hermann
Dear List, There is a formula in my example, after the text, (vi) Wir berechnen ..., in the next line left should be the formula setuppapersize[A4,width=19cm,height=24cm]] \setcounter[userpage][439] \setupbodyfont[, 12.95pt] \setuplayout[backspace=2.9cm, width=13.50cm

[NTG-context] Example, the formular is too much in the middle, should be mor left

2025-02-11 Thread Ursula Hermann
Dear List, I have an example, where the formula should be more left. Maybe something with \startalign? setuppapersize[A4] \setcounter[userpage][439] \setupbodyfont[modern, 12.95pt] \setuplayout[backspace=2.9cm, width=13.50cm] \defineenumeration [theorem] [ text=Theorem

[NTG-context] Re: I would like to have footnumber 4

2025-02-04 Thread Ursula Hermann
I have a little example. > > \setuppapersize[A4] > > \setupinteraction[state=start] > > \setcounter[userpage][100] > > \setupbodyfont[modern, 12.50pt] > > \starttext > > Das bin ich \footnote[Das auch]{Hier bin ich} > > \stoptext > > I would

[NTG-context] Re: I would like to have footnumber 4

2025-02-04 Thread Paul Schalck via ntg-context
> Dear List, > > I have a little example. > > \setuppapersize[A4] > > \setupinteraction[state=start] > > \setcounter[userpage][100] > > \setupbodyfont[modern, 12.50pt] > > \starttext > > Das bin ich \footnote[Das auch]{Hier bin ich} > > \stoptext

[NTG-context] I would like to have footnumber 4

2025-02-04 Thread Ursula Hermann
Dear List, I have a little example. \setuppapersize[A4] \setupinteraction[state=start] \setcounter[userpage][100] \setupbodyfont[modern, 12.50pt] \starttext Das bin ich \footnote[Das auch]{Hier bin ich} \stoptext I would like to have footnumber 4 on this page. How can I do that? Many thanks

[NTG-context] [ pdf images upside down in firefox ]

2024-12-19 Thread vm via ntg-context
=90]}{} {\externalfigure[2024/12/thumbs/#1c.JPG][width=0.316\textwidth,orientation=90]}{} \stopcombination \setcounter[userpage][\pagenumber+1] \stopTEXpage } \starttext \zzz{IMG_8616} \zzz{IMG_8617} ... \stoptext --

[NTG-context] Re: How can a macro check how many items are in a list?

2024-11-04 Thread Hans Hagen via ntg-context
On 11/3/2024 5:53 PM, Bruce Horrocks wrote: \definecounter [MyItemsCounter] \definecounter [MyItemsUniqueID] [way=bytext] \setcounter[MyItemsUniqueID] [1] \definedataset [MyItems] [delay=yes] \defineitemgroup [MyItems] \setupitemgroup [MyItems] [ before={\setcounter[MyItemsCounter][1

[NTG-context] Re: How can a macro check how many items are in a list?

2024-11-03 Thread Bruce Horrocks
ngth of each list in a dataset. The `delay` option ensures the values retrieved are those from the completed run of the document, and a unique id is assigned to each list so subsequent lists don’t overwrite the length calculations for earlier ones. \definecounter [MyItemsCounter] \definecou

[NTG-context] Re: Adding a line after the TOC

2024-10-08 Thread Duncan Hothersall
nning of the TOC, but I cannot get it >> at the end, and perhaps with some vertical space separation from the main >> list. How can I place it at the end? >> >> Here is my simple MWE where at least I can get it at t

[NTG-context] Re: Adding a line after the TOC

2024-10-08 Thread jbf
nd? Here is my simple MWE where at least I can get it at the beginning: \starttochead[title={Contents}] \setcounter [userpage] [7] \setupheader[state=stop] \placecombinedlist[content] \writebetweenlist[chapter]{All translations are

[NTG-context] Re: Adding a line after the TOC

2024-10-08 Thread Duncan Hothersall
the end? > > Here is my simple MWE where at least I can get it at the beginning: > > \starttochead[title={Contents}] > > \setcounter [userpage] [7] > > \setupheader[state=stop] > > \placecombinedlist[content] > > \writebetweenli

[NTG-context] Adding a line after the TOC

2024-10-08 Thread jbf
get it at the beginning: \starttochead[title={Contents}] \setcounter [userpage] [7] \setupheader[state=stop] \placecombinedlist[content] \writebetweenlist[chapter]{All translations are by the author!} \stoptoche

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Wolfgang Schuster
adapted from Marco's answer: ``` \usemodule[ipsum] \definesectionblock[roman][romanpages] \definestructureconversionset [roman:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart]   \setcounter [userpage] [1] \stopsectionblockenvironment \starttext   \startstandardm

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Florent Michel
c-numerals-in-context > > > > The following example is slightly adapted from Marco's answer: > > > > ``` > > \usemodule[ipsum] > > > > \definesectionblock[roman][romanpages] > > \definestructureconversionset [roman:pagenumber] [] [romannumerals] > &g

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Shiv Shankar Dayal
omannumerals] > > \startsectionblockenvironment [bodypart] > \setcounter [userpage] [1] > \stopsectionblockenvironment > > \starttext > \startstandardmakeup > \placecontent > \stopstandardmakeup > \startromanpages > \section{Roman numeral pages} >

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
ipsum] \definesectionblock[roman][romanpages] \definestructureconversionset [roman:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \starttext \startstandardmakeup \placecontent \stopstandardmakeup \startroman

[NTG-context] Breakable tcolorbox in ConTeXt

2024-08-11 Thread Florent Michel
, backgroundcolor=green, framecolor=red, before={\setcounter[pageNumberTop][\pagenumber]}, after={\setcounter[pageNumberBottom][\pagenumber]}] \definestartstop [ColoredBox] [before={\blank[2em]\starttheoremFrame}, after={\stoptheoremFrame\blank[2em]}] ``` For instance,

[NTG-context] No roman numerals in frontmatter header

2024-06-28 Thread jbf
Perhaps someone can advise me where I am going wrong. I have no trouble getting roman numeral page numbers in the footer text in frontmatter with \startsectionblockenvironment [frontpart] \setupuserpagenumber [numberconversion=romannumerals] \setcounter [userpage] [5

[NTG-context] Re: roman numerals frontpart

2024-06-25 Thread jbf
is not working for me at the moment, and I cannot figure out why: \startsectionblockenvironment [frontpart] \setupuserpagenumber [numberconversion=romannumerals] \setcounter [userpage] [5] \stopsectionblockenvironment \startsectionblockenvironment [bodypart] \setcounter [userpage] [1

[NTG-context] roman numerals frontpart

2024-06-25 Thread jbf
Something that has worked for me in the past is not working for me at the moment, and I cannot figure out why: \startsectionblockenvironment [frontpart] \setupuserpagenumber [numberconversion=romannumerals] \setcounter [userpage] [5] \stopsectionblockenvironment

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
] \setcounter [userpage] [0] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument \setupfootertexts [title

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
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

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen
] \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

[NTG-context] Par Builder Tests

2023-07-21 Thread Keith McKay
] %\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

Re: [NTG-context] Numbered Itemlist With Interruption

2023-04-25 Thread jbf via ntg-context
\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

[NTG-context] Numbered Itemlist With Interruption

2023-04-25 Thread Michael Urban via ntg-context
[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

Re: [NTG-context] Structure: multi-volume products

2022-12-16 Thread Richard Mahoney | Indica et Buddhica via ntg-context
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 \startbodyma

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
\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: &g

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
> >> > > \definenote[putjustmark] >> > > \setupnote[putjustmark][location=none] >> > > \setupnotation[putjustmark][numberconversion=set 2] >> > > >> > > >> > > \definenote[putjustnote]%[footnote]

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
> > > > \definenote[putjustnote]%[footnote] % if footnotes need to be > > grouped, > > > uncomment the second argument and the line after > \the\titlefootnotes > > > \setupnote[putjustnote][textcommand=\gobbl

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
t the second argument and the line after \the\titlefootnotes > > \setupnote[putjustnote][textcommand=\gobbleoneargument] > > \setupnotation[putjustnote][numberconversion=set 2] > > > > > > \newtoks\titlefootnotes > > > > > > \def\thanks#1{\putjustmark{#

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread mf via ntg-context
#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,

[NTG-context] Can I just put a footnote without marking in the main text?

2022-05-17 Thread Zhichu Chen via ntg-context
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][nu

Re: [NTG-context] Counter names

2022-01-20 Thread Hans Hagen via ntg-context
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 li

[NTG-context] Table of Content

2021-02-11 Thread Ursula Hermann
ject] \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] \setco

Re: [NTG-context] Display reference number as Roman number

2021-01-06 Thread Rik Kabel
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

Re: [NTG-context] xtable row number trouble

2020-10-26 Thread Wolfgang Schuster
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

Re: [NTG-context] xtable row number trouble

2020-10-26 Thread Oleg
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=byte

Re: [NTG-context] xtable row number trouble

2020-10-25 Thread Wolfgang Schuster
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

[NTG-context] xtable row number trouble

2020-10-25 Thread Oleg
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

[NTG-context] page counter problem

2020-09-30 Thread Alan Bowen
, 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

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
onment [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

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
structureconversionset[frontpart:pagenumber][][romannumerals] \startsectionblockenvironment[bodypart] \setcounter[userpage][1] \stopsectionblockenvironment but it gave me the same result. Any idea how I can get the c

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
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

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-02 Thread Wolfgang Schuster
ied 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

[NTG-context] \setupuserpagenumber not working as expected

2020-09-02 Thread jbf
f 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? J

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Aditya Mahajan
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

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Duncan Hothersall
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? &g

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Taco Hoekwater
> 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][sta

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
] \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

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
he 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 (acc

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
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, &g

[NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
atter \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/lis

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Wolfgang Schuster
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 \sampl

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
t 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[off

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
\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: > >

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
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 &

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
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

[NTG-context] problem with counters (page)

2020-06-09 Thread Alan Bowen
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

Re: [NTG-context] packed list only if items > 5

2019-11-14 Thread Tomas Hala
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

[NTG-context] Right-to-left Documents

2019-11-14 Thread Marc Trius
hange, 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-leve

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster
onset [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 \getma

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
[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

Re: [NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
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] \setu

[NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
ative=,style=\bf\em] \setuppagenumbering[alternative=,location={footer,right},style=\bf\em] \setcounter[userpage][0] \setupcombinedlist[content][level=1] \setupexternalfigures[directory={images}] \stopenvironment ___ If

Re: [NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Wolfgang Schuster
\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 Wol

[NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
t 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 \startchapt

[NTG-context] Why do I have to enclose \rawcounter in braces in this MWE ?

2018-09-25 Thread Damien Thiriet
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

Re: [NTG-context] Disproportion in initializing user counters

2018-07-15 Thread Pablo Rodriguez
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 s

Re: [NTG-context] Disproportion in initializing user counters

2018-07-15 Thread Hans Hagen
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

[NTG-context] Disproportion in initializing user counters

2018-07-15 Thread Jaroslav Hajtmar
\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

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
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% \stopf

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Henri Menke
opTEXpage > === 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] \con

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Idris Samawi Hamid ادريس سماوي حامد
es[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]

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Wolfgang Schuster
t 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 de

Re: [NTG-context] How to make the first chapter number 0?

2018-01-27 Thread Procházka Lukáš Ing .
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 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

[NTG-context] How to make the first chapter number 0?

2018-01-27 Thread Jeong Dal
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

Re: [NTG-context] figure numbering S3, S4, S6, ...

2017-07-13 Thread Henri Menke
mbering 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=2c

Re: [NTG-context] A new problem in old TOC

2016-07-18 Thread Ursula Hermann
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[userp

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Wolfgang Schuster
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 se

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Ursula Hermann
, 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

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Wolfgang Schuster
ersion=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?

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Ursula Hermann
] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Wolfgang Schuster
mannumerals] \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

[NTG-context] A new problem in old TOC

2016-07-15 Thread Ursula Hermann
er=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={U

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-07-01 Thread Ursula Hermann
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

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-07-01 Thread Ursula Hermann
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

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
nversion=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...@n

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
enumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stoptext > > Ähm where do i set the

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Ursula Hermann
" 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

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Wolfgang Schuster
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 co

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Ursula Hermann
:"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' Betre

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
t]}, 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 >>> >

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
g way? > \setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}] > > \definefontfeature[default][default][onum=yes] > > \setupbodyfont[pagella] > > \starttext > > \setcounter[userpage][100] > > \completecontent > > \dorecurse{20}{\expanded{\chapter{

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Wolfgang Schuster
hapter][pagestyle={\feature[=][tabularnumbers]}] \definefontfeature[default][default][onum=yes] \setupbodyfont[pagella] \starttext \setcounter[userpage][100] \completecontent \dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}} \st

  1   2   >