Class Firstmarks

  extended by org.extex.interpreter.type.AbstractCode
      extended by org.extex.unit.tex.typesetter.mark.AbstractMarksCode
          extended by org.extex.unit.tex.typesetter.mark.Firstmarks
All Implemented Interfaces:, Code, ExpandableCode, TokensConvertible
Direct Known Subclasses:

public class Firstmarks
extends AbstractMarksCode

This class provides an implementation for the primitive \firstmarks.

The Primitive \firstmarks

The primitive \firstmarks expands to the first mark on the current page of the given class. If no mark has been encountered on the current page then it expands to the last mark on the previous page. If no mark has been placed ever then the primitive expands to the empty token list.

See the documentation of the primitive \marks for further explanation of marks.


The formal description of this primitive is the following:
      → \firstmarks ⟨mark name⟩  



$Revision:4431 $
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
Constructor Summary
Firstmarks(CodeToken token)
          Creates a new object.
Method Summary
protected  Tokens getValue(Context context, java.lang.String key)
          Get the value for this mark.
Methods inherited from class org.extex.unit.tex.typesetter.mark.AbstractMarksCode
convertTokens, execute, expand, getKey
Methods inherited from class org.extex.interpreter.type.AbstractCode
getLocalizer, getName, getToken, isIf, isOuter, readResolve, toString, toText, toText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail


public Firstmarks(CodeToken token)
Creates a new object.

token - the initial token for the primitive
Method Detail


protected Tokens getValue(Context context,
                          java.lang.String key)
Get the value for this mark.

Specified by:
getValue in class AbstractMarksCode
context - the interpreter context
key - the key
the value
See Also:
AbstractMarksCode.getValue( org.extex.interpreter.context.Context, java.lang.String)