gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)
https://git.umaneti.net/latex-awesomebox/about/
Do What The F*ck You Want To Public License
52 stars 6 forks source link

Support Variable Icon Sizes #18

Closed dragonstyle closed 3 years ago

dragonstyle commented 3 years ago

Thanks for creating Awesomebox - it produces wonderful admonitions! Currently, the icon is always displaying using \Huge which looks good by default, but it would be very nice to be able to specify other sizes for the icon (.e.g. \large). Appreciate your work on this and your consideration for this feature request!

georgeraraujo commented 3 years ago

Try supplying the desired size directly into the icon argument of the \awesomebox command. The first example in subsection 5.1 changes from

\awesomebox{5pt}{\faCertificate}{magenta}{Lorem ipsum…}

to

\awesomebox{5pt}{\large{\faCertificate}}{magenta}{Lorem ipsum…}

Just tested and it works.

milouse commented 3 years ago

Thanks for your help @georgerbr

I think I can close this issue then.