You are not logged in. Click here to log in.

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  not added yet

Latex plugin's demonstration page

Since 20.11-SP2

There is an Application Configuration option to control the font size globally for the Math and Latex plugin also.
The default font size is 12px, which could produce too small text when codeBeamer is running on Windows.
Minimum value for defaultFontSizePx is 12.
Individual font size settings on the plugin markup level will override the global setting. You can go below 12px with it.

"latexPlugin" : {
    "defaultFontSizePx" : 24
}

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 \]
}]


The well known Pythagorean theorem \(x^2   y^2 = z^2\) was proved to be invalid for other exponen...



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}
}]


The well known Pythagorean theorem \(x^2   y^2 = z^2\) was proved to be invalid for other exponen...


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'

}]