Skip to content
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

getting Math Input Error #3311

Open
0xhex opened this issue Nov 25, 2024 · 3 comments
Open

getting Math Input Error #3311

0xhex opened this issue Nov 25, 2024 · 3 comments

Comments

@0xhex
Copy link

0xhex commented Nov 25, 2024

getting math input error on this html ,it looks like when there is currency symbols near the numbers

Screenshot 2024-11-25 at 23 05 15

for lines [
\text{Nettobetrag} = \text{3.388,50 €} - \text{67,77 €} = \text{3.320,73 €}
]

<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <title>Aufgabenlösungen: Rechnung und Skonto</title>
    <style>
        body {
            font-family: 'EurostileEF-Regular', sans-serif;
            font-size: 20px;
            line-height: 1.6;
            color: white;
            margin: 16px;
            background-color: #121212;
        }
        h2, h3 {
            font-family: 'EurostileEF-Black', sans-serif;
            color: #00FFC0;
            font-size: 20px;
            margin-top: 20px;
        }
        .important {
            color: #FF5733;
        }
        .emoji {
            font-size: 24px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            color: white;
        }
        th, td {
            border: 1px solid #444;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #1F1F1F;
        }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<body>

    <h2 class="emoji">📄 Aufgabenlösungen: Rechnung und Skonto</h2>

    <h3>🔢 Aufgabe 13: Berechnung des Nettobetrags nach Skonto</h3>
    <p>
        In dieser Aufgabe müssen wir den <span class="important">Nettobetrag</span> der Rechnung ermitteln, nachdem ein <span class="important">2% Skonto</span> bei frühzeitiger Zahlung gewährt wird.
    </p>
    <h4>📝 Gegebene Informationen:</h4>
    <ul>
        <li><strong>Bruttorechnungsbetrag:</strong> €3.388,50</li>
        <li><strong>Skontofrist:</strong> 15.04.2022</li>
        <li><strong>Skontosatz:</strong> 2%</li>
    </ul>

    <h4>📐 Berechnungsschritte:</h4>
    <ol>
  <li>Berechnung des Skontobetrags:
    \[
    \text{Skonto} = \text{3.388,50 €} \times \text{0,02} = \text{67,77 €}
    \]
  </li>
  <li>Ermittlung des Nettobetrags:
    \[
    \text{Nettobetrag} = \text{3.388,50 €} - \text{67,77 €} = \text{3.320,73 €}
    \]
  </li>
</ol>
    <p>
        💡 <strong>Ergebnis:</strong> Der zu zahlende Nettobetrag bei Zahlung innerhalb der Skontofrist beträgt <span class="important">€3.320,73</span>.
    </p>

    <h3>🔢 Aufgabe 14: Bestätigung der Skontoberechnung und Überweisungsbetrag</h3>
    <p>
        Diese Aufgabe verlangt die Bestätigung der in Aufgabe 13 durchgeführten Skontoberechnung und die Darstellung der Berechnungen in tabellarischer Form.
    </p>
    <h4>📝 Gegebene Informationen:</h4>
    <ul>
        <li><strong>Bruttorechnungsbetrag:</strong> €3.388,50</li>
        <li><strong>Skontosatz:</strong> 2%</li>
    </ul>

    <h4>📊 Berechnungen in Tabellenform:</h4>
    <table>
        <thead>
            <tr>
                <th>Beschreibung</th>
                <th>Berechnung</th>
                <th>Betrag (€)</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Bruttorechnungsbetrag</td>
                <td></td>
                <td>3.388,50</td>
            </tr>
            <tr>
                <td>Skonto (2%)</td>
                <td>3.388,50 × 0,02</td>
                <td>67,77</td>
            </tr>
            <tr>
                <td><strong>Nettobetrag</strong></td>
                <td>3.388,50 - 67,77</td>
                <td><strong>3.320,73</strong></td>
            </tr>
        </tbody>
    </table>

    <p>
        ✅ <strong>Bestätigung:</strong> Die Berechnung in Aufgabe 13 wurde korrekt durchgeführt. Der Überweisungsbetrag beträgt <span class="important">€3.320,73</span>.
    </p>

</body>
</html>




@dpvc
Copy link
Member

dpvc commented Nov 26, 2024

I'm not able to reproduce the issue. Your example HTML page above renders correctly for me. What browser and OS are you using? Are there any error messages in the browser's console window? If you hover over the "Math input error" for a few moments, do you get a tooltip with any more information? If you use the contextual menu over the input error, do you get the MathJax menu, and if so, what do you get if you use the "Show Math As -> MathML" menu item?

@FehNeves01
Copy link

am facing a similar issue. In my project, I use CKEditor with MathType for writing formulas and MathJax for rendering them on my webpage.

After updating all the dependencies in my project, the error message disappeared. However, now the formulas are rendered without any special characters, appearing only as plain strings.

Captura de Tela 2024-11-27 às 12 32 37

The image above shows CKEditor writing the formula.

Captura de Tela 2024-11-27 às 12 34 01

This other image shows how MathJax is rendering it

@dpvc
Copy link
Member

dpvc commented Nov 27, 2024

@FehNeves01, since your issue is no longer the same as the original post, you should start a separate issue for it, rather than attach it to an existing one.

You have not given enough information to diagnose the issue. For example, what is the LaTeX or MathML that was produced that you have added to your page? What is your MathJax configuration, and what version are you using? What browser and OS are you using? The two images are not sufficient to determine the cause of your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants