% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ % % texmf/tex/latex/bcn_letter.lco - Template for german scrlttr2 letters % % Copyright (C) 2014 Bijan Chokoufe Nejad % Recent versions: https://github.com/bijancn/bcn_scripts % % This source code is free software that comes with ABSOLUTELY NO WARRANTY; you % can redistribute it and/or modify it under the terms of the GNU GPL Version 2: % http://www.gnu.org/licenses/gpl-2.0-standalone.html % % ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ % % Eventually you have to `sudo texhash` or click % `MikTex Options -> Refresh FNDB, Update Formats` % % ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ProvidesFile{bcn_letter.lco}[2014/08/11 letter class option Bijan Chokoufe Nejad] % % You can change these for a unique look. % %\setkomafont{toname}{\bfseries} %\setkomafont{toaddress}{\sffamily} % % Some finetuning for the correct position of the address. % \@setplength{firstfootvpos}{\paperheight} \@addtoplength{firstfootvpos}{-30mm} %\@addtoplength[-1]{toaddrvpos}{20mm} %\@addtoplength[-1]{refvpos}{20mm} % % The footer. % \setkomavar{firstfoot}{% \rule{\textwidth}{0.4pt} \\ \centering \parbox[t]{.9\textwidth}{\footnotesize \begin{tabular}[t]{l@{}} \multicolumn{1} {@{}l@{}} {\usekomavar{fromname}}\\[.5em] \usekomavar{fromaddress} \end{tabular} \ifkomavarempty{fromurl}{}{ \begin{tabular}[t]{l@{}} \multicolumn{1}{@{}l@{}}{\usekomavar*{fromurl}}\\ \usekomavar{fromurl} \\[.5em] \multicolumn{1}{@{}l@{}}{\usekomavar*{fromfax}}\\\usekomavar{fromfax} \end{tabular} } % % Workaround for the cases where you don't want to share all information with % your correspondence (bank data and or phone/mail) and but still want a nice % footer. % \ifkomavarempty{fromphone}{}{ \hfill \begin{tabular}[t]{l@{}} \multicolumn{1}{@{}l@{}}{\usekomavar*{fromphone}} \\ \usekomavar{fromphone} \\[.5em] \multicolumn{1}{@{}l@{}}{\usekomavar*{fromemail}}\\\usekomavar{fromemail} \end{tabular} } \ifkomavarempty{frombank}{}{ \hfill \begin{tabular}[t]{l@{}} \multicolumn{1}{@{}l@{}}{ \usekomavar*{frombank}}\\[.5em] \usekomavar{frombank} \end{tabular} } } }