ischurov / qqmbr Goto Github PK
View Code? Open in Web Editor NEWMathematical layout for web and paper
Home Page: http://mathbook.info/qqmathpreview
License: MIT License
Mathematical layout for web and paper
Home Page: http://mathbook.info/qqmathpreview
License: MIT License
http://math-info.hse.ru/qqmathpreview says about a bad gateway (502).
It is probably better to open a modal preview of the image on click on its reference rather than scroll the page to that image. After preview is opened, there should be a way to scroll there (to see it in context).
It is probably good to highlight the referenced element on hover over the reference: if it's still on screen, no need to click to find the definition or statement of theorem, etc.
The following tests raise Exception
doc = r"""\blocktag Some \inlinetag[Hello \blocktag test]"""
parser = QqParser(allowed_tags={'inlinetag', 'blocktag'})
tree = parser.parse(doc)
and
doc = r"""Some \inlinetag[Hello \blocktag test
\blocktag another test]"""
parser = QqParser(allowed_tags={'inlinetag', 'blocktag'})
tree = parser.parse(doc)
Blocks #2 .
Add a button to close the bottom banner.
Implement simple qqDoc → LaTeX formatter.
Current book TOC and chapter navigation is a bit clumsy and easily discoverable. Probably, we have to put TOC on screen permanently (instead of this chapter TOC that is currently on the right?), and add left-right buttons like on gitbook?
This project, that powers ode book, is amazing. Can you please add more info on the README
page on how one can render a web page from a *.qq
file?
Sometimes when we have a MathJax equation followed by the punctuation near the end of the line, the punctuation is detached and moved to the next line, like it is shown on the screenshot.
It can be fixed by shifting punctuation into the MathJax equation, e.g. writing like $R,$
, but probably some better solution exists?
It should be possible to highlight a part of an image on hover over special kind of a reference. Something like this:
Let's consider \imref[fig12][point-x][point $x$].
Then on hover on text point $x$
, the corresponding point should be highlighted on figure fig12
.
Not clear what to do if fig12
is currently not visible. Probably, on mobile we should open it in a modal. Not sure about desktop.
Если зайти с iPad на calculus.mathbook.info и пролистать до Примера 3, то формулу для множества B мы не увидим:
Но если перевернуть планшет горизонтально, то нужная формула появится:
На странице в этом месте расположено два уравнения: long-eq
и splitted-eq
.
Если ширина экрана <= 768px, то на long-eq
вешается свойство display: none
.
Если ширина экрана >= 768px, то это свойство вешается на splitted-eq
.
qqmbr/qqmbr/templates/preview.html
Lines 365 to 381 in d6a1ff0
И так совпало, что у айпадов ширина экрана ровно 768px.
То есть display: none
вешается на обе версии уравнения и пользователю не показывается ничего.
@media screen and (max-width: 768px) {
.long-eq {
display: none;
}
}
@media not screen and (max-width: 768px) {
.splitted-eq {
display: none;
}
}
Отмечу, что следующее медиавыражение тогда должно оказаться ненужным:
qqmbr/qqmbr/templates/preview.html
Lines 371 to 375 in d6a1ff0
Можете также вдохновиться этим stackoverflow.com/questions/41449476/media-queries-running-weird-because-of-non-integer-width
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.