Skip to content

Commit

Permalink
Add conditional from* fields and automatic newline for long websites
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Nov 2, 2022
1 parent 67cd25f commit f787e4e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions inst/rmarkdown/templates/letter/resources/monashletter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,14 @@
$fromtitle$\\
Department of Econometrics \& Business Statistics\\
Monash University, Victoria 3800, Australia.\\[0.15cm]
\faicon{envelope} $fromemail$\quad\faicon{phone} $fromphone$\quad
\faicon{home} $fromWWW$\\[0.1cm]
$if(fromemail)$\faicon{envelope} $fromemail$\quad $endif$
$if(fromphone)$\faicon{phone} $fromphone$ $endif$
$if(fromWWW)$
\newlength{\wwwl}%
\settowidth{\wwwl}{$fromWWW$}%
\ifdim \the\wwwl>100pt \\[0.1cm] \else\quad\fi%
\faicon{home} $fromWWW$
$endif$\\[0.1cm]
ABN: 12 377 614 012\quad CRICOS Provider Number: 00008C
\end{tabular}}
\end{textblock}%
Expand Down

0 comments on commit f787e4e

Please sign in to comment.