ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Where is ifforwardreference defined?
@ 2006-12-31  9:24 Mike Bird
  2006-12-31  9:39 ` Taco Hoekwater
  2006-12-31 21:10 ` Sanjoy Mahajan
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Bird @ 2006-12-31  9:24 UTC (permalink / raw)


\somewhere sometimes prints the wrong text.  To track down the
problem I tried to find the definition for \ifforwardreference.
I can see where \iffowardreference is declared to be a \newif but
I can't find where the algorithm is defined:

$ grep -r ifforwardreference .
./tex/context/base/core-ref.tex:\newif\ifforwardreference
./tex/context/base/core-ref.tex:\def\doifforwardreferenceelse#1#2%
./tex/context/base/core-ref.tex:  {\ifforwardreference#1\else#2\fi}
./tex/context/base/core-ref.tex:     {\ifforwardreference
./tex/context/base/core-ref.tex:        \ifforwardreference
Binary file ./web2c/pdfetex/cont-de.fmt matches
Binary file ./web2c/pdfetex/cont-en.fmt matches
Binary file ./web2c/pdfetex/cont-it.fmt matches
$

Does anyone know where \ifforwardreference is defined?

Thanks,

--Mike Bird

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

* Re: Where is ifforwardreference defined?
  2006-12-31  9:24 Where is ifforwardreference defined? Mike Bird
@ 2006-12-31  9:39 ` Taco Hoekwater
  2006-12-31 21:10 ` Sanjoy Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2006-12-31  9:39 UTC (permalink / raw)


Mike Bird wrote:
> 
> Does anyone know where \ifforwardreference is defined?

The logic is inside \dogetreferenceelements (core-ref.tex)
Look for \forwardreferencetrue and \forwardreferencefalse.

Best, Taco

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

* Re: Where is ifforwardreference defined?
  2006-12-31  9:24 Where is ifforwardreference defined? Mike Bird
  2006-12-31  9:39 ` Taco Hoekwater
@ 2006-12-31 21:10 ` Sanjoy Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Sanjoy Mahajan @ 2006-12-31 21:10 UTC (permalink / raw)


> grep -r ifforwardreference .

That finds only the \newif and uses of the new if.  To find the
algorithm, you want

  egrep -r 'forwardreference(false|true)' .

because the assignments are done by \forwardreferencetrue and
\forwardreferencefalse (a property of the TeX macro language, so not
specific not ConTeXt).

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)

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

end of thread, other threads:[~2006-12-31 21:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-31  9:24 Where is ifforwardreference defined? Mike Bird
2006-12-31  9:39 ` Taco Hoekwater
2006-12-31 21:10 ` Sanjoy Mahajan

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).