Skip to content

Instantly share code, notes, and snippets.

@dustalov
Last active February 3, 2017 13:40
Show Gist options
  • Save dustalov/84aad218b0656fbef89a to your computer and use it in GitHub Desktop.
Save dustalov/84aad218b0656fbef89a to your computer and use it in GitHub Desktop.
Badges for SPM2016.
\documentclass[11pt]{letter}
\usepackage[a4paper,landscape]{geometry}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands=true]{russian}
\setotherlanguage{english}
\defaultfontfeatures{Ligatures=TeX,Mapping=tex-text}
\setmainfont{Times New Roman}
\newfontfamily\cyrillicfont{Times New Roman}
\setsansfont{Arial}
\newfontfamily\cyrillicfontsf{Arial}
\setmonofont{Courier New}
\newfontfamily\cyrillicfonttt{Courier New}
\usepackage[sopromat,boxed]{ticket}
\usepackage{graphicx}
\usepackage{csvsimple}
\renewcommand{\ticketdefault}{
\put(44.65, 50){\makebox[0mm]{Международная (47-я Всероссийская)}}
\put(44.65, 46){\makebox[0mm]{молодёжная школа-конференция}}
\put(44.65, 41){\makebox[0mm]{\bfseries <<Современные проблемы математики}}
\put(44.65, 37){\makebox[0mm]{\bfseries и её приложений>>}}
\put(44.65, 32){\makebox[0mm]{Екатеринбург, 31 января--6 февраля 2016~г.}}
}
\newcommand{\confpin}[4]{\ticket{%
\put(44.65, 24){\makebox[0mm]{\bfseries\LARGE #1}}
\put(44.65, 17){\makebox[0mm]{\bfseries\LARGE #2}}
\put(44.65, 10){\makebox[0mm]{\bfseries\LARGE #3}}
\put(44.65, 3){\makebox[0mm]{\Large #4}}
}}
\begin{document}
\csvreader[head to column names]{people.csv}{}%
{\confpin{\csvcoli}{\csvcolii}{\csvcoliii}{\csvcoliv}}
\end{document}
Surname Name Patronymic City
Иванов Иван Иванович Иваново
\unitlength=1mm
\hoffset=-10mm
\voffset=-10mm
\ticketNumbers{3}{3}
\ticketSize{89.3}{55.0}
\ticketDistance{0}{0}
@dustalov
Copy link
Author

dustalov commented Feb 3, 2017

In the case of trouble, it might be reasonable to use the Computer Modern Unicode fonts instead of the above.

\defaultfontfeatures{Ligatures=TeX,Mapping=tex-text}
\setmainfont[Extension=.otf,BoldFont=cmunbx,ItalicFont=cmunti,BoldItalicFont=cmunbi]{cmunrm}
\setsansfont[Extension=.otf,BoldFont=cmunsx,ItalicFont=cmunsi,BoldItalicFont=cmunso]{cmunss}
\setmonofont[Extension=.otf,BoldFont=cmuntb,ItalicFont=cmunst,BoldItalicFont=cmuntx]{cmuntt}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment