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

[with preliminary review] comma in latex lists need a trailing space #1838

Closed
haraldschilly opened this issue Jan 18, 2008 · 5 comments
Closed

Comments

@haraldschilly
Copy link
Member

normally, after writing a "," follows a space. latex needs this explicitly as ","

Component: misc

Issue created by migration from https://trac.sagemath.org/ticket/1838

@haraldschilly
Copy link
Member Author

@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Jan 22, 2008

comment:1

This seems strange -- I never use explicit spaces (",") in latex, preferring the system to do the layout as it sees best. Is this really necessary?

Also, I can't believe this doesn't touch lots of doctests throughout the system. It also has no doctests.

@ncalexan ncalexan mannequin changed the title comma in latex lists need a trailing space [with preliminary review] comma in latex lists need a trailing space Jan 22, 2008
@haraldschilly
Copy link
Member Author

comment:3

well, i just thought this could be an easy fix without dependencies. i don't know where the doctests for latex expressions are, i have to look at them.

latex doesn't do it the right way. it just does what it is told to do but has no intelligence and white space is ignored inside formulas. that's why packages like amsmath redefine a lot, or introduce new commands for rather normal things (dots, triple integrals, ...). they all do a lot of "intelligent" white space management. an also well known example are matrices, where it defines the pmatrix environment. there all the spacings are corrected with negative spaces. or you need a ";" after the inner part before the "dx" when you type an integral.

so, you have to do something but it's not crucial. trusting latex doesn't do the job.

@haraldschilly haraldschilly removed this from the sage-2.10.1 milestone Jan 22, 2008
@robertwb
Copy link
Contributor

comment:4

I don't think the "right way" is well defined--without the explicit space there is a bit more space after a comma than before, but just barely, and I think it looks fine.

Unless things look really bad, I think we should error on the side of producing the cleanest, simplest latex--as something to avoid just look at the state of auto-generated HTML that tries to be faithful to a given WYSIWYG editor.

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-2.10.1 milestone Jan 23, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin removed the wishlist item label Jan 23, 2008
@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Jan 29, 2008

comment:6

I don't think we want this patch at all. While LaTeX does sometimes need some help with spacing, I've never heard of this being one of the problem cases. Since Nick, Robert, and I agree (I think), I'm closing this bug as invalid for now.

Feel free to reopen it if you get some more support for your position (like an example that looks a lot better with the spacing than without, or a style guide that requires the spacing).

@sagetrac-cwitty sagetrac-cwitty mannequin closed this as completed Jan 29, 2008
@sagetrac-cwitty sagetrac-cwitty mannequin removed this from the sage-2.10.1 milestone Jan 29, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants