Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When you encounter Latex Math issues in Confluence Server after updating to a new version, such as anchors not working or numbers not displaying, you might have an issue with the velocity templates. In order to resolve the issue, you need to update the The velocity templates (Math Block velocity template and Math Block Reference velocity template) for the Latex Math add-on need to be updated to resolve the problem.

Instructions

  1. Login Log in to Jira and , click on the Cogwheel icon in the top right corner of the screen , and select "Manage Apps" from the dropdown menu.

  2. Search or scroll down until you see "Latex Math," and click on it. Select "Latex Math Configuration".

  3. Scroll down until you see "Math Block velocity template" and "Math Block Reference velocity template", as shown below.

  4. To edit each of the blocks, click anywhere within the block. This will open the corresponding velocity template, which you can then compare with the templates provided below. If you notice any differences, replace the existing template with the new one.

...

Code Block
#*
Copyright (c) 2022 Appfire Technologies, LLC.
All rights reserved.

This software is licensed under the provisions of the "Appfire EULA"
(https://appfire.com/eula/) as well as under the provisions of
the "Standard EULA" from the "Atlassian Marketplace Terms of Use" as a "Marketplace Product"
(http://www.atlassian.com/licensing/marketplace/termsofuse).
See the LICENSE file for more details.
*#
#htmlSafe()
#macro(doNothing)#end
## Add colon to page name:
#if ($pageNameHtml && ($pageNameHtml.length()>0))
  #set ($pageNameHtml = $pageNameHtml+'<span class="latexmath-refpagejoiner">:</span>')
#end
##
<a href="$!{anchorURLHtml}" class="latexmath-mathblock-ref"$!{dataParamsHtml}>($!{pageNameHtml}$!{captionHtml})</a>#doNothing()

95. Make sure to save your changes after replacing the templates.

106. Try refreshing the Confluence page containing the Latex math macros to see if anchors and numbers display correctly.

Info
  • Perform the above steps in a staging environment before implementing them in production.

  • Ensure to have appropriate permissions to chnage change this settingssetting.