Skip to content

Latest commit

 

History

History
127 lines (76 loc) · 27.4 KB

FRIteza.md

File metadata and controls

127 lines (76 loc) · 27.4 KB

FRIteza, the University of Ljubljana, Faculty of Computer and Information Science XeLaTeX doctoral dissertation template class

Acknowledgements

I sincerely thank the deans of the Faculty for having the guts for a drastic change in the requirements regarding the typesetting of the doctoral dissertation. It was about time. At last there is a stylistic common denominator and the published works will look professionally executed. As the dissertation is the culmination of the hard work you have put in in the last few years, you should be proud. The look and feel of the published work will surpass those submitted to the most renowned universities. My special thanks therefore go to those not used doing it in LaTeX, give it a chance, you might discover entirely new sensations and find out it is fun doing it this way as well.

Contents

Introduction, • Prerequisites, • The story behind the design, • The front page of the book cover, • Typography, • Floats, • Dissertation structure, • Using the template, • Production stages & printing.

Introduction

What is in front of you is the XeLaTeX class that allows typesetting the doctoral dissertation in compliance to the new typesetting rules set by the Faculty of Computer and Information Science. This document serves as a short introduction to the class, listing the special requirements of the class and trying to expose the all-important final touches that will allow you to produce a work that you will be rightfully proud of.

Be advised that the class is still under development so expect minor changes between releases.

Prerequisites

You should make sure that you have the latest version of your LaTeX 2ε distribution installed and that all of the pre-installed packages are up to date. If you are using a Microsoft Windows system this means the MiKTeX 2.9 LaTeX 2ε distribution.1 The choice of a suitable editor depends on personal preference, but you might try TeXstudio, TeXnicCenter, Visual Studio Code with the LaTeX Workshop extension, or simply use the default editor that comes with the MiKTeX distribution.

As the class uses specific otf typeface files, the tex documents have to be compiled to pdf using XeLaTeX and not pdfLaTeX or LaTeX. All other requirements (e.g. multiple compilations to get citations and references synchronized ...) are the same as for all LaTeX based documents. For your convenience the ./editor-cfg subdirectory contains configuration instructions for TeXstudio and Visual Studio Code. In both cases the compilation uses two subdirectories; ./int for intermediate files and ./out for the output of the final pdf.

The story behind the design

When I first approached the challenge of creating a new design for doctoral dissertations of the Faculty of Computer and Information Science, I decided it should advertise science, excellence and clarity. It should advertise the new Doctor of Science and symbolise the act of their Alma Mater releasing them from its protection.

You might ask yourselves why the cover page lists merely the title and the author. Well, because this is the most important information of all; the new Doctor of Science and the title of their doctoral dissertation. The institution, their Alma Mater, is confidently giving them credits and letting them step out of its shadow, placing emphasis on them (front of the book cover) rather than the institution itself (moving to the back of the book cover). The spine of the book cover contains merely the title of the dissertation and cryptic information about the year, the department (its acronym) and the serial number of the dissertation.

The three concepts (science, excellence and clarity) drove the design of the page spread, colour scheme and the choice of type families. I started by inquiring: when was science real science, when did it all begin? Research led me to the mid-1500s, when scientists began to question accepted beliefs and make new theories based on experimentation; the roots of all modern science. It was the Renaissance era (1300–1600, a time of great changes in Europe). Some of the greats that lived and questioned in that period were Nicolaus Copernicus, Galileo Galilei, Isaac Newton, Leonardo da Vinci, to name just a few. Sometime in that period, in 1455 to be precise, the Gutenberg Bible, or B42, was printed. This is the first major book printed with movable type marking the age of the printed book in the West. Widely praised for its high aesthetic and artistic qualities, the book has an iconic status.

J. A. Van de Graaf, whilst studying B42 and other Gutenberg’s books, discovered that they all followed some system in determining the position and size of the body text. In the field of book design the ways that page proportions, margins and type areas (print spaces) of books are constructed are governed by The Canons of Page Construction. Van de Graaf, based on his research, devised a geometrical solution, which works for any page width:height ratio and enables the book designer to position the body text in a specific area of the page. Using the canon, the proportions are maintained while creating pleasing and functional margins of size 1/9 and 2/9 of the page size. In addition, the height of the body text equals the width of the page. The extra wide outside and bottom margins provide ample space for comfortably holding the book without covering the body text; they also provide ample space for writing notes,2 something that is to be expected in a proper scientific work. The canon, first discovered by Van de Graaf, was later reinterpreted by contemporary designers like Villard de Honnecourt, Raúl Rosarivo and Jan Tschichold.

The page spread design of the Faculty of Computer and Information Science dissertations now follows Van de Graaf’s canon of page construction, thus putting YOU on par with all the greats of the Renaissance, Scientific Revolution era. Act responsibly.

The front page of the book cover

The cover page design is personalized and different for every dissertation; a huge improvement over the boring covers that listed just the institution, title and author. This special treat does however come with responsibilities. You—the author—are required to find a suitable figure, image, illustration that best describes the essence of the work. This is the front-end to the user—the reader—you should provoke thoughts, intrigue, raise a question all in favour of making the reader want to open the 1 kg of paper and start reading.

The same minimal standards as for figures are required. In case of a raster graphics image this should be at least 300 dpi (600 dpi preferred) and in case of a vector graphics figure or illustration, this should be well designed and in 1:1 ratio. The expected aspect ratio of the supplied graphics is 2:3 (width:height). The cover page dimensions are 181×272 mm, at 300 dpi this is 2141×3212 px. A large enough portion of the image, figure or illustration should be white space (i.e. space with subdued colours or single colour) to aid readability when placing the title and author information. This should reside approximately 35 mm below and left from the top right corner (above and left from the bottom right), or 20 mm to the right and 35 mm below (above) from the top left corner (from the bottom left corner).

In case of using copyrighted images, the appropriate permissions must be obtained from the author(s). A good source of professional quality raster graphics images as well as vector graphics figures and illustrations are stock photo databases like Corbis, Shutterstock, Dreamstime, iStockphoto, ... in some cases royalty free. Do check them out, especially as you can search by keywords, thus also providing for inspiration in case you venture into self-production of the cover page image, figure or illustration.

Typography

The aesthetics of body text and mathematics follow the design rules set by the University of Ljubljana. You might have noticed that the supporting graphical elements follow those rules as well. The body text and mathematics are set in the EB Garamond type family, a type family designed by Georg Duffner that supports advanced features (ligatures, small caps, old-style numerals, superscripts, ...) and is closer to the original type designs used by Claude Garamond (ca. 1490–1561) than the typeface used by the University of Ljubljana.

The otf files containing the EB Garamond type family typefaces are located in the fonts/ directory. This is a typeface that is distributed under the Open Font License, but is still under development. The version included in the fonts/ directory is 0.016 and provides two optical sizes (8 pt and 12 pt) in regular, italic and small caps, as well as a subset of specially designed decorative initials.3

You might have noticed in already that body text numerals are old-style figures 0123456789. These blend in well with the optical flow and rhythm of the lower-case alphabet. Mathematical equations use lining figures, thus in tex language 1 ≠ $1$. In cases when numbers coexist with upper-case letters only, e.g. CN2, this can disrupt the optical flow. In these cases use the command \MakeUppercase{cn2} or {\addfontfeatures{Numbers=Uppercase}CN2}, both of these will produce upper-case/lining figures. An even better solution is to resort to small caps, i.e. \textsc{cn2}, which will, if the word in question is used frequently, result in a better blend with the optical flow and rhythm of the lower-case alphabet. To aid in number and standard unit printing, the template class pre-loads the siunitx package, refer to its documentation for further information.

In the body text only the regular {\upshape #}, italic {\itshape #} and small caps {\scshape #} styles are available and allowed to be used. The bold style is not included as v0.016 of the EB Garamond type family typefaces does not provide a hand designed bold variant. Furthermore the decision to disallow the use of the bold style in the body text was made as most of the typographically inexperienced users choose this style too frequently or use it inappropriately. Frequent use of the bold style in the body text influences the type colour, making it non-homogeneous. The writer’s intent to aid the reader comprehend has the contrary effect hindering the reader’s ability to read. When trying to emphasise certain parts of your body text use italic \emph{#} or small caps \textsc{#} instead.

A totally different ball game is the typesetting of mathematical equations. They, with the proper notation, which includes the bold and perhaps even the bold italic style as well, become easier if at all understandable. This is why the bold and bold italic styles are allowed in mathematical equations. At the present time mathematics is set in a mixture of EB Garamond for numbers, lower- and upper-case Latin and Greek, whereas symbols are set in XITS Math. A special typeface, named Garamond-Math, was designed by Yuansheng Zhao and is distributed under the Open Font License. In addition the class pre-loads the amsmath and unicode-math LaTeX packages thus providing additional mathematical symbols and giving you the ability to typeset mathematical equations in Unicode. Styles available are regular \symrm{#}, italic \symit{#}, bold \symbf{#} and bold italic \symbfit{#}. Note the use of \sym*{#} commands, a peculiarity of the unicode-math LaTeX package, which distinguishes between math text (\math*{#}) and math math mode (\sym*{#}).4 Note also that v0.016 of the EB Garamond type family typefaces provides Greek letters in regular αβγδε… and italic αβγδε… only for optical size 12 pt. The 8 pt optical size does not provide Greek letters in italic, so by forcing the use of italic for Greek letters you might experience disparaging letter forms.

Listings and verbatim code usually require monospace typefaces. At the present time these are typeset using the Source Code Pro type family typefaces designed by Paul D. Hunt for Adobe and distributed under the Open Font License. Styles available are regular \texttt{\upshape #}, italic \texttt{\itshape #}, bold \texttt{\bfseries #} and bold italic \texttt{\itshape\bfseries #}. As Source Code Pro was designed as a companion mono spaced version of the sans serif typeface Source Sans Pro the latter was selected as the primary sans serif typeface. For this typeface the available styles are regular \textsf{\upshape #}, italic \textsf{\itshape #}, bold \textsf{\bfseries #} and bold italic \textsf{\itshape\bfseries #}.

Floats

The body text dimensions are approximately 100×150 mm (width×height), so all images should be kept within this dimensions. The preferred aspect ratio is 3:2, which gives you 100×67 mm for a landscape figure. All figures are framed with a 5% grey 1 pt wide frame and 2.5 pt inner margins. For your convenience a special dimension named \figurewidth was defined. Should you need to do so, you can use it to scale figures to the appropriate size.

As figures use side captions special care needs to be taken when writing them. The space available for the caption needs to be taken into account. A small figure might not provide enough vertical space for a long caption. These types of events can be easily solved during the creation of the figure. Either by rethinking the figure or adding an invisible background to it, such that will provide enough vertical space for the caption in question. The event can also be resolved by encompassing the \includegraphics{#} command with \vspace*{#} to give some white space before and after the included figure.5 For extremely long captions, the template class provides a special command \infigurecaption{#}, which allows part of the caption to be included as part of the figure.6

Images and other raster graphics must have a resolution of at least 300 dpi, thus measuring at least 1182×787 px for a landscape figure, and should be saved in the png or jpg file format. A resolution of 600 dpi is preferred.

All figures should be produced in vector graphics editing software like Adobe Illustrator, Corel Draw, Inkspace, ... in a 1:1 ratio (i.e. requiring no scaling at the time of import) and exported in the pdf or eps file format. The figures should be aesthetically consistent, use the same typeface and colour palette throughout. Suitable typefaces are Source Sans Pro, Helvetica, Arial, and in case of mathematical equations and symbols the already mentioned mixture of EB Garamond and XITS Math all in a 7–9 pt type. Refer to palette.pdf for an example of a suitable palette. A good source of pleasing palettes is Adobe Kuler.

Note that XeLaTeX might have issues importing eps files; the figures might end up disappearing from the page entirely or be placed in the wrong place. The issue can be easily solved by converting the eps file to pdf. This can be done from the command line by calling epstopdf <filename.eps>, a command that is available in all LaTeX distributions.

In its latest version the template class provides also starred (wide) versions of the table \begin{table*} and figure \begin{figure*} environments. In the case of a figure this increases the available space to 118×79 mm (1395×929 px at 300 dpi) for a landscape figure and moves the caption below the figure. Note that these environments should be used only on rare occasions.7 In addition to the table and figure environments the template provides also a video environment, where the same restrictions as for the figure environment apply.8

Dissertation structure

The revised doctoral dissertation structure is as follows:

  1. Title page,
  2. Duplicate title page with required logos,
  3. Approval page,
  4. Previous publications page,
  5. Dedication,
  6. Table of contents,
  7. Dissertation body,
  8. Appendix,
  9. Bibliography,
  10. Glossary,
  11. Index.

Except for the Table of contents no additional lists, like the list of figures or list of tables, should be included. The Index, Glossary and Dedication parts are optional. Similarly the Appendix part is optional as well, except for dissertations written in English. In this case it is mandatory and should, by requirement, include an Appendix titled Razširjen povzetek that covers at least 10% of the material discussed in the dissertation body.9 Optionally additional appendices can exist.

The Duplicate title page is required only for funded doctoral dissertations. As funded young researchers are legally bound to provide information about the funding sources it typesets a duplicate Title page and places all of the required logos in the page header.

Using the template

For your convenience the template class package contains two subdirectories, namely ./demo-asbook and ./demo-bypub. Respectively they provide all the necessary files to build a dissertation in the two distinct formats allowed by the Faculty of Computer and Information Science, namely as a book, and as a collection of published manuscripts. Refer to them as a starting point, when preparing your own dissertation. The most important files of all are thesis.tex and cover.tex; the former is used to produce the main body of your dissertation, the latter to produce its cover. They start by loading the FRIteza template class with the appropriate options. They then proceed by specifying the author, title, keywords, the approval committee, the list of previous publications, ... The class commands used to specify these properties are documented in the files themselves and since the class file is still under development this document will not explain them further. For a doctoral student, who is writing his dissertation they should be self-explanatory.

After the initial setup a number of helper commands that are to be used in the remaining part(s) of the document are defined. The body of the dissertation is enclosed between \begin{document} and \end{document}. Files included with \input{<filename>} represent sub-parts (chapters) of the dissertation. I strongly advise using this type of tree structure as it makes the document much easier to manage. It also simplifies compilation as it allows excluding certain sub-parts when they are not the ones being worked on. Everything else should be quite self-explanatory. Whenever you have trouble typesetting parts of your dissertation, you can use the files in ./demo-asbook and ./demo-bypub as a reference point.

Production stages & printing

A typical doctoral dissertation has several production stages, namely dissertation proposal, draft, revised, proofread, final. The preparation of the dissertation proposal is currently unsupported, however, the template class can be easily used throughout all of the other stages. In some cases the draft can be preceded by an early draft version, and the revised and proofread stages can have multiple occurrences. The stages are more or less merely a good practice in the preparation of a doctoral dissertation or any other manuscript. From the template class perspective there is no real difference, but for good practice it does provide an option to declare the stage the manuscript is in, namely pre-alpha, alpha, beta, gold, press, which roughly correspond to early draft, draft, revised, proofread, final.

The same set of class options can be used throughout all of the production stages except for the final stage. From the template class perspective the stages pre-alpha, alpha, and beta are interpreted as production stages, whereas the gold and press stages are interpreted as final. Note that there are some differences in the generated pdf files. The production stages do not colour chapter pages, do not generate chapter marks at the page borders, and generate a smaller page size. The smaller page size gives the possibility to increase the font size (approximately 50%) when the dissertation is printed and soft-bound (spiral binding), all to aid in late night readability of the manuscript. This will mostly help YOU, as your reviewers might consequentially show more mercy. To achieve this on A4 one needs to select the options Size > Fit, Orientation > Auto portrait/landscape in the Page Size & Handling section of the Print dialogue box of Adobe Acrobat Reader/Pro.

In the final stage, i.e. when the dissertation has been revised and proofread and is ready to be book-bound and published on the Faculty of Computer and Information Science web site, you will prepare two pdf versions. One that is to be published on the web site and one that is to be printed, either by you or by the bookbinder who will make the hardcover, hardbound book. The former edition, i.e. the one that is to be published on the web site, must be prepared with the stage gold. The latter edition, i.e. the one that is to be printed either by you or the bookbinder, requires the stage press. This stage generates all of the necessary information that will aid the bookbinder to correctly trim the book block. When preparing each of the two final pdf versions make sure to run them through XeLaTeX a couple of times and check for any possible issues.10 As a special feature the dissertation template automatically searches for figures in the ./img, ./img_LQ and ./img_HQ directories, where it prefers files in the pdf, png and jpg format, respectively. The choice of search directories depends on the stage, where the press stage searches for files in either ./img and ./img_HQ, all other stages search for files in ./img and ./img_LQ. This gives the author the possibility to reduce the file size for web and email versions, while retaining high resolution figures for press.11

Taking all the above into account, a good practice would be to use pre-alpha to submit draft versions to the advisor. Once approved by the them a revised version in alpha stage is printed and soft-bound for Seminar 5. Afterwards a proofread revised version in beta is printed and soft-bound for the Faculty Senate. And once approved by the Faculty Senate the manuscript reaches the gold stage.

If you decide to leave final printing to the bookbinder, you will need to give them two pdf files, one with the main body12 and one with the cover page.13 If you, however, decide to print the main body of the dissertation yourself, you will require a colour laser printer capable of double sided printing and enough sheets of 100 g/m2 paper. When printing, make sure that you disable any page scaling and enable central placement of the page. Translated to Adobe Acrobat Reader/Pro speak this means selecting Size > Actual Size, Orientation > Auto portrait/landscape in the Page Size & Handling section of the Print dialogue box. The cover page will still need to be printed by the bookbinder, as it requires an A3 colour laser printer, special paper and a further step of plastic lamination.

The suggested bookbinder is Grafika Bonifer, all additional information can be found on their web site.


1At the time of writing this documentation.

2Christopher Columbus's notes on the margins of his copy of The Travels of Marco Polowikipedia.org.

3Jure Demšar's use of decorative initials in his doctoral dissertation Evolution of fuzzy animats in a competitive environmenteprints.fri.uni-lj.si.

4For further information refer to §3.1 of the unicode-math documentation.

5See thesis-ch4_fuzzymodelling.tex, ln 180 in ./demo-asbook for an example.

6See thesis-pub1_alife.tex, ln 59 in ./demo-bypub for an example.

7See thesis-introdcution.tex, ln 71 in ./demo-bypub for an example of a wide figure and thesis-ch6_analysis.tex, ln 115 in ./demo-asbook for an example of a wide table.

8See thesis-pub2_ecomod.tex, ln 397 in ./demo-bypub for an example.

9See ./demo-bypub or ./demo-asbook for an example.

10See thesis.pdf and thesis-press.pdf in ./demo-asbook/out and ./demo-bypub/out for reference.

11See ./demo-bypub for an example.

12See thesis-press.pdf in ./demo-asbook/out and ./demo-bypub/out for reference.

13See cover.pdf in ./demo-asbook/out and ./demo-bypub/out for reference.