Open broulston opened 4 years ago
So I played around with the class file, and changed the \acknowledgements definition.
The original definition was as follows
%% begin...end form, not as good as \acknowledgments...\par
\newbox\ackbox
\def\xacknowledgments{\vskip 5.8mm plus 1mm minus 1mm
\vskip1sp
\section*{Acknowledgments}
\vskip4pt
\global\setbox\ackbox=\vbox\bgroup
}
\def\xendacknowledgments{\egroup
\ifanonymous
\centerline{(Acknowledgements anonymized for review)}
\else
\copy\ackbox\fi}
%% If anonymous option is used, a message instead of acknowledgments will appear.
\long\def\xacknowledgments\par#1\par{\vskip 5.8mm plus 1mm minus 1mm
\vskip1sp
\vbox{
\section*{Acknowledgments}
\ifanonymous
\centerline{(Acknowledgements anonymized for review)}
\else
\nobreak
\vtop{#1}\fi}\vskip6pt}
\long\def\yacknowledgments#1\par{\vskip 5.8mm plus 1mm minus 1mm
\vskip1sp
\vbox{
\section*{Acknowledgments}
\ifanonymous
\centerline{(Acknowledgements anonymized for review)}
\else
\nobreak
\vtop{#1}\fi}\vskip6pt}
\def\acknowledgments{\futurelet\next\checkforblankline}
\def\checkforblankline{\ifx\next\par \let\go\xacknowledgments \else
\let\go\yacknowledgments\fi\go}
Which i changed to
%% begin...end form, not as good as \acknowledgments...\par
\newbox\ackbox
\def\xacknowledgments{\vskip 5.8mm plus 1mm minus 1mm
\vskip1sp
\section*{Acknowledgments}
\vskip4pt
\global\setbox\ackbox=\vbox\bgroup
}
\def\xendacknowledgments{\egroup
\ifanonymous
\centerline{(Acknowledgements anonymized for review)}
\else
\copy\ackbox\fi}
%% If anonymous option is used, a message instead of acknowledgments will appear.
\long\def\xacknowledgments\par#1\par{\vskip 5.8mm plus 1mm minus 1mm
\vskip1sp
\vbox{
\section*{Acknowledgments}
\ifanonymous
\centerline{(Acknowledgements anonymized for review)}
\else
\nobreak
\vtop{#1}\fi}\vskip6pt}
\long\def\yacknowledgments\par#1\par{\vskip 5.8mm plus 1mm minus 1mm
\vskip1sp
\vbox{
\section*{Acknowledgments}
\ifanonymous
\centerline{(Acknowledgements anonymized for review)}
\else
\nobreak
\vtop{#1}\fi}\vskip6pt}
\def\acknowledgments{\futurelet\next\checkforblankline}
\def\checkforblankline{\ifx\next\par \let\xacknowledgments\ \else
\let\yacknowledgments\fi}
This seems to have worked and now \listofchnages works as it should. Not sure what the \go commands are for but removing them didn't seem to make anything else break but fixed the issues I was having.
Can you send me greg.schwarz@aas.org a copy of your latex file that produced the error? The \acknowledgement in v6.3 has some changes in it to accommodate the new "anonymous" style. I have never seen this behavior before and so I would like to see if there was something specific that triggered it. Our latex programmer is working on bug fixes to v6.3 now so I can also see if this problem will carry over to the changes she is making to acknowledgement.
When using \listofchanges at the end of a article, they changes show up but each change entry is split by an "Acknowledgements" section header. This seems to happen between the entry of what type of change was made and what was changed and the page number the change happened on.
I think it has something to do with the \acknowledgements command because if I comment out the Acknowledgements section, the \listofchnages shows up normal as expected.
This issue doesn't happen with v6.2