Latex plugin's demonstration page
Since codeBeamer 20.11-LTS (Carmen)
Supported Latex Commands
The plugin renders the latex commands with MathJax 2.7.7.
The supported Latex commands are listed here:
https://docs.mathjax.org/en/v2.7-latest/tex.html#supported-latex-commands
Latex plugin's Syntax
You can use inline and display math modes and all supported latex commands.
[{Latex title='some text' width='500'
The well known Pythagorean theorem \(x^2 + y^2 = z^2\) was
proved to be invalid for other exponents.
Meaning the next equation has no integer solutions:
\[ x^n + y^n = z^n \]
}]
Document commands are not processed but accepted for backwards compatibility. Only the text in between \begin{document} ... \end{document} is getting processed.
[{Latex title='some text' width='500'
\documentclass{article}
\pagestyle{empty}
\begin{document}
The well known Pythagorean theorem \(x^2 + y^2 = z^2\) was
proved to be invalid for other exponents.
Meaning the next equation has no integer solutions:
\[ x^n + y^n = z^n \]
\end{document}
}]
Latex plugin's Parameters
Parameters:
- width='400' width is dynamic below 400px, but you can override 400px to get wider images.
- title='optional tooltip for the rendered image'
- cache='false' true/false parameter to turn cache on/off. Default is true.
- id='artifact Id which contains the formula or LaTeX text'. You can link a document with id from project's documents page.
- src='source URL or attachment name' Alternative location of the LaTeX text or formula.
- text='alternatively you can put the text here'. Not recommended, exists only for backwards compatibility.
Deprecated parameters (not processed):
- usePng='true' By default an PNG formatted image is rendered, but setting this to false will generate a GIF image.
- density='120' The DPI setting for the generated image
- timeout='30' Timeout in seconds to render the content.
Loading text from a file
You can upload a txt file to your project's Documents page and link it with its id to Latex plugin.
[{Latex id='12345'
}]