Latex brev masker
From ITSwiki
Contents
Installation
Miktex users
Has been tested with version 2.9.
- Download the templates from http://www.student.dtu.dk/~latex/downloads/templates/dtutemplates.zip and unzip them.
- Start the Miktex -> Maintenance -> Settings up. Go to Roots fan and add the toplevel directory of unpacked zip file (i.e. the
folder which has the doc and tex folder.
TeXLive/MacTeX on Mac OS X
- Download the templates from http://www.student.dtu.dk/~latex/downloads/templates/dtutemplates.zip
- Extract the dtulatex.zip to the directory �/Library/texmf. Note that this is the library folder in you home folder and that it is translated into the system language (Bibliotek in danish). However in the terminal you must use name Library.
Latex users on a stand-alone linux box
- Download the templates from http://www.student.dtu.dk/~latex/downloads/templates/dtutemplates.zip and unzip them.
- Add/edit your ~/.bashrc such that it has a line (assuming that the zipfile was unpacked i a directory ${HOME}/dtuletter:
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)