I want to have all quotes in the quote
-environment in a smaller font. This is possible with the etoolbox
-package and the command:
\AtBeginEnvironment{quote}{\small}
But if I use a quote-environment in a footnote, the quotation is set to fontsize 'small' and therefore larger than the footnote-size. In the footnote I would like it better to have the same size as the footnote-text.
Is it possible to redefine the quote
-environment relative to the context?
Best Answer
It may be better to stick to a scaled version of the quote, regardless of the location of use (body text or footnote). In that regard, you were two letters and a package too short:
relsize
uses\smaller
to step the font down one size from the current font size. For scalable fonts at any size, also includelmodern
.Alternatively, conditional scaling is also possible for
quote
. The following assumes you're using a default document class (likearticle
,book
orreport
) or one that doesn't alter the footnote printing mechanise\@makefntext
:\if@in@footnote@
is set to true inside when creating the footnote, which is picked up inside thequote
environment. If true, then no font change occurs, otherwise it uses\small
.Under the KOMA-script classes, you could use