Editing LaTex math block macro causes rest of document to disappear
Asked by Oscar Kramer:

I have a Confluence document with many LaTex math equations. Just now tried to edit a math block macro. When I save the macro edit, and return to the document (still in edit mode), all of the contents except the math block and the table of contents disappears. When I undo the change, the content reverts back.

This only happens when all the contents are inside a "Numbered Headings" block. When I remove the Numbered Headings (by cut \& paste into region outside the Numbered Headings block), then edit the math block, everything works normal.

Bottom line: editing LatTex math block inside Numbered Headings block has a bug.


Answers:
author: Zoriana Bogutska_Adaptavist_
body: Hi [@Oscar Kramer](/t5/user/viewprofilepage/user-id/5157577)

Can you share please a screenshot of what Latex macro you use, please?

comments: author: Siva Muppa [Appfire]
body: Hi [@Oscar Kramer](/t5/user/viewprofilepage/user-id/5157577) ,

Good day!

I am Muppa Siva from the Appfire Support team.

We have created an issue on your behalf to troubleshoot the issue further. Please feel free to signup to our support portal and share me your user ID so that I can add you to the support request and discuss further over the issue.

Signup Link: <https://appfire.atlassian.net/servicedesk/customer/portal/11>

<br />

Thanks,  
Muppa Siva


author: Oscar Kramer
body: I have to limit the extent of the screenshots because of proprietary content. First is the Numbered Headings block that contains all of the document body including LaTex Math blocks.

![Screenshot from 2023-05-12 09-10-05.png](https://community.atlassian.com/t5/image/serverpage/image-id/256923iF5654C35001FD091/image-size/large?v=v2&px=999 "Screenshot from 2023-05-12 09-10-05.png")

Next is an example Math Block. Recently I see (as shown here) that it is not rendering when in "Edit" mode. Here is a sample showing both box and inline math blocks not rendering:

<br />

![Screenshot from 2023-05-12 09-13-51.png](https://community.atlassian.com/t5/image/serverpage/image-id/256925iDD7BA748E7792414/image-size/large?v=v2&px=999 "Screenshot from 2023-05-12 09-13-51.png")

Note that there are a couple of "mathblock-ref" that do successfully render, as well as one "mathblock". I don't see why some work and some don't.

When I click on the "edit" pencil icon to edit the mathblock, I do see the properly rendered equation:

![Screenshot from 2023-05-12 09-18-06.png](https://community.atlassian.com/t5/image/serverpage/image-id/256928iF4FC3B3A188448D4/image-size/large?v=v2&px=999 "Screenshot from 2023-05-12 09-18-06.png")

Finally, if I edit the above math block (I added a comma after x_{i}) and hit save, it returns to the document, but the document has been cleared:

![Screenshot from 2023-05-12 09-21-10.png](https://community.atlassian.com/t5/image/serverpage/image-id/256931i9ACD6DD3C0F7C473/image-size/large?v=v2&px=999 "Screenshot from 2023-05-12 09-21-10.png")

Notice that the "Numbered Headings" block (with all the content) has been replaced by the math block -- and the math block (with the added comma) does render. If I move everything out of the Numbered Headings block, I don't see this bug.

I hope that helps.


author: Siva Muppa [Appfire]
body: Hi [@Oscar Kramer](/t5/user/viewprofilepage/user-id/5157577) ,

Good day!

Can you please login into our portal and share your user ID so I can add you to the support request? This will make it simpler for you to track the issue and collaborate with us more closely.

I am looking forward to your response!

Thanks,  
Muppa Siva


author: Oscar Kramer
body: I am logged in, and my username appears next to my post: "Oscar Kramer". I see 5217988 in the URL. Maybe that's the user ID? I don't see where to find it.


author: Siva Muppa [Appfire]
body: Hi [@Oscar Kramer](/t5/user/viewprofilepage/user-id/5157577) ,

I wanted to let you know that we have shared the ticket with you through our portal.

If you are unable to see it, please log in to our portal and check your account dashboard. In case you still can't locate it, please share a screenshot of your login page with us, so we can assist you further.

Thank you for your cooperation.

Regards,  
Muppa Siva


Tags: cloud

confluence-cloud

latexmath

numberedheadings