liantze / AltaCV

Yet another alternative curriculum vitae/résumé class with LaTeX
Other
1.26k stars 329 forks source link

Add a command for adding Mastodon field #75

Closed Huy-Ngo closed 3 years ago

Huy-Ngo commented 3 years ago

I'd like to add a command for Mastodon, a federated alternative for Twitter.

On Mastodon, usernames is written as @username@instance.name and the URl to a profile is https://instance.url/@username. Because of this, the existing command \NewInfoField cannot fully display these information.

moritzheiber commented 3 years ago

This is fantastic, I was just looking for it. Would love to see this merged!

liantze commented 3 years ago

You can use \printinfo directly e.g.

\printinfo{\faMastodon}{@username@instace}[https://instance.url/@username]

But if you absolutely want to create new dedicated info fields for such platforms, then with altacv.cls v1.6 you can now use \NewInfoField* with a star:

\NewInfoField*{mastodon}{\faMastodon}

then you can use \mastodon with TWO arguments where the 2nd argument is the full hyperlink.

\mastodon{@username@instance}{https://instance.url/@username}