|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.noad.StyleNoad
public final class StyleNoad
This Noad indicates a change in the style to be used for the further processing.
| Style | No. | Cramped | Sub | Sup | Num | Denom |
|---|---|---|---|---|---|---|
| display style | 0 | 1 | 5 | 4 | 2 | 3 |
| cramped display style | 1 | 1 | 5 | 5 | 3 | 3 |
| text style | 2 | 3 | 5 | 4 | 4 | 5 |
| cramped text style | 3 | 3 | 5 | 5 | 5 | 5 |
| script style | 4 | 5 | 7 | 6 | 6 | 7 |
| cramped script style | 5 | 5 | 7 | 7 | 7 | 7 |
| script script style | 6 | 7 | 7 | 6 | 6 | 7 |
| cramped script script style | 7 | 7 | 7 | 7 | 7 | 7 |
This mapping and the numbers therein are not visible directly. Instead symbolic constants and methods are provided.
The font parameter \textfont contains font to be used in math mode
for text style typesetting.
Three families are used for math typesetting. The family 0 contains the
characters for text. The family 1 contains the characters for the symbols.
The family 2 contains the extended characters.
The font parameter \scriptfont contains font to be used in math
mode for script style typesetting.
Three families are used for math typesetting. The family 0 contains the
characters for text. The family 1 contains the characters for the symbols.
The family 2 contains the extended characters.
The font parameter \scriptscriptfont contains font to be used in
math mode for script-script style typesetting.
Three families are used for math typesetting. The family 0 contains the
characters for text. The family 1 contains the characters for the symbols.
The family 2 contains the extended characters.
The Font Parameter \textfont
Syntax
The formal description of this primitive is the following:
〈textfont〉
→ \textfont 〈register name〉 〈equals〉 〈font〉
Examples
\font\fnt=cmsy12
\textfont0 =\fnt
The Font Parameter \scriptfont
Syntax
The formal description of this primitive is the following:
〈scriptfont〉
→ \scriptfont 〈register name〉 〈equals〉 〈font〉
Examples
\font\fnt=cmsy12
\scriptfont0 =\fnt
The Font Parameter \scriptscriptfont
Syntax
The formal description of this primitive is the following:
〈scriptscriptfont〉
→ \scriptscriptfont 〈register name〉 〈equals〉 〈font〉
Examples
\font\fnt=cmsy12
\scriptscriptfont0 =\fnt
| Field Summary | |
|---|---|
static StyleNoad |
DISPLAYSTYLE
The constant DISPLAYSTYLE contains the value for the display style. |
static StyleNoad |
SCRIPTSCRIPTSTYLE
The constant SCRIPTSCRIPTSTYLE contains the value for the scriptscript style. |
static StyleNoad |
SCRIPTSTYLE
The constant SCRIPTSTYLE contains the value for the script style. |
static StyleNoad |
TEXTSTYLE
The constant TEXTSTYLE contains the value for the text style. |
| Method Summary | |
|---|---|
StyleNoad |
cramped()
Get the cramped style for this one. |
StyleNoad |
denom()
Get the denominator style for this one. |
java.lang.String |
getFontName()
Getter for font name. |
MathSpacing |
getSpacingClass()
Getter for spacing class. |
java.lang.String |
getStyleName()
Getter for style. |
Noad |
getSubscript()
Getter for the subscript. |
Noad |
getSuperscript()
Getter for the superscript. |
boolean |
isCramped()
Test whether the current style is a cramped style. |
boolean |
less(StyleNoad other)
Ordering on the styles. |
StyleNoad |
num()
Get the numerator style for this one. |
protected java.lang.Object |
readResolve()
Return the singleton constant object after the serialized instance has been read back in. |
void |
setSpacingClass(MathSpacing spacingClass)
Setter for spacing class. |
void |
setSubscript(Noad subscript)
Setter for the subscript. |
void |
setSuperscript(Noad superscript)
Setter for the superscript. |
StyleNoad |
sub()
Get the sub style for this one. |
StyleNoad |
sup()
Get the sup style for this one. |
java.lang.String |
toString()
Get the string representation of this object for debugging purposes. |
void |
toString(java.lang.StringBuffer sb)
Produce a printable representation of the noad in a StringBuffer. |
void |
toString(java.lang.StringBuffer sb,
int depth)
Produce a printable representation to a certain depth of the noad. |
void |
typeset(Noad previousNoad,
NoadList noads,
int index,
NodeList list,
MathContext mathContext,
java.util.logging.Logger logger)
Translate a Noad into a NodeList. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final StyleNoad DISPLAYSTYLE
public static final StyleNoad SCRIPTSCRIPTSTYLE
public static final StyleNoad SCRIPTSTYLE
public static final StyleNoad TEXTSTYLE
| Method Detail |
|---|
public StyleNoad cramped()
public StyleNoad denom()
public java.lang.String getFontName()
public MathSpacing getSpacingClass()
getSpacingClass in interface NoadNoad.getSpacingClass()public java.lang.String getStyleName()
public Noad getSubscript()
getSubscript in interface NoadNoad.getSubscript()public Noad getSuperscript()
getSuperscript in interface NoadNoad.getSuperscript()public boolean isCramped()
true iff the current style is a cramped stylepublic boolean less(StyleNoad other)
other - the style to compare to
true iff the current style is less than the other
according to the list in the description of StyleNoad.public StyleNoad num()
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - neverpublic void setSpacingClass(MathSpacing spacingClass)
setSpacingClass in interface NoadspacingClass - the spacing class to setNoad.setSpacingClass(
org.extex.typesetter.type.noad.util.MathSpacing)public void setSubscript(Noad subscript)
setSubscript in interface Noadsubscript - the subscript to set.Noad.setSubscript(
org.extex.typesetter.type.noad.Noad)public void setSuperscript(Noad superscript)
setSuperscript in interface Noadsuperscript - the superscript to set.Noad.setSuperscript(
org.extex.typesetter.type.noad.Noad)public StyleNoad sub()
public StyleNoad sup()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void toString(java.lang.StringBuffer sb)
toString in interface Noadsb - the string bufferNoad.toString(
java.lang.StringBuffer)
public void toString(java.lang.StringBuffer sb,
int depth)
toString in interface Noadsb - the string bufferdepth - the depth to which the full information should be givenNoad.toString(
java.lang.StringBuffer, int)
public void typeset(Noad previousNoad,
NoadList noads,
int index,
NodeList list,
MathContext mathContext,
java.util.logging.Logger logger)
throws TypesetterException,
ConfigurationException
typeset in interface NoadpreviousNoad - the previous noadnoads - the list of noads currently processedindex - the index of the current node in the listlist - the list to add the nodes to. This list contains the Nodes
previously typeset. Thus it can be used to look backmathContext - the context to considerlogger - the logger for debugging and tracing information
TypesetterException - in case of a problem
ConfigurationException - in case of a configuration problemNoad.typeset(
org.extex.typesetter.type.noad.Noad,
org.extex.typesetter.type.noad.NoadList, int,
org.extex.typesetter.type.NodeList,
org.extex.typesetter.type.noad.util.MathContext,
java.util.logging.Logger)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||