zestedesavoir / latex-template

LaTeX template used for PDF exports
MIT License
16 stars 19 forks source link

Ping command. #125

Closed Karnaj closed 4 years ago

Karnaj commented 4 years ago

Adds a command \ping.

pierre-24 commented 4 years ago

Shouldn't this command use the website variable (defined here) ? The answer actually depends how rebber renders it, though.

pierre-24 commented 4 years ago

(by the way, don't forget to add it in the documentation)

Karnaj commented 4 years ago

Shouldn't this command use the website variable (defined here) ? The answer actually depends how rebber renders it, though.

Maybe \ping{username}?

\newcommand{\profileLink}[1]{\def\@profileLink{#1}}
\ifcsdef{@profileLink}{}{\profileLink{https://zestedesavoir.com/membres/voir/}}

\newcommand{\ping}[1]{\href{@profileLink/#1}{\textbf{@#1}}}

Then Thanks to \ping{pierre\_24} => "Thanks to \@pierre_24".

@artragis @TitiAlone ?

artragis commented 4 years ago

We do not parse ping in latex.

pierre-24 commented 4 years ago

(I guess the idea is to add it)

pierre-24 commented 4 years ago

(don't forget the documentation :'( )

pierre-24 commented 4 years ago

Perfect :)