Git Product home page Git Product logo

Comments (3)

talyssonoc avatar talyssonoc commented on May 25, 2024

@jacobw56 I use <div> for the BlockMath, that is meant to be used as a separate block, outside of <p> elements. If you intend to use it inside paragraphs you should use InlineMath, what do you think?

from react-katex.

jacobw56 avatar jacobw56 commented on May 25, 2024

I get the logic, I thought it would be common to use blocks inside paragraphs when doing proofs and such. For instance I imagined doing something like:

<p>
    Let <InlineMath>f_n</InlineMath> be a sequence of <InlineMath>\mathbb{R}</InlineMath>-valued measurable functions on a measure space <InlineMath>(S, \sigma, \mu)</InlineMath>. Suppose that the sequence converges pointwise to a function <InlineMath>f</InlineMath> and is dominated by some integrable function <InlineMath>g</InlineMath> in the sense that <BlockMath>|f_n(x)| \leq g(x)</BlockMath> for all numbers <InlineMath>n</InlineMath> in the index set of the sequence and all points <InlineMath>x \in S</InlineMath>. Then <InlineMath>f</InlineMath> is integrable and <BlockMath>\lim_{n\to\infty}\int_S |f_n - f| d\mu = 0.</BlockMath>
</p>

since this allows me to pretty much just search and replace the $ and $$ tags in my latex documents. If this isn't the typical pattern of usage then feel free to close the issue. Thanks!

from react-katex.

talyssonoc avatar talyssonoc commented on May 25, 2024

Oh, I see! Yeah, the pattern for those cases is just to have a separate block since it's the HTML-way. Gonna close the issue then.

from react-katex.

Related Issues (20)

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.