Class MathjaxContentTransformer
java.lang.Object
org.eclipse.epsilon.picto.transformers.MathjaxContentTransformer
- All Implemented Interfaces:
ViewContentTransformer
- Since:
- 2.2
- Author:
- Sina Madani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransform(ViewContent content) protected static ExternalContentTransformationconvertTex(String tex, Path output) getLabel(ViewContent content) static PathConverts the TeX math to SVG file.static StringtexToRawSvg(String tex) Converts TeX math to SVG as String.transform(ViewContent content, PictoView pictoView)
-
Constructor Details
-
MathjaxContentTransformer
public MathjaxContentTransformer()
-
-
Method Details
-
canTransform
- Specified by:
canTransformin interfaceViewContentTransformer
-
getLabel
- Specified by:
getLabelin interfaceViewContentTransformer
-
transform
- Specified by:
transformin interfaceViewContentTransformer- Throws:
Exception
-
texToRawSvg
Converts TeX math to SVG as String.- Parameters:
tex- The tex- Returns:
- The SVG as string
- Throws:
IOException- If converison fails.- See Also:
-
tex2svg
Converts the TeX math to SVG file.- Parameters:
tex- The mathematics.- Returns:
- The path of the generated SVG.
- Throws:
IOException- If the conversion goes wrong.
-
convertTex
-