Difference between revisions of "Latex brev masker"

From ITSwiki
Jump to: navigation, search
[quality revision][quality revision]
(Usage)
(Usage)
Line 24: Line 24:
 
Copy a letter like the letter below, edit it and latex it with the command '''pdflatex'''.
 
Copy a letter like the letter below, edit it and latex it with the command '''pdflatex'''.
 
  \documentclass{dtuletter}
 
  \documentclass{dtuletter}
  %\usepackage[utf8]inputenc}                                                   
+
  \usepackage[utf8]inputenc}                                                   
 
  \usepackage[english]{babel}
 
  \usepackage[english]{babel}
  \usepackage[latin1]{inputenc}
+
  %\usepackage[latin1]{inputenc}
 
  %
 
  %
 
  % Statisk information, preample som bruges i alle breve
 
  % Statisk information, preample som bruges i alle breve
Line 40: Line 40:
 
       phone-direct = 45 45 30 02,
 
       phone-direct = 45 45 30 02,
 
       email = hench@dtu.dk,
 
       email = hench@dtu.dk,
       webpage=compute.dtu.dk/\~{}hench, % www.compute.dtu.dk/\~{}hench is to long!
+
       webpage=http://people.compute.\-dtu.dk/hench, % http://people.compute.dtu.dk/hench is to long!
 
       fax=45 88 13 99,
 
       fax=45 88 13 99,
 
       phone=45 25 30 31
 
       phone=45 25 30 31

Revision as of 19:24, 6 August 2019

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 (but not sunfire, sunray4-5)

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)