ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Controlling \at output
@ 2016-03-01 15:59 Aidan Nichol
  0 siblings, 0 replies; 7+ messages in thread
From: Aidan Nichol @ 2016-03-01 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Controlling \at output
  2016-03-01 15:06 Aidan Nichol
@ 2016-03-01 15:16 ` Wolfgang Schuster
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2016-03-01 15:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 452 bytes --]

> Aidan Nichol <mailto:aidan@nicholware.co.uk>
> 1. März 2016 um 16:06
> 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
I attached my test file and the output I get.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1794 bytes --]

[-- Attachment #2: thispage.pdf --]
[-- Type: application/pdf, Size: 10682 bytes --]

[-- Attachment #3: thispage.tex --]
[-- Type: application/x-tex, Size: 400 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Controlling \at output
@ 2016-03-01 15:06 Aidan Nichol
  2016-03-01 15:16 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Aidan Nichol @ 2016-03-01 15:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 308 bytes --]

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


Aidan

[-- Attachment #1.2: Type: text/html, Size: 907 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Controlling \at output
  2016-02-28 15:08 ` Aidan Nichol
@ 2016-02-28 21:13   ` Wolfgang Schuster
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2016-02-28 21:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 289 bytes --]

> Aidan Nichol <mailto:aidan@nicholware.co.uk>
> 28. Februar 2016 um 16:08
> Thanks for the reply. \thispage is producing no output in all the 
> places it is being invoked
Which ConTeXt version do you use?

I tested the example with the newest beta and has no problems with it.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1280 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Controlling \at output
       [not found] <mailman.622.1456328114.2231.ntg-context@ntg.nl>
@ 2016-02-28 15:08 ` Aidan Nichol
  2016-02-28 21:13   ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Aidan Nichol @ 2016-02-28 15:08 UTC (permalink / raw)
  To: ntg-context

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-request@ntg.nl wrote:
> 
> startsetups[referenceformat:thispage]
>    \doifelse{\filterreference{page}}{\rawcountervalue[userpage]}
>        {{\tttf !?}}
>        {\filterreference{page}}
> \stopsetups
> 
> \definereferenceformat[thispage][setups=referenceformat:thispage]
> 
> \starttext
> 
> \chapter[one]{First chapter}
> 
> First: \thispage[one]
> 
> Second: \thispage[two]
> 
> \chapter[two]{Second chapter}
> 
> First: \thispage[one]
> 
> Second: \thispage[two]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Controlling \at output
  2016-02-24 11:47 Aidan Nichol
@ 2016-02-24 13:35 ` Wolfgang Schuster
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2016-02-24 13:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1281 bytes --]

> Aidan Nichol <mailto:aidan@nicholware.co.uk>
> 24. Februar 2016 um 12:47
> 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 the current 
> page) the values never match.
>
> \doifelse{\at[ref2]}{\at[ref1]}….. (ref1 and ref2 are on the same page 
> but don’t match
>
> \doifelse{\rawcountervalue[page]}{1}… it is page 1 but always fails.
>
> The only match I get is with
>
> \doifelse{\at[ref2]}{\at[ref2]}…. which is pretty useless
>
> Presumably I’m doing something stupid. Or do i have to go for a much 
> lower level approach
\startsetups[referenceformat:thispage]
     \doifelse{\filterreference{page}}{\rawcountervalue[userpage]}
         {{\tttf !?}}
         {\filterreference{page}}
\stopsetups

\definereferenceformat[thispage][setups=referenceformat:thispage]

\starttext

\chapter[one]{First chapter}

First: \thispage[one]

Second: \thispage[two]

\chapter[two]{Second chapter}

First: \thispage[one]

Second: \thispage[two]

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2385 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Controlling \at output
@ 2016-02-24 11:47 Aidan Nichol
  2016-02-24 13:35 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Aidan Nichol @ 2016-02-24 11:47 UTC (permalink / raw)
  To: ntg-context

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 the current page) the values never match.

\doifelse{\at[ref2]}{\at[ref1]}….. (ref1 and ref2 are on the same page but don’t match

\doifelse{\rawcountervalue[page]}{1}…  it is page 1 but always fails.

The only match I get is with

\doifelse{\at[ref2]}{\at[ref2]}….  which is pretty useless

Presumably I’m doing something stupid. Or do i have to go for a much lower level approach
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-03-01 15:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-01 15:59 Controlling \at output Aidan Nichol
  -- strict thread matches above, loose matches on Subject: below --
2016-03-01 15:06 Aidan Nichol
2016-03-01 15:16 ` Wolfgang Schuster
     [not found] <mailman.622.1456328114.2231.ntg-context@ntg.nl>
2016-02-28 15:08 ` Aidan Nichol
2016-02-28 21:13   ` Wolfgang Schuster
2016-02-24 11:47 Aidan Nichol
2016-02-24 13:35 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).