Open main menu

Changes

1,900 bytes added ,  15:31, 5 September 2020
Created page with "Documentation for \atpage"
<cd:commandgroup name="atpage" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\atpage</tt> is used for labelled page references.
</cd:shortdesc>
<cd:variants>
<cd:command category="references" file="strc-ref.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-references.xml" level="document" name="atpage" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:reference"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>If the reference resides on the same page the text 'as we show above' or 'as we show below' is typeset in the language which is set by the command {{cmd|mainlanguage}}. Otherwise the word 'page' and the page number of the reference is typeset.

The used <code>labeltext</code> entries are <code>hencefore</code> and <code>hereafter</code> for on the same page, or <code>page</code> for a different page.</cd:description>
<cd:examples><cd:example title=""><context source="yes">
% \setuparranging[XY] seems to break this example,
% so we can't show you the Chapter 2 header, alas.

\chapter[myRef1]{Chapter 1}

Chapter 1 (\atpage[myRef1]).
Chapter 2 (\atpage[myRef2]).

\page[yes]

\chapter[myRef2]{Chapter 2}
</context>
</cd:example><cd:example title=""><context source="yes">
\setuplabeltext[en][hencefore=on this page]

\chapter[myRef1]{Chapter 1}

Chapter 1 (\atpage[myRef1]).

</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="strc-ref.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:References"></cd:wikipage>
<cd:commandref name="setuplabeltext">for configuring the used label texts</cd:commandref>
<cd:commandref name="at">for a reference using only the page number</cd:commandref></cd:seealso>
</cd:commandgroup>