| 1 | # Saint-Petersburg: LaTeX/XeLaTeX Beamer theme for SPbU |
| 2 | |
| 3 | A small theme that incorporates university colours and fonts from [official |
| 4 | web-site](http://pr.spbu.ru/). |
| 5 | |
| 6 | ## Installation |
| 7 | |
| 8 | On Linux type ``make && make install`` to install everything to standard TeX |
| 9 | Live locations. Alternatively, just type ``make`` and copy all `*.sty` files |
| 10 | from build directory into your project directory so that LaTeX can find them. |
| 11 | In order to show university's logo in the background of the title slide, you |
| 12 | need to download its medium size version from [the official |
| 13 | web-site](http://pr.spbu.ru/images/simvolika/logo/CoA_Medium.eps). |
| 14 | |
| 15 | ## Usage |
| 16 | |
| 17 | Saint-Petersburg theme can be compiled by LaTeX or XeTeX. Here is the minimal |
| 18 | working example: |
| 19 | ```latex |
| 20 | \documentclass[aspectratio=169]{beamer} |
| 21 | % add \usepackage{beamerposter} for the poster |
| 22 | |
| 23 | % XeTeX |
| 24 | \usepackage{polyglossia} |
| 25 | \setdefaultlanguage{english} |
| 26 | % or \setdefaultlanguage{russian} |
| 27 | |
| 28 | % LaTeX |
| 29 | % \usepackage[utf8]{inputenc} |
| 30 | % \usepackage[english]{babel} |
| 31 | % or \usepackage[english,russian]{babel} |
| 32 | |
| 33 | \usetheme{SaintPetersburg} |
| 34 | % or \usetheme[nologo]{SaintPetersburg} to disable logo on the title page |
| 35 | % or \usetheme[poster]{SaintPetersburg} for poster format |
| 36 | |
| 37 | \title{Saint Petersburg \LaTeX~Beamer theme} |
| 38 | \author{Ivan Gankevich} |
| 39 | \institute{Saint Petersburg State University} |
| 40 | \date{2017} |
| 41 | |
| 42 | % for poster |
| 43 | % \titlegraphic{\includegraphics[width=0.7\linewidth]{spbu-CoA}} |
| 44 | % \othergraphic{\includegraphics[width=0.7\linewidth]{right-logo}} |
| 45 | % \leftcolumnwidth{.2\linewidth} |
| 46 | % \middlecolumnwidth{.6\linewidth} |
| 47 | % \rightcolumnwidth{.2\linewidth} |
| 48 | |
| 49 | \begin{document} |
| 50 | \frame{\titlepage} |
| 51 | \end{document} |
| 52 | ``` |
| 53 | |
| 54 | Compilation |
| 55 | ```shell |
| 56 | latexmk -pdf -xelatex example.tex # XeTeX |
| 57 | latexmk -pdf example.tex # LaTeX |
| 58 | ``` |
| 59 | |
| 60 | ## License |
| 61 | |
| 62 | LaTeX Project Public License 1.3c or later. |