Class MathjaxContentTransformer
java.lang.Object
org.eclipse.epsilon.picto.transformers.MathjaxContentTransformer
- All Implemented Interfaces:
ViewContentTransformer
- Since:
- 2.2
- Author:
- Sina Madani
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canTransform
(ViewContent content) protected static ExternalContentTransformation
convertTex
(String tex, Path output) getLabel
(ViewContent content) static Path
Converts the TeX math to SVG file.static String
texToRawSvg
(String tex) Converts TeX math to SVG as String.transform
(ViewContent content, PictoView pictoView)
-
Constructor Details
-
MathjaxContentTransformer
public MathjaxContentTransformer()
-
-
Method Details
-
canTransform
- Specified by:
canTransform
in interfaceViewContentTransformer
-
getLabel
- Specified by:
getLabel
in interfaceViewContentTransformer
-
transform
- Specified by:
transform
in 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
-