Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non breaking spaces before citations #106

Open
domoritz opened this issue Oct 16, 2024 · 3 comments
Open

Non breaking spaces before citations #106

domoritz opened this issue Oct 16, 2024 · 3 comments

Comments

@domoritz
Copy link
Member

It would be great if living papers could render non breaking spaces before citations to get a smoother reading flow and avoid this:

Screenshot 2024-10-15 at 20 29 36

In latex, it would compile to ~.

@jheer
Copy link
Member

jheer commented Oct 16, 2024

Yes that would be nice. The design question here is what should the syntax be? For HTML it is   which is not the nicest but would work. We don’t want to use ~ as we want to preserve straightforward use of tilde as a character. Any other ideas?

@jheer
Copy link
Member

jheer commented Oct 16, 2024

We could try to do this automatically before citations but I’m not sure that’s something one always wants to do, especially across varied citation styles.

@domoritz
Copy link
Member Author

What are cases where you don't want it? Long citation styles?

As a simple step, you could support the   (non breaking space char, option + space) and convert it to ~ in latex (or maybe panda does that already). The bad thing is that it's pretty much indistinguishable from a normal space in the markdown. I can't think of a good symbol for non breaking spaces. Typst also uses ~.

Another odd thing I found were breaking spaces in Figure X references but that's probably an easier fix.

Screenshot 2024-10-15 at 23 32 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants