Re: [NTG-context] no frontmatter head on recto page
Taco, I found a solution. Instead of trying to adjust what I have in the preamble, I simply went to where I begin the Foreword and included [marking={Foreword}]: \startforeword[marking={Foreword}][author={Author's name}]. And of course, to prevent the first page of Foreword from having the header, I have, in the preamble: \setuphead [foreword] [frontpartlabel=foreword, header=empty, conversion=empty] where the header=empty prevents that. So, while your proposed solution did not work for my situation, it did work as a stimulus to think the matter through and see what other solutions I could come up with! Thank you. Julian On 30/9/20 9:44 pm, Taco Hoekwater wrote: On 30 Sep 2020, at 11:46, jbf wrote: For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using: \definehead [foreword] [chapter]… ‘chapter' suppresses the header by default on the first page. at a guess: \setuphead[foreword][header=start] 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 ___ ___ 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] no frontmatter head on recto page
No, Taco, that is not resolving the problem. I added your suggestion (header=start) to what I already had for \setuphead for 'foreword': \setuphead [foreword] [frontpartlabel=foreword, conversion=empty, header=start] but it makes no difference. I am already aware that chapter, on which my foreword definition is based, by default does not give a header on the first page. It is subsequent recto pages that are the problem. So, for example, the Foreword (which starts on a recto page) has three pages. The first, correctly, has no header. The second carries the book title header (called in by [{\hfill\documentvariable{metadata:title}\hfill}][] I presume). But the third and final page does not have the header 'Foreword' which my publisher wants. The same is happening with other frontmatter items (and indeed, appendices too) I have defined, but if I solve the Foreword problem, I will know how to solve those too. When I had this problem with another book I was working on, having 'yes' in \setupsectionblock[frontpart][page=yes] seemed to solve the problem, but I didn't understand why it did! And it does not work in this instance. It may be that something else in my preamble is missing something or indeed preventing something! Any other thoughts on this? I could, offlist, send you my entire preamble (too long for the list I think) just in case something else is causing the problem that I am unaware of, but maybe you or someone else can still identify just what it is that might stopping the 'Foreword' recto header from appearing in this case. Julian On 30/9/20 9:44 pm, Taco Hoekwater wrote: On 30 Sep 2020, at 11:46, jbf wrote: For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using: \definehead [foreword] [chapter]… ‘chapter' suppresses the header by default on the first page. at a guess: \setuphead[foreword][header=start] 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 ___ ___ 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] Natural Tables: spaceinbetween not working?
Denis Maier schrieb am 30.09.2020 um 21:54: Hi, spaceinbetween seems to have no effect in this example: === \setupTABLE [spaceinbetween=25pt,split=yes] A few options need [start] when you set them before \bTABLE. \setupTABLE [split=yes] \setupTABLE [start] [spaceinbetween=25pt] \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE Try to avoid blank lines in tables, it shouldn't matter in this case but in certain cases this can lead to unwanted whitespace. 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] Natural Tables: spaceinbetween not working?
Hi, spaceinbetween seems to have no effect in this example: === \setupTABLE [spaceinbetween=25pt,split=yes] \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE \stoptext == What am I missing? Best, Denis ___ 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] Postponed footnotes and pagebreaks
On 9/30/20 5:52 PM, Denis Maier wrote: > Hi, > > postponing footnotes when using tables causes the footnote often to > appear on the next page, which may not always be wanted. Is there a way > to keep the footnote on the same page in these situations? Hi Denis, this options might help: \setupnote [footnote] [split=verystrict, scope=text] Just in case it helps, 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 ___
[NTG-context] Postponed footnotes and pagebreaks
Hi, postponing footnotes when using tables causes the footnote often to appear on the next page, which may not always be wanted. Is there a way to keep the footnote on the same page in these situations? Best, Denis ___ 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] Tagged export breaks r2l alignment in tabulate
Denis Maier schrieb am 30.09.2020 um 16:18: Ok, that works. Is it possible to define that both cells in the first row as left to right? (Like in the definition, not in the cell.) I don't think so but maybe table headers can help you. \starttext \starttabulatehead[] \BC \raggedcenter Column 1 \BC \raggedcenter Column 2 \NC\NR \stoptabulatehead \starttabulate[|p|p|] \NC \input ward \NC \input ward \NC\NR \stoptabulate \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] Tagged export breaks r2l alignment in tabulate
Am 27.09.2020 um 15:40 schrieb Wolfgang Schuster: Denis Maier schrieb am 26.09.2020 um 22:39: Am 23.09.2020 um 16:04 schrieb Wolfgang Schuster: Denis Maier schrieb am 23.09.2020 um 14:14: Hi, this example produces correctly aligned right-to-left text: \setupalign[verytolerant,stretch] \setupdirections[bidi=global,method=unicode] \starttext \starttabulate[|p|p|] \NC Text \NC Translation \NC\NR \NC\setupalign[r2l]\input ward \NC\input ward \NC\NR \stoptabulate \stoptext == But, this here fails: \setupalign[verytolerant,stretch] \setupdirections[bidi=global,method=unicode] \setupbackend[export=yes] \setupstructure[state=start,method=auto] \starttext \starttabulate[|p|p|] \NC Text \NC Translation \NC\NR \NC\setupalign[r2l]\input ward \NC\input ward \NC\NR \stoptabulate \stoptext == Why is that? The export can lead to unwanted results in the PDF and should always be done in a separate run. And what can I do about it? (I need tagged pdf for PDF/A compliance.) You do you use export when you need only tagging? You can enable tagging with \setuptagging[state=start] and to set the PDF format use \setupbackend but ignore the export key. Wolfgang Thanks, Wolfgang for that suggestion. However, that does not seems to solve the problem. Put differently, tagging seems to lead to the same sort of problems. It works when you set the alignment in the template of the table. \setupdirections [bidi=global, method=unicode] \setuptagging [state=start] \starttext \starttabulate[|pA{righttoleft}|p|] %\NC \raggedleft Text \NC Translation \NC\NR \NC \rightaligned{Text} \NC Translation \NC\NR \NC \input ward \NC \input ward \NC\NR \stoptabulate \stoptext Ok, that works. Is it possible to define that both cells in the first row as left to right? (Like in the definition, not in the cell.) Best, Denis ___ 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] Unwanted whitespace at beginning of document
Am 29.09.2020 um 16:16 schrieb Wolfgang Schuster: Denis Maier schrieb am 29.09.2020 um 14:26: Hi, I have ended up with unwanted whitespace at the beginning of my document. The environment definition is already quite complex, so I cannot easily tell where the whitespace is coming from. Any advice how I could track that down? Are there some tricks for this? 1. Create a dummy document where you load your environment, e.g. \environment[myenvironment] \starttext I'm a placeholder! \stoptext 2. Change the position of \stopenvironment in your style file until the whitespace disappears. Thanks. That was helpful. Denis ___ 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] page counter problem
Thank you, Taco, for the fix *and* the helpful explanation. The file now works (and I can now put this project to bed!) Alan On Wed, Sep 30, 2020 at 7:38 AM Taco Hoekwater wrote: > Hi Alan, > > > On 30 Sep 2020, at 12:50, Alan Bowen wrote: > > > > 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. > > It is not the iteration itself. Try with another pdf with more than 2 > pages and you > will see that it happens in the first page(s). > > The problem is that you are not giving ConTeXt a fair chance to update the > page number, > because a series of \vbox to \paperheight {}’s cannot cleanly be broken > into separate > pages. The solution is to use > > \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}\page > } > > where the extra \page command allows ConTeXt to properly process the page > breaks. > > 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 > > ___ > ___ 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] no frontmatter head on recto page
My apologies for the mixed message. A. On Wed, Sep 30, 2020 at 8:56 AM Alan Bowen wrote: > Thank you, Taco, for the fix *and* the helpful explanation. > > The file now works (and I can now put this project to bed!) > > Alan > > On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater wrote: > >> >> >> > On 30 Sep 2020, at 11:46, jbf wrote: >> > >> > For some reason that I cannot work out, the recto page header is not >> appearing in frontmatter sections like Foreword. It is important to note >> that for this item I am using: >> > >> > \definehead >> > [foreword] [chapter]… >> >> ‘chapter' suppresses the header by default on the first page. >> >> at a guess: >> >> \setuphead[foreword][header=start] >> >> 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 >> >> ___ >> > ___ 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] no frontmatter head on recto page
Thank you, Taco, for the fix *and* the helpful explanation. The file now works (and I can now put this project to bed!) Alan On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater wrote: > > > > On 30 Sep 2020, at 11:46, jbf wrote: > > > > For some reason that I cannot work out, the recto page header is not > appearing in frontmatter sections like Foreword. It is important to note > that for this item I am using: > > > > \definehead > > [foreword] [chapter]… > > ‘chapter' suppresses the header by default on the first page. > > at a guess: > > \setuphead[foreword][header=start] > > 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 > > ___ > ___ 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] no frontmatter head on recto page
> On 30 Sep 2020, at 11:46, jbf wrote: > > For some reason that I cannot work out, the recto page header is not > appearing in frontmatter sections like Foreword. It is important to note that > for this item I am using: > > \definehead > [foreword] [chapter]… ‘chapter' suppresses the header by default on the first page. at a guess: \setuphead[foreword][header=start] 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] page counter problem
Hi Alan, > On 30 Sep 2020, at 12:50, Alan Bowen wrote: > > 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. It is not the iteration itself. Try with another pdf with more than 2 pages and you will see that it happens in the first page(s). The problem is that you are not giving ConTeXt a fair chance to update the page number, because a series of \vbox to \paperheight {}’s cannot cleanly be broken into separate pages. The solution is to use \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}\page } where the extra \page command allows ConTeXt to properly process the page breaks. 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 ___
[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 ___
[NTG-context] no frontmatter head on recto page
For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using: \definehead [foreword] [chapter]... \setuphead [foreword] [frontpartlabel=foreword, conversion=empty] Then starting this section in the main body with \startforeword...\stopforeword. As 'foreword' is based on chapter, I thought it would all work correctly given that I already have: [{\hfill\getmarking[chapter]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] And I also have: \setupsectionblock[frontpart][page=yes] in case that is important as well. I am getting the verso page header (the book's title, obviously coming from the \documentvariable{metadata:title}), but not the recto header (in this case 'Foreword'). What am I doing wrong? I tried two solutions to solve the problem, neither worked: 1. In \setuphead I thought perhaps I might need to add placehead=yes, but that did nothing. 2. I also tried [{\hfill\getmarking[chapter, foreword]\hfill}][] in case I needed to add in 'foreword', having defined it as a head. That did nothing either. Any clues as to what I am missing? 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 ___