Latex brev masker

From ITSwiki
Jump to: navigation, search

Installation

Miktex users

Has been tested with version 2.9.

folder which has the doc and tex folder.

TeXLive/MacTeX on Mac OS X

Latex users on a stand-alone linux box

    TEXINPUTS=${TEXINPUTS}:${HOME}/dtuletter//

Latex users on hms1, gridterm, linuxterm

Masks has already been installed.

Usage

Copy a letter like the letter below, edit it and latex it with the command pdflatex.

\documentclass{dtuletter}
\usepackage[utf8]inputenc}                                                  
\usepackage[english]{babel}
%\usepackage[latin1]{inputenc}
%
% Statisk information, preample som bruges i alle breve
\dtuletterconfig{
     department = compute,
     author = {hench},
     DK-building=324,
     UK-building=324,
     DK-street=Richard Pedersens Plads,
     UK-street=Richard pedersens Plads,
     DK-zipcity=2800,
     UK-zipcity=2800,
     phone-direct = 45 45 30 02,
     email = hench@dtu.dk,
     webpage=http://people.compute.\-dtu.dk/hench, % http://people.compute.dtu.dk/hench is to long!
     fax=45 88 13 99,
     phone=45 25 30 31
}
%
% Information som er pr. brev                            
\dtuletterconfig{
     % stationery = true,     % Uncomment to print on preprinted letterhead 
     % lang = english,        % Uncomment if writing a letter in english
     % date = {21. maj, 2013},% Uncomment in order not to use \today   
       docID = {-},           % Uncomment a fill out if a documentID 
       TO-name = A/B Firmaet,
       TO-address = {Vester Farimagsgade 41},
       TO-zipcity = 1608 Købebenhavn V,
       TO-country = Denmark,
       TO-att = Navn Navnesen,
}
%
\begin{document}
\chapter*{Overskrift her}
% \section{test}                                                
%
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad  
minim veniam, quis nostrud exercitation ullamco laboris nisiut 
aliquip ex ea commodo consequat. Duis aute irure dolor in 
reprehenderit in voluptate velit esse cillum dolore eu fugiat 
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
%
%
Best regards,\\
Henning Christiansen
%
\end{document}

More documentation

See the folder doc -> dtudoc in the unpacked zipfile (or /appl/imm/lib/tex/dtuletter/doc on central servers)