• No results found

The TOPletter class ∗

N/A
N/A
Protected

Academic year: 2021

Share "The TOPletter class ∗"

Copied!
4
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The TOPletter class

Marco Torchiano marco.torchiano@polito.it

July 10, 2018

1 Introduction

The TOPletter class provides the basic functions needed for typesetting a letter using LaTeX and conforming to the official Corporate Image guidelines for Po- litecnico di Torino

1

. The class can be used for letters written both in Italian and in English languages.

2 Usage

The usage of the document class is extremely straightforward:

• the TOPletter document class must be declared as the base for the document.

i.e. using \documentclass{TOPletterA}.

• the customization macros must be used to define the details of the letter, i.e. organization details, personal information, and letter subject.

• the body of the letter can be written as a regular L

A

TEXdocument.

An example of a document using the TOPletter class is provided in section 3 below.

2.1 Organizational Unit

The name of the department can be specified using the \dipartimentoDi{hdepartment

\dipartimentoDi

namei} macro.

By default the organizational unit is a department, but it is possible to set the

\struttura

type of the organizational unit using \struttura{hstructure typei} macro.

2.2 Personal Info

\nome{hname and surnamei} Defines the name of the person, it should include

\nome

This document corresponds to TOPLetter v0.3.0, dated 2018/07/10.

1 http://www.politocomunica.polito.it/corporate_image/marchio_e_identita_visiva

1

(2)

both first and last names as they will appear in the header of the letter and at the end of the letter (after the date).

\ruolo{hrolei} defines the role of the person, e.g. Full Professor.

\ruolo

\telefono{hphone number i} defines the office phone number.

\telefono

\email{hemail i} defines the email address of the person

\email

The above information is mandatory and an error is reported if any is missing.

\homepage{hurl i} defines the (optional) URL of the personal home page.

\homepage

\fax{hfax i} defines the (optional) fax number.

\fax

\firma{himage filei} defines an image file (typically a PNG) that contains a

\firma

scanned signature of the person.

2.3 Letter Details

\soggetto{hsubject i} defines the subject of the letter, that will appear, at the

\soggetto

top of the letter preceded by the word ”Subject:” (or ”Soggetto:” if the language is italian).

The above macro is the only mandatory for the letter details.

\destinatario{hrecipient i} defines the recipient of the letter, if no recipient is

\destinatario

provided the letter will be addressed to ”To whom it may concern” (or ”A chi di competenza” if the languaga is italian).

\luogo{hplacei} defines the place that accompanies the date, it is by default

\luogo

”Torino”

\data{hdatei} defines a date to be used at the bottom of the letter instead of the

\data

current date.

\esoggetto{hlabel i} changes the word that precedes the subject topic, replaces

\esoggetto

the default ”Subject:”.

\protocollo{hlabel i} define a protol number if empty, only the “Prot:” will ap-

\protocollo

pear at top left.

2.4 Logo

\logo{himage filei} defines the image file containing the logo used in the header

\logo

of the letter. The logo must be square with at least 400x400 pixel resolution. The default is the Politecnico di Torino logo.

2.5 Language

The document language can be specified as either italian or english as class parameter e.g. as \documentclass[italian]{TOPletter}. The default language is italian.

The language can be detected using the \IfLanguageName macro to adapt the document contents to the specific language. This can be useful if a template file is used for both languages, for instance if we want to adapt the OU type and name according to the language we can add in the tex file the following:

\IfLanguageName{italian}{ %% department italian name:

2

(3)

\dipartimentoDi{Automatica e Informatica}

}{%% department english name:

\dipartimentoDi{Control and Computer Engineering}

}

Automatically, based on the document language (defined as documentclass pa- rameter), the correct naming for the department will be used.

3 Example

This section reports a very basic example of a short template used for writing a bilingual letter.

\documentclass[english]{TOPletter}

%% Load any additional package

\usepackage{lipsum}

\IfLanguageName{italian}{ %% italian names

\dipartimentoDi{Disegno e Animazione}

\ruolo{Produttore}

}{%% english names

\dipartimentoDi{Comics and Cartoons}

\ruolo{Producer}

}

%% personal details

\nome{Walt DISNEY}

\telefono{+1 555 123 4567}

\email{walt.disney@polito.it}

\homepage{http://www.polito.it/wdisney/}

%% Subject

\soggetto{Sample letter}

\begin{document}

%% Letter content

This is the typical appearance of a PoliTo letter.

\lipsum

\end{document}

3

(4)

Change History

v0.2

General: Initial version . . . . 1 v0.2.1

General: Minor changes and fixes

to examples . . . 1 v0.3.0

General: Added possibility to add protocol number . . . 1

4

Referenties

GERELATEERDE DOCUMENTEN

In the amsmath package \boldsymbol is used for getting individual bold math symbols and bold Greek letters—.. everything in math except for letters of the Latin alphabet, where

landscape page numbering, two to enable per-chapter bibliographies and appendices, and one to make small adjustments to Table of Contents.. If no degree option is specified,

In addition the following macros are defined: \newact starts a new Act, \newscene starts a new scene, \setting{hdescribe setting i} starts a new scene and describes the new

The package files ltxdocext.sty and acrofont.sty are generated from this file, ltxdocext.dtx, using the docstrip facility of L A TEXvia tex ltxdocext.dtx.. (Note: do not use L A TEX

Next, we define the fonts globaltocspeaker, globaltocnumber, globaltocpage and globaltoctitle, which are used for the speaker, number, page and title of the talk in the global table

Inside the environment you can use directly the \item macro, that it is slightly different with respect to the standard one.. This \item can take upto

As this data is typically defined later in the document, the h2020proposal class creates an auxiliary file (<jobname>.lwp) and uses it at the second round of compilation

Since an invoice will generally have a fixed From address, shipper and location, these values are best set in a separate configuration file (although they can also be set within