LaTeX Plugin
This page demonstrates the LaTeX Plugin syntax and parameters used in codebeamer.
Since codebeamer release 20.11-LTS (CARMEN).
Supported LaTeX Commands
The plugin renders the LaTeX commands with MathJax 2.7.7.For the supported LaTeX commands, see https://docs.mathjax.org/en/v2.7-latest/tex.html#supported-latex-commands
.
LaTeX Plugin Syntax
Inline and display math modes can be used, and both support 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 in-between text \begin{document} ... \end{document}}} is 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 Parameters
Parameters:
- width='400' - The width is dynamic below 400 px, however, it can be exceeded to get wider images
- title='optional tooltip for the rendered image' - Title of the rendered image
- cache='false' - True or false parameter to turn cache on or off. The default value is true
- id='artifact Id which contains the formula or LaTeX text' - Documents can be linked with ids from the Documents page of the relevant project
- 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, a PNG formatted image is rendered. The default value is true. Changing this setting to false generates 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
Files in .txt format can be uploaded to the Documents page of the relevant project and linked with their ids to the LaTeX plugin.
[{Latex id='12345'
}]