summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/latex-uni8/example_futr.tex
blob: 52dd86c1159ca21d568c33358f3e939f00116e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% -*- coding: utf-8 -*-
% example_futr.tex, works with modern lualatex in TeX Live 2019.
% The input encoding is UTF-8 (utf8).
\documentclass{article}
\def\magyarOptions{defaults=hu-min}
\usepackage[magyar]{babel}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Termes}
\setsansfont{TeX Gyre Heros}[Scale=MatchLowercase]
\setmonofont{TeX Gyre Cursor}[Scale=MatchLowercase]
\setmathfont{TeX Gyre Termes Math}
\begin{document}
% Alternatively, this works in lualatex: \language99 \patterns{ő9y}
\hyphenation{yő-yő-yő-yő-yő-yő-yő}
\showhyphens{yőyőyőyőyőyőyő}
\showhyphens{árvíztűrő tükörfúrógép}
\hrule width \hsize
\bigskip
\vbox{\Huge\hsize7em\hrule\noindent . . . . . bababababababa\hrule}
\bigskip
\vbox{\Huge\hsize7em\hrule\noindent . . . . . bábábábábábábá\hrule}
\bigskip
\vbox{\Huge\hsize7em\hrule\noindent . . . . . bőbőbőbőbőbőbő\hrule}
\bigskip
\vbox{\Huge\hsize7em\hrule\noindent . . . . . yőyőyőyőyőyőyő\hrule}
\bigskip
\vbox{\Huge\hsize9em\hrule\noindent$\sin^2\alpha+\cos^2\alpha=1$\hrule}
\bigskip
\vbox{\Huge\hsize7em\hrule\noindent Hel\texttt{lo}, \textsf{Wörld!}\hrule}
\bigskip
\vfill\hrule width\hsize
\end{document}