Bug 467094 - Typeset using LaTeX option need to be disabled and enabled again every time
Summary: Typeset using LaTeX option need to be disabled and enabled again every time
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: maxima-backend (other bugs)
Version First Reported In: 22.12.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
: 492707 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-03-09 08:27 UTC by Stefano Crocco
Modified: 2024-11-11 07:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 24.05
Sentry Crash Report:


Attachments
Issue also present on Arch Linux (5.53 KB, text/plain)
2023-04-07 22:59 UTC, intrlocutr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Crocco 2023-03-09 08:27:26 UTC
I'm using the Maxima backend and I have LaTeX typesetting enabled in Cantor settings. In the Worksheet/Settings menu, the "Typeset using LaTeX" option is enabled. However, when I evaluate an entry, the result is not typeset using LaTeX. If I disable the "Typeset using LaTeX" option in the menu, then enable it again, LaTeX typesetting starts working and keeps going (for that worksheet) until I exit Cantor.

I'm not sure whether this issue is specific to the Maxima backend or not, since of all backends I have, only Maxima seems to support the "Typeset using LaTeX" options (the other backends are: Qalculate, KAlgebra and Lua)
Comment 1 intrlocutr 2023-04-07 22:59:44 UTC
Created attachment 157937 [details]
Issue also present on Arch Linux

I am additionally facing this issue on Arch Linux, with the same version of Cantor as the reporter and Maxima SBCL version 5.46.0. Attached is the output from running Cantor via a terminal with "Typeset using LaTeX" enabled in settings. No LaTeX output was generated.

As an aside, if "Typeset using LaTeX" is disabled in settings but then enabled per worksheet after starting Cantor, rendering works as expected.
Comment 2 Alexander Semke 2024-03-10 15:56:53 UTC
Git commit ae4a90cf2109e35f897895d4a6bdc9ca30de3a48 by Alexander Semke.
Committed on 10/03/2024 at 15:56.
Pushed by asemke into branch 'master'.

Properly initialize the setting for latex typesetting when creating a new session in a new worksheet.
FIXED-IN: 24.02.1

M  +48   -58   src/lib/session.cpp
M  +2    -0    src/worksheet.cpp

https://invent.kde.org/education/cantor/-/commit/ae4a90cf2109e35f897895d4a6bdc9ca30de3a48
Comment 3 Alexander Semke 2024-11-11 07:49:58 UTC
*** Bug 492707 has been marked as a duplicate of this bug. ***