View Single Post
  #10   Report Post  
Posted to microsoft.public.word.docmanagement
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default PAGEREF \p Switch in DE, SV, SK, and PL

In Word 2003 I get
DE: Seite (not "auf Seite")
SV: på sidan
SK: na stronie
PL: na strane

A possible solution might be to use a nested field along the lines of
{ IF "{ PAGEREF bookmarkname \p }" = "Seite*" "auf Seite { PAGEREF
bookmarkname }" }

However, if you need to alter the "above" and "below" texts as well,
things would get more complicated.

There are ways you could probably make this approach easier to use,
e.g. on page 1 put

{ SET onpage "Seite" }{ SET ouronpage "auf Seite " }

substituting the appropriate expressions from the language you are using
in that document.

then use

{ IF "{ PAGEREF bookmarkname \p }" = "{ onpage }*" "{ ouronpage }{
PAGEREF bookmarkname }" }

Peter Jamieson

http://tips.pjmsn.me.uk

Bear wrote:
Stefan:

It evaluates to "on page 99" when the target is on a different page than the
x-ref. Please try it by editing a PAGEREF field in ANY version of Word.

Bear