|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.noad.util.MathContext
public class MathContext
This class provides a container for the information on the current mathematical appearance.
| Constructor Summary | |
|---|---|
MathContext(StyleNoad style,
TypesetterOptions context)
Creates a new object. |
|
| Method Summary | |
|---|---|
Dimen |
convert(Mudimen mudimen)
Convert a mudimen into a dimen. |
Glue |
convert(Muskip muglue)
Convert a muglue into a glue. |
TypesetterOptions |
getOptions()
Getter for the options. |
StyleNoad |
getStyle()
Getter for style. |
FixedDimen |
mathParameter(MathFontParameter p)
Extract a font dimen from an appropriate font. |
FixedDimen |
mathParameter(MathFontParameter p,
StyleNoad actualStyle)
Retrieve a font parameter from either a symbol font or an extension font. |
void |
setStyle(StyleNoad style)
Setter for style. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MathContext(StyleNoad style,
TypesetterOptions context)
style - the new stylecontext - the typesetter context| Method Detail |
|---|
public FixedDimen mathParameter(MathFontParameter p)
throws TypesetterException
p - the parameter to extract
TypesetterException - in case of an error. The exception will have
a cause exception in it containing a HelpingException
public FixedDimen mathParameter(MathFontParameter p,
StyleNoad actualStyle)
throws TypesetterException
p - the parameter to extractactualStyle - the actual style to be used instead of the current
style
TypesetterException - in case of an error. The exception will have
a cause exception in it containing a HelpingException
public Dimen convert(Mudimen mudimen)
throws TypesetterException
From The TeXbook:
There are 18 mu to an em, where the em is taken from family 2 (the math symbols family). In other words, \textfont 2 defines the em value for mu in display and text styles; \scriptfont 2 defines the em for script size material; and \scriptscriptfont 2 defines it for scriptscript size.
mudimen - the math dimen to convert
TypesetterException - in case of an error
public Glue convert(Muskip muglue)
throws TypesetterException
There are 18 mu to an em, where the em is taken from family~2 (the math symbols family). In other words, ^|\textfont|~|2| defines the em value for |mu| in display and text styles; ^|\scriptfont|~|2| defines the em for script size material; and ^|\scriptscriptfont|~|2| defines it for scriptscript size.
muglue - the math glue to convert
TypesetterException - in case of an errorpublic TypesetterOptions getOptions()
public StyleNoad getStyle()
public void setStyle(StyleNoad style)
style - the style to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||