Thesis can be presented in either of these formats:
The templates are just examples, the only compulsory requirements are the ones in this procedure.
In order to print on paper to ISO B5 size (176 mm x 250 mm) you can use A4 paper and guillotine it to B5 size:
The side margins need to be trimmed by 1.7 cm and the bottom margin by 4.7 cm.
The academic regulations on doctoral studies indicate:
Article 13. Language of writing and defence of the doctoral thesis
"The thesis may be written and defended in any of the languages commonly used in scientific communication in the relevant field of knowledge. If the language of writing and defence of the thesis is not Catalan, Spanish or English, the doctoral student must notify the academic committee of the doctoral programme of this beforehand."
The cover and the title page must show, in Catalan, the words "TESI DOCTORAL UPF / year of presentation" and "Directors de la tesi"