GithubHelp home page GithubHelp logo

Line breaks not supported about swiftmath HOT 4 CLOSED

mgriebling avatar mgriebling commented on August 24, 2024
Line breaks not supported

from swiftmath.

Comments (4)

mgriebling avatar mgriebling commented on August 24, 2024 1

Math mode is always on. There's nothing to enable.

When in quotes, backslashes \ must be escaped so the "\\" should be "\\\\".
That's why all the commands appear to have double backslashes (in reality they're all being "escaped").

from swiftmath.

mgriebling avatar mgriebling commented on August 24, 2024

You can manually force line breaks using math mode commands (e.g., \\ as in \text{Quadratic roots: }x = \\ \frac{-b \pm \sqrt{b^2-4ac}}{2a} to give

Screenshot 2023-02-23 at 8 00 59 AM

from swiftmath.

Lu-TheCoder avatar Lu-TheCoder commented on August 24, 2024

How do I enable math mode?

Here's a screenshot of my MathView configuration

Screenshot 2023-09-12 at 14 23 09

Here's a screenshot of the Quadratic roots sample you provided used in my API

Screenshot 2023-09-12 at 14 23 46

However the result does not create a new line as illustrated by your example..

Screenshot 2023-09-12 at 14 24 05

Unless I am missing something or doing something incorrectly...

from swiftmath.

Lu-TheCoder avatar Lu-TheCoder commented on August 24, 2024

I managed to figure it out... instead of double slashes \\ which only creates a space in between for whatever reason
we need to use 4 slashes \\\\ to get a new line break.

Here's a gif of it in action:

new line break

from swiftmath.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.