For some small macros I'm writing I would need to change the font size relative to the font size of the text that surrounds to macro later on.
I only know how to change the font size for the whole document (documentclass/fontspec), or for some text, but only relative to the default font size for the document (\Large
, \small)
.
What I was thinking of was something like:
\newcommand*\mycommand{\smaller ipsum}
\Large lorem \mycommand
\small lorem \mycommand
If I use \Large
, \small
etc in the command itself, it will not care about the font size of the surrounding text but set the font size relative to the default font size. I would want it to be e.g. 1.2 times smaller than \Large
or \small
, depending on where it is used.