Difference between revisions of "Command/atpage"

From Wiki
Jump to navigation Jump to search
 
Line 12: Line 12:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</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.
+
<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 text 'on a following page' 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>
+
The used <code>labeltext</code> entries are <code>hencefore</code> and <code>hereafter</code> for a reference on the same page, or <code>followingpage</code> for a different page.</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
 +
\setuppapersize[A8,landscape]
 +
\starttext
 
\chapter[myRef1]{Chapter 1}
 
\chapter[myRef1]{Chapter 1}
  
 
Chapter 1 (\atpage[myRef1]).
 
Chapter 1 (\atpage[myRef1]).
 +
 
Chapter 2 (\atpage[myRef2]).
 
Chapter 2 (\atpage[myRef2]).
 +
 +
\page
  
 
\chapter[myRef2]{Chapter 2}
 
\chapter[myRef2]{Chapter 2}
 +
\stoptext
 
</context>
 
</context>
 
</cd:example><cd:example title=""><context source="yes">
 
</cd:example><cd:example title=""><context source="yes">
Line 36: Line 42:
 
<cd:wikipage originator="system" page="Category:References"></cd:wikipage>
 
<cd:wikipage originator="system" page="Category:References"></cd:wikipage>
 
<cd:commandref name="setuplabeltext">for configuring the used label texts</cd:commandref>
 
<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:commandref name="at">for a reference using the page number</cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 15:35, 5 September 2020


\atpage

Summary

The command \atpage is used for labelled page references.

Settings

\atpage[...]
[...]reference

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 \mainlanguage. Otherwise the text 'on a following page' is typeset.

The used labeltext entries are hencefore and hereafter for a reference on the same page, or followingpage for a different page.

Examples

Example 1

\setuppapersize[A8,landscape]
\starttext
\chapter[myRef1]{Chapter 1}

Chapter 1 (\atpage[myRef1]).

Chapter 2 (\atpage[myRef2]).

\page

\chapter[myRef2]{Chapter 2}
\stoptext

Example 2

\setuplabeltext[en][hencefore=on this page]

\chapter[myRef1]{Chapter 1}

Chapter 1 (\atpage[myRef1]).

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: