Giter Site home page Giter Site logo

line feeds in proofs about discrete-book HOT 3 CLOSED

oscarlevin avatar oscarlevin commented on May 20, 2024
line feeds in proofs

from discrete-book.

Comments (3)

davidfarmer avatar davidfarmer commented on May 20, 2024

Is this legal in MBX?

<title>Base Case:</title>Draw a tree with three vertices. Clearly you have only 2 edges (otherwise you would have a cycle)

from discrete-book.

oscarlevin avatar oscarlevin commented on May 20, 2024

I don't understand your second comment about legality, but I think I have an answer to your original question.

In the LaTeX code, I used the double backslash to create new lines purely for the sake of presentation (to avoid overful boxes, for example), and as a cheap way to create a list (without bullets, for example as I did in the answer to question 5 of section 5.5 (in the web version).

I don't use this primarily in proofs, although it is almost always in proofs, examples, exercises and answers. So really anything where I might need to display things not in regular sized paragraphs.

Perhaps the most reasonable approach to this would be to treat each occurrence as a paragraph break. So if it occurs inside a paragraph, then replacing the double backslash with </p> <p> should work. Outside of paragraphs (like inside a <li>) I don't really know what the best approach would be. Can you have paragraphs inside list items? If so, that would work, but it would require backtracking to the start of the line to add a <p> element, and then adding a </p> at the end of the line.

This does not take care of the instances where I put the backslashes to fix formating bugs, but those should be fairly rare and easy to spot and fix in the mbx code.

from discrete-book.

davidfarmer avatar davidfarmer commented on May 20, 2024

I will try replacing all double backslashes in text by double
line feeds. I should be able to do that after all the environments
are separated (so I know which blocks are math and can leave them
alone) but before I break into paragraphs.

MBX should (or does or will) have markup for "cases"
in a proof, which you will have to add by hand.

On Fri, 1 Jul 2016, Oscar Levin wrote:

I don't understand your second comment about legality, but I think I have an answer
to your original question.

In the LaTeX code, I used the double backslash to create new lines purely for the
sake of presentation (to avoid overful boxes, for example), and as a cheap way to
create a list (without bullets, for example as I did in the answer to question 5 of
section 5.5 (in the web version).

I don't use this primarily in proofs, although it is almost always in proofs,
examples, exercises and answers. So really anything where I might need to display
things not in regular sized paragraphs.

Perhaps the most reasonable approach to this would be to treat each occurrence as a
paragraph break. So if it occurs inside a paragraph, then replacing the double
backslash with

should work. Outside of paragraphs (like inside a

  • ) I
    don't really know what the best approach would be. Can you have paragraphs inside
    list items? If so, that would work, but it would require backtracking to the start
    of the line to add a

    element, and then adding a

    at the end of the line.

    This does not take care of the instances where I put the backslashes to fix
    formating bugs, but those should be fairly rare and easy to spot and fix in the mbx
    code.

    β€”
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or mute the
    thread.[AAM6LDVZ6qKNF_PMH_dAiweZdQTfMuTGks5qRX0egaJpZM4JDNX6.gif]

  • from discrete-book.

    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.