Justify mathematical texts - #337
Closed
ScriptRaccoon wants to merge 2 commits into
Closed
Conversation
Owner
Author
|
Actually I have just decided against this after looking at this paragraph (from
Arguably, most texts look better with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR implements justified text in property proofs (in popups), implication pages, descriptions, and content pages by using the CSS declaration
text-align: justify. Justified text is generally not recommended on the web for accessibility reasons (article on this matter), but it is more consistent with the usual layout of mathematical writing, such as in journals, on the arXiv, and on the nLab, and the negative effect of excessive spacing between words is mitigated by enabling hyphenation throughout the body. Headings are excluded from justification and hyphenation.Proofs in Minimized Popups
Before
After
Proofs in Expanded Popups
Before
After
Implications
Before
After
Content Pages
Before
After
Issues
Despite the hyphenation, some sentences still have excessively large spaces between words.
This seems to happen when the browser does not know how to hyphenate a technical term. In this case, one can use a soft hyphen: replacing
subterminalwithsub­terminalfixes the issue. However, this is not really scalable.We also still have the non-trivial issue of formulas being broken across lines (#135).
More generally, the text needs to remain readable at every viewport width. This is a significant difference from the layout of a classical paper.