|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.type.AbstractCode
org.extex.unit.tex.typesetter.box.AbstractBoxPrimitive
org.extex.unit.tex.typesetter.box.Vbox
public class Vbox
This class provides an implementation for the primitive
The primitive \vbox constructs a box of vertical material. Any
boxes added to the vertical box are put below the boxes already contained.
The reference point of the last box contained is used for the whole vertical
box. The height may be adjusted if requested.
The contents of the toks register \everyvbox is inserted at the
beginning of the vertical material of the box.
The tokens parameter is used in \vbox. The tokens contained are
inserted at the beginning of the vertical material of the vbox.
\vbox.
The Primitive \vbox
Syntax
The formal description of this primitive is the following:
〈vbox〉
→ \vbox 〈box specification〉 { 〈vertical material〉 }
〈box specification〉
→
| to 〈rule dimension〉
| spread 〈rule dimension〉
Examples
\vbox{abc}
\vbox to 120pt{abc}
\vbox spread 12pt{abc}
The Tokens Parameter \everyvbox
Syntax
The formal description of this primitive is the following:
〈everyvbox〉
→ \everyvbox 〈equals〉 〈tokens〉
Examples
\everyvbox{\message{Hi there}}
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
Vbox(CodeToken token)
Creates a new object. |
|
| Method Summary | |
|---|---|
protected Box |
acquireBox(Context context,
TokenSource source,
Typesetter typesetter,
GroupType groupType,
Token startToken,
Token ins)
Acquire a complete Box taking into account the tokens in \afterassignment and \everyvbox. |
protected Box |
constructBox(Context context,
TokenSource source,
Typesetter typesetter,
Token startToken,
Token insert)
Acquire a Box and adjust its height and depth according to the rules required. |
Box |
getBox(Context context,
TokenSource source,
Typesetter typesetter,
Token insert)
Getter for the content as Box. |
| Methods inherited from class org.extex.unit.tex.typesetter.box.AbstractBoxPrimitive |
|---|
execute |
| 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
| Constructor Detail |
|---|
public Vbox(CodeToken token)
token - the initial token for the primitive| Method Detail |
|---|
public Box getBox(Context context,
TokenSource source,
Typesetter typesetter,
Token insert)
throws HelpingException,
TypesetterException
context - the interpreter contextsource - the source for new tokenstypesetter - the typesetter to useinsert - the token to insert either at the beginning of the box or
after the box has been gathered. If it is null then
nothing is inserted
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterBoxPrimitive.getBox(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter,
org.extex.scanner.type.token.Token)
protected Box constructBox(Context context,
TokenSource source,
Typesetter typesetter,
Token startToken,
Token insert)
throws HelpingException,
TypesetterException
For a \vbox the alignment takes the last box contained and uses its reference point. The depth is preserved and the height is adjusted if required.
context - the interpreter contextsource - the source for new tokenstypesetter - the typesetterstartToken - the token which started the groupinsert - the token to insert at the beginning or null
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
protected Box acquireBox(Context context,
TokenSource source,
Typesetter typesetter,
GroupType groupType,
Token startToken,
Token ins)
throws HelpingException,
TypesetterException
context - the interpreter contextsource - the source for new tokenstypesetter - the typesettergroupType - the group typestartToken - the token which started the groupins - the token to insert at te beginning
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||