From: David K. <da...@gn...> - 2004-01-02 23:36:48
|
Jamie Kellogg <ke...@ge...> writes: > First, thanks so much for such a brilliant package. I've become > dependent on preview-latex. Anyway, I've been using the ucthesis > document class to put my thesis together (actually, huthesis, which > is a slightly bastardized version thereof), but it seems to have > broken preview-latex. Bingo. Another standard complaint of "My broken university/journal/whatever style that has been derived from an ancient broken LaTeX style many years ago refuses to work with preview-latex". FYI, it will also refuse to work with any package that redefines \@float and \end@float in order to change figure layout. preview-latex changes figure layout, too, by not typesetting figures regularly but squirreling them away. > The relevant section of the huthesis.cls file is: > \def\fps@figure{tbp} > \def\ftype@figure{1} > \def\ext@figure{lof} > \def\fnum@figure{\figurename~\thefigure} > \def\figure{\@float{figure}} > \let\endfigure\end@float See the problem? Now if preview-latex redefines \@float in order to catch floats, this will work perfectly redefining \figure's meaning. But the redefinition of \end@float will not make it to \endfigure that has kept a copy before. The last line needs to be \def\endfigure{\end@float} in order to work with styles changing float behavior. Please notify the class authors. Same for table, obviously. > \@namedef{figure*}{\@dblfloat{figure}} > \@namedef{endfigure*}{\end@dblfloat} Those are fine. Anyway, the current CVS version of preview-latex has a workaround that loudly complains and then redefines the faulty definitions. You would not believe into how many unmaintained styles this junk code has found its way. Again: it will not only break preview-latex. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum |