[NTG-context] Controlling \at output

2016-02-24 Thread Aidan Nichol
I’m trying to create something (like varioref in latex) that suppresses \at output if the referenced item is on the current page. The main decision point is with \doifelse{\at[ref2]}{\rawcountervalue[page]}{ same page }{ different page } no matter what I try (expdoifelse and other ways to get

Re: [NTG-context] ntg-context Digest, Vol 140, Issue 59

2016-02-24 Thread Aidan Nichol
Thanks for the reply. \thispage is producing no output in all the places it is being invoked Aidan > On 24 Feb 2016, at 15:35, ntg-context-requ...@ntg.nl wrote: > > startsetups[referenceformat:thispage] > \doifelse{\filterreference{page}}{\rawcountervalue[userpage]} > {{\tttf !?}}

Re: [NTG-context] Controlling \at output

2016-02-28 Thread Aidan Nichol
Thanks for the reply. \thispage is producing no output in all the places it is being invoked Aidan > On 24 Feb 2016, at 15:35, ntg-context-requ...@ntg.nl wrote: > > startsetups[referenceformat:thispage] >\doifelse{\filterreference{page}}{\rawcountervalue[userpage]} >{{\tttf !?}} >

[NTG-context] Table of Contents

2016-03-10 Thread Aidan Nichol
I’m using using pandoc and ConTeXt to generate pdf documentation from markdown. I started with the option to use latex (xetex) and swapped to ConTeXt, letting pandoc create the conTeXt file and invoke ConTeXt on it.C Both produce a table of contents active links etc. which is pretty much

Re: [NTG-context] Table of Contents

2016-03-11 Thread Aidan Nichol
Thanks Pablo That did it. I found the \placebookmarks in the pandoc template once I knew what I was looking for. I also found \setupinteractionscreen[option=bookmark] so I get it displayed when the document is opened. Aidan

[NTG-context] Show the results of XML mapping

2016-03-11 Thread Aidan Nichol
When I map from XML to ConTeXt there are lots of rules mapping lots of small bit of XML to small bits of ConTeXt and it is hard get the big picture. If something doesn’t work in the final PDF document it can be hard to know if the mapping failed to match the XML or if the generated ConTeXt was

Re: [NTG-context] Controlling \at output

2016-03-01 Thread Aidan Nichol
I must be doing something stupid. I’ve just installed the standalone version. Saved the code as test3.tex and invoked it with context test3.tex It reports the version as ConTeXt ver: 2016.03.01 14:03 MKIV beta fmt: 2016.3.1 int: english/english And still no output from \thispage

Re: [NTG-context] Controlling \at output

2016-03-01 Thread Aidan Nichol
SOLVED: I cut and pasted the code from the original response and failed to notice that the very first character i.e. the ‘\’ was missing in the message. It all executed with no error messages!! Works fine with the minor correction. Thanks for your help. Aidan

[NTG-context] References on the same page

2016-03-02 Thread Aidan Nichol
Is there a way to detect if two references are on the same page? I looking for a way to determine if I should print a single page number or a range of numbers. ___ If your question is of interest to others as well,

[NTG-context] Skipped figure numbers

2016-03-30 Thread Aidan Nichol
I have been looking at various options for controlling how figures are placed on a page and based on answers to similar questions in this mailing list I tried various options. The most flexible one seems to be using tables e.g. \setupexternalfigures[location={default}] \starttext

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Aidan Nichol
Thanks Aditya That solved the problem > > > On Wed, 30 Mar 2016, Aidan Nichol wrote: > >> I have been looking at various options for controlling how figures are >> placed on a page and based on answers to similar questions in this mailing >> list I tried vari

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Aidan Nichol
> On Thu, 31 Mar 2016 21:49:56 -0400 (EDT) > Aditya Mahajan wrote: > > On Thu, 31 Mar 2016, Alan BRASLAU wrote: > >> On Thu, 31 Mar 2016 17:51:07 -0400 >> Aditya Mahajan wrote: >> >>> @Hans: Does it make sense to disable \incrementcounter if >>>

[NTG-context] PageSetup

2016-04-14 Thread Aidan Nichol
I’ve been have been having a couple of problems with swapping pages and so I went back to the example in Context Garden using the latest beta \definepapersize[main] [A4] \definepapersize[extra][A4,landscape] \setuppapersize[main] \starttext Page 1. Portrait \page Page 2. Portrait \page