-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem Statement in Text Exercises not getting displayed properly #9110
Comments
Additional context: The formatting is fine when viewed from instructor view (https://artemis.ase.in.tum.de/course-management/351/exams/772/exercise-groups/3174/text-exercises/14267) and also seems to be fine in the summary view students get after the exam. For us (FPV team), this is not really a high priority issue though. For the actual exam, we may just replace such complicated LaTeX elements with screenshots, which do not suffer from this problem. |
@michael-schwarz could you please send us a raw problem statement so that we could reproduce the issue? |
@just-max could you export the task from the mock exam and upload it here? |
Tipp for your upcoming exercises: During exam creation, instructors can create an exam test run. This will then show you how the exercises look from the perspective of a student and can hopefully can help you catching such issues before the exam. |
We usually do, but I didn't think to do it for the test exam, since we had used exactly these exercises before. Definitely will for the real exam, thanks for the reminder! Here is a minimal broken example for an exercise description that exhibits this issue @coolchock . The problem seems to come from KaTeX
Here is the original problem statement of the exercise :
In the real exam we would not use such wide KaTeX expressions. By diffing the rendered HTML in the preview vs. in the test run, we can see the issue: -<!-- rendered HTML from the exercise preview -->
+<!-- rendered HTML from the test run -->
<span aria-hidden="true" class="katex-html">
<span class="base">
- <span style="height: 2.00744em; vertical-align: -0.686em;" class="strut"></span>
+ <span class="strut"></span>
<span class="mord">
<span class="mopen nulldelimiter"></span>
<span class="mfrac">
<span class="vlist-t vlist-t2">
<span class="vlist-r">
- <span style="height: 1.32144em;" class="vlist">
- <span style="top: -2.314em;">
- <span style="height: 3em;" class="pstrut"></span><span class="mord"><span class="mord">1</span><span class="mord">0</span></span>
+ <span class="vlist">
+ <span>
+ <span class="pstrut"></span><span class="mord"><span class="mord">1</span><span class="mord">0</span></span>
</span>
- <span style="top: -3.23em;"><span style="height: 3em;" class="pstrut"></span><span style="border-bottom-width: 0.04em;" class="frac-line"></span></span>
- <span style="top: -3.677em;">
- <span style="height: 3em;" class="pstrut"></span><span class="mord"><span class="mord">9</span></span>
+ <span><span class="pstrut"></span><span class="frac-line"></span></span>
+ <span>
+ <span class="pstrut"></span><span class="mord"><span class="mord">9</span></span>
</span>
</span>
<span class="vlist-s"></span>
</span>
<span class="vlist-r">
- <span style="height: 0.686em;" class="vlist"><span></span></span>
+ <span class="vlist"><span></span></span>
</span>
</span>
</span>
The real exam mode apparently strips inline Possibly related to #8461 ? |
Is there any progress on this issue, or any idea where we can look to fix it ourselves? This affects basically all KaTeX used in exam mode, like subscripts, exponents, and fractions. |
For now, we are replacing the KaTeX elements with screenshots as a workaround, which works for us. |
Describe the bug
The problem statement in text exercises (especially in the exam mode) does not get displayed properly. Its especially bad for formulas.
Screen.Recording.2024-07-24.at.14.10.18.mov
To Reproduce
Expected behavior
The formula is displayed in the next line and not stretched to the right
Screenshots
No response
Which version of Artemis are you seeing the problem on?
7.4.4
What browsers are you seeing the problem on?
Chrome
Additional context
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: