roaldarbol / LaPreprint-class

📝 A nicely formatted LaTeX preprint class
MIT License
0 stars 0 forks source link

Find alternative to `ifsym` package #5

Open roaldarbol opened 1 year ago

roaldarbol commented 1 year ago

Doesn't play nice with Tectonic (myst-templates/lapreprint#2), so would be good. Is also only used for the envelope, so try finding a different solution.

roaldarbol commented 1 year ago

@fperez Would the fontawesome5 package work with Tectonic? If you can give it a spin and let me know I could incorporate it as it's also got plenty other symbols and is the standard in lots of webdesign.

fperez commented 1 year ago

Hi @roaldarbol - I had a chance to test it, and fontawesome5 did work with tectonic!

The solid icons looked a little ugly to me, and in order to get the outlined ones I used the following:

\usepackage{fontawesome5}
\faStyle{regular}

There's syntax to specifically request outlined icons, but using \faEnvelope[regular] gave me a strange error I didn't have time to debug. So I reverted to simply using \faEnvelope (instead of \Letter) and setting the default style to regular as above.

So this seems to be a good option for you! I tested compiling a simple document with pdflatex, lualatex and tectonic, and it worked in all cases. Note that my test was a super trivial file, here for reference. But at least it uses the envelope symbol :)

Thanks for the great work!

roaldarbol commented 1 year ago

Hi @fperez! Thanks for testing it out! I'll do a quick test tomorrow and then make the switch.