Difference between revisions of "Command/atpage"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \atpage")
 
Line 16: Line 16:
 
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 on the same page, or <code>page</code> for a different page.</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<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[myRef1]{Chapter 1}
  
 
Chapter 1 (\atpage[myRef1]).
 
Chapter 1 (\atpage[myRef1]).
 
Chapter 2 (\atpage[myRef2]).
 
Chapter 2 (\atpage[myRef2]).
 
\page[yes]
 
  
 
\chapter[myRef2]{Chapter 2}
 
\chapter[myRef2]{Chapter 2}

Revision as of 15:31, 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 word 'page' and the page number of the reference is typeset.

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

Examples

Example 1

\chapter[myRef1]{Chapter 1}

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

\chapter[myRef2]{Chapter 2}

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: