Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The autonum package apparently doesn't like me to declare math modes to be unnumbered, and prefers to do this on its own. Can't really tell if this is intended behavior and if so, why.

\documentclass{article}
\usepackage{amsmath}
\usepackage{autonum}
\begin{document}

\begin{align*}
x &= a+b
\end{align*}

\end{document}
share|improve this question
add comment

1 Answer 1

up vote 7 down vote accepted

The idea of the autonum package is to automatically number only those equations that you reference in the text. Therefore using unnumbered maths environments alongside autonum does not make sense. Page 1 of the documentation says 'never use the starred form'.

share|improve this answer
    
Hmm, I guess I should have read the manual. I was including some tex files which predated working with autonum and they used the starred versions pretty liberally. I didn;t think it would have bothered autonum. Thanks for your reply. My bad. –  fg nu Jul 19 '12 at 15:01
    
@FgNu, Ian Thompson is completely correct with his reasoning. When I switched to using autonum myself, I searched for starred math environments and replaced them by their unstarred version in my documents, as I optimized for consistency. I now see, that this reduces compatibility to old documents. Is there interest to have a package option deciding between consistency (starred versions forbidden) and compatibility (starred versions as without autonum)? –  Patrick Häcker Jul 19 '12 at 20:23
    
I think that actually should not be a problem. I can just put together a simple python script to go through my files and turn all starred environments into unstarred environments. –  fg nu Jul 20 '12 at 10:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.