Testing whether a document has option "fleqn"

Herbert Voss Herbert.Voss at fu-berlin.de
Sat May 4 13:57:17 CEST 2019


Am 04.05.19 um 13:49 schrieb Hefferon, Jim S.:
> \AtBeginDocument{\newenvironment{display}{%
>    \@ifclasswith{fleqn}{%
>      \trivlist \item \relax \hspace*{\mathindent}
>      }{%
>      \trivlist \centering \item \relax
>      }
> }{%
>    \endtrivlist %
> }}
> 
> still gives me
> 
> ! LaTeX Error: Can be used only in preamble.

Jim,

can you provide a short complete example?

Best
Herbert


More information about the texhax mailing list