AASJournals / AASTeX60

Version 6 of the LaTeX style files and documentation for authoring AAS Journal (AJ/ApJ) articles.
https://journals.aas.org/aastex-package-for-manuscript-preparation/
LaTeX Project Public License v1.3c
47 stars 25 forks source link

deluxetable vs siunitx #61

Open michaelaye opened 6 years ago

michaelaye commented 6 years ago

Here's a nut to crack:

AASTex "officially" recommends the deluxetable package, however it clashes with siunitx which is a wonderful package to write clean and consistent scientific-notation numbers without constantly having to drop down to math-mode in your otherwise prosaic text, which looks very cluttered and bug-rich.

Are there in the mean time maybe better alternatives to deluxetable? Is there an established pre-amble that avoids these clashes (tablenum is defined in both)? I found a workaround here using the savesym package, but wondered if there are no better, more integrated solutions available?

As a scientific-focused Latex environment, I think AASTeX should also officially recommend the siunitx package, but then it would create the aforementioned clashes, hence my GH issue to start a discussion about this.

augustfly commented 6 years ago

@michaelaye not sure what to say. deluxetable has an extreme momentum problem. kind of like bibtex. ;-)

we might consider this if we completely start over.

michaelaye commented 6 years ago

Consider what exactly? Not sure what you are suggesting?

Don't you think to have consistent scientific notation is worth the effort to investigate how the packages can be healthily combined? I understand the value of deluxetable, but was wondering if the other table packages have maybe now/these days not improved in ways that renders deluxetable obsolete? (Honest question, I don't know). For everyone to either write "20 $^\circ$C" all the time, or even looking up on how to write your own macro, it is just soo many human hours wasted compared to simply doing "\SI{20}{\celsius}, not even talking about readability.

But the problem is apparently one level lower, with deluxetable clashing with the package array that is being loaded by siunitx

augustfly commented 6 years ago

yeah, I understand, yet this will be labeled as a style discussion instead of bug to be fixed. if additional authors' opinions elevate this discussion then we can tag it for a more comprehensive solution, which would be in v6.3 at the earliest.

kadrlica commented 6 years ago

I vote to elevate this discussion. I just ran into this error trying to use aastex61 + siunitx:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "xparse/command-already-defined"
! 
! Command '\tablenum' already defined!
! 
! See the LaTeX3 documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
michaelaye commented 6 years ago

yeah, that is exactly the issue.

michaelaye commented 6 years ago

btw, i guess the repo really should be renamed to AASTEX ? ;)

augustfly commented 6 years ago

@gregschwarz you are tracking v6.2 -- revising deluxetable to deal with some of these issues is on/off the table?

gregschwarz commented 6 years ago

I have asked Amy to look into the siunitx and the other odd centering problem but she is currently on vacation. Hopefully there will be an easy fix when she gets back but I can't make any promises that these will be addressed before v6.2 is released

devonhollowood commented 6 years ago

Just ran into this issue today. Any updates now that v6.2 is out?

augustfly commented 4 years ago

We tried to manage this conflict with a work around added during v6.3 development. The documentation for this work around is here:

https://journals.aas.org/aastexguide/#conflicts

replies requested.