Opened 15 years ago

Closed 15 years ago

#1838 closed enhancement (invalid)

[with patch, with preliminary review] comma in latex lists need a trailing space

Reported by: Harald Schilly Owned by: Carl Witty
Priority: trivial Milestone: sage-duplicate/invalid/wontfix
Component: misc Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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

Attachments (1)

latex-lists-and-tables-with-a-space-after-the-comma.diff (818 bytes) - added by Harald Schilly 15 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by ncalexan

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.

comment:2 Changed 15 years ago by ncalexan

Summary: [with patch] comma in latex lists need a trailing space[with patch, with preliminary review] comma in latex lists need a trailing space

comment:3 Changed 15 years ago by Harald Schilly

Milestone: sage-2.10.1sage-wishlist

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.

comment:4 Changed 15 years ago by Robert Bradshaw

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.

comment:5 Changed 15 years ago by Michael Abshoff

Milestone: sage-wishlistsage-2.10.1

comment:6 Changed 15 years ago by Carl Witty

Milestone: sage-2.10.1sage-duplicate/invalid
Resolution: invalid
Status: newclosed

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).

Note: See TracTickets for help on using tickets.