Opened 12 years ago

Closed 12 years ago

#1838 closed enhancement (invalid)

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

Reported by: schilly Owned by: cwitty
Priority: trivial Milestone: sage-duplicate/invalid/wontfix
Component: misc Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

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 schilly 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 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 12 years ago by ncalexan

  • Summary changed from [with patch] comma in latex lists need a trailing space to [with patch, with preliminary review] comma in latex lists need a trailing space

comment:3 Changed 12 years ago by schilly

  • Milestone changed from sage-2.10.1 to sage-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 12 years ago by robertwb

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 12 years ago by mabshoff

  • Milestone changed from sage-wishlist to sage-2.10.1

comment:6 Changed 12 years ago by cwitty

  • Milestone changed from sage-2.10.1 to sage-duplicate/invalid
  • Resolution set to invalid
  • Status changed from new to closed

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.