Giter Site home page Giter Site logo

susam / mathb Goto Github PK

View Code? Open in Web Editor NEW
304.0 11.0 23.0 365 KB

Share mathematics on the web with LaTeX and Markdown

Home Page: https://mathb.in/

License: MIT License

JavaScript 7.36% CSS 6.52% HTML 4.92% Makefile 11.78% TeX 0.23% Common Lisp 69.18%
pastebin latex markdown lisp mathjax texme commonlisp javascript mathematics

mathb's People

Contributors

0xflotus avatar charley-peng avatar susam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mathb's Issues

Toggle dark mode?

Thanks for this pastebin, that's super useful!

One question I had is, is there a way I can turn off dark mode?

Save and get URL not working

When I want to save some writings, an error occurs:

Post failed due to the following error:

Could not open /home/susam/www/mathb-content/59.txt for writing

This happens since two weeks ago and is still happening today, if I remember correctly. Seems like a server problem?

Behave nicely when printing the page and provide a print preview

Currently when printing the page, you get all the MathB.in header/footer as well as two columns, one with code and one with the math content.

I think it would be nice if only the math content were printed. In other words, if you could get something similar to what you would get if you ran LaTeX over the document and printed the result.

Rendering error without any plausible reason

The following text produce, on Save & Get URL, the following error message

ERROR: Improper code!

The text of the markdown is the following

### Review of
# Heat flow influence on the Cauchy stress tensor in a thermal wave
### by A.Y. Beliaev, L.A. Komar and A.L. Svistkov

In this manuscript the authors investigate, by mean of Rational Thermoelasticity, the possibility that internal energy density or entropy density depends on heat flux, but not both. For the heat flux is considered a costant relaxing time depending on the material. Moreover, the dependence of the Cauchy stress tensor on heat flux is considered.

1. First of all, I suppose that with the expression "mass density of the internal energy" the authors intend "density of the internal energy per unit mass". I suggest to use this second form that in my opinion is more correct. The same can be applied to the expression "mass density of the entropy".
2. this is the second point

In the tutorial, the text column shows doubled backslashes where only one should be.

The first paragraph of the tutorial explains how to input inline math. The input window shows the correct code but in the "text" output, backslashes are doubled. The problem persists throughout.

I've encountered this problem elsewhere, and it's lethal when trying to explain (La)TeX conventions. Unfortunately, I have no idea how to fix the problem, but unless it is fixed, someone trying to learn from this is likely to become confused unnecessarily.

Include numerical calculations

Hi, just and Idea

What about a notation to do numerical calculations

# How to add numbers

To add two numbers like $ a + b $ you just add them like $ 2 + 2 $ equals $@ 2 + 2 @$

It can also work with other numbers
@@
a = 2;
b = 3;
@@
$$
\begin{align}
a &= @a@ \\
b &= @b@ \\
a + b &= @a+b@
\end{align}
$$

https://mathb.in/75890

Everything in between @ and @@ would evaluate numerically. Even if it is also in between $

It would evaluate and be similar to

How to add numbers

To add two numbers like $a + b$ you just add them like $2 + 2$ equals $4$

It can also work with other numbers

$$\begin{align} a &= 2 \\ b &= 3 \\ a + b &= 5 \end{align}$$

I've been working on something similar just as a reference https://dvd101x.github.io/math-notepad/

Fatal error - Interface not found

I installed app including the thirdparty software and upon launching mathbin.php, I have got

Fatal error: Interface 'Michelf\MarkdownInterface' not found in /home/bok/WWW/mathb/thirdparty/php-markdown/Michelf/Markdown.php on line 20

By searching the term in Google, I have found out that this error comes up in many error logs. But I haven't found any solution. Where is the problem?

Code textarea should be larger and move when scrolling

When writing a long document, such as http://mathb.in/1, you can no longer see the bottom of the content as you write, because the textarea sits at the top of the page while the new content is previewed below the visible window area.

It would be much better if:

  1. The code textarea expanded to fill as much space as possible inside the window.
  2. The code form including the textarea moved with the window

That way, as you scrolled down a long page, the textarea would move with it and always be as large as possible (until reaching the top or bottom where it would need to be a bit shorter).

Option to save content as PDF

Not sure if this is possible, but it would be great to be able to download a PDF of the math content. Perhaps with a "download PDF" link?

I realise this would require a lot of work with jsPDF or similar, but it's a nice idea for the future.

Text area Resize

The text area for the code can be dragged outside of div#form (dragging right, ontop of the div#sheet/div#outputcode. Once it leaves it can never come back!

Error: improper code

  • Browser: Supermium 118 (Chromium based)
  • Text to paste:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eu sem placerat, dapibus massa eu, consectetur orci. Fusce ultrices blandit ante a ullamcorper. Phasellus pellentesque est sed ligula bibendum, ac lobortis enim sollicitudin. Nunc tincidunt leo in sapien tincidunt volutpat. Vestibulum metus lectus, rutrum non arcu a, molestie rhoncus metus. Etiam ornare dolor mauris, et scelerisque urna pharetra ac. Aenean feugiat porta nulla eu tristique. Aliquam sed elit auctor, dignissim neque hendrerit, finibus ipsum. Interdum et malesuada fames ac ante ipsum primis in faucibus.

  • Save and get URL
  • ERROR: Improper code!

Why?

I can't find the license

The end of the README says that there's a LICENSE.md somewhere, but I can't find one from the repo. The README also says "please visit <a link> to obtain a copy of the license", but the link brings me to a mathb.in page saying "This post does not exist."

Problem rendering part of demo page

http://mathb.in/1

At the bottom, for

When this is combined with \eqref{summation} we obtain \eqref{theorem}.

it returns

When this is combined with (???) we obtain (???).

My suspicion is something changed with MathJax and it was updated on the main site, but this line was overlooked or forgotten about or was like that, to begin with.

\textbf

In my opinion, it should not be required to surround \textbf by dollars symbols ($) in order to get the text formatted. Just to make it easier to copy and paste from my latex files.

Does not compile

$T^*_{ij} = \overline{T_{ji}}$ does not compile.

$T_{ij} = \overline{T_{ji}}$ does compile.

Support linear logic

It would be nice if mathbin supported the symbols for linear logic, provided by the package cmll. (Or let the user use \usepackage to load whatever package they want.)

EDIT: Hmm, seems like there's no straightforward way to do any of those things with MathJax. ๐Ÿ˜ž

My IP is blacklisted

I am very sorry, but my IP is blacklisted. Can I use the project? May be I created too many pages or something like this? I am a teacher and I use your resourse for my online classes. It was really helpful.
Yours, Yulia.

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.