\documentclass[12pt]{ltxdoc} %\documentclass{article} %\usepackage[utf8]{luainputenc} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{Linux Libertine O} \usepackage[czech,english]{babel} \usepackage{luacode} \usepackage{amsfonts} %\usepackage[]{polyglossia} %\setmainlanguage{english} %\setotherlanguage{czech} %\usepackage{url} \usepackage{hyperref} %\input prevent-single %\usepackage[]{prevent-single} \usepackage[]{luavlna} %\input prevent-single %\def\preventsingledebugon{} \newenvironment{mycode}{ %\leavevmode% \medskip% \parindent=0pt% }{\medskip} \ifdefined\version\else \def\version{{{VERSION}}} \let\gitdate\date \fi \begin{document} \title{The \verb|luavlna| package} \author{Michal Hoftich (\url{michal.h21@gmail.com})\\Miro Hrončok (\url{miro@hroncok.cz})} \date{Version \version\\\gitdate} \maketitle \tableofcontents \section{Introduction} This is a small package for Plain Lua\TeX and Lua\LaTeX. In some languages, like Czech or Polish, there should be no single letter words at the line end, according to the typographical norms. There exists some external commands (like \verb!vlna!) or packages (\verb!encxvlna! for enc\TeX, \verb!xevlna! for Xe\TeX, \verb!impnattypo! for Lua\LaTeX). %This package is for plain %lua\TeX and for lua\LaTeX. Another feature is inclusion of a non-breakable space after initials, like in personal names, after or before academic degrees and between numbers and units (SI and others). The code is modified version of Patrick Gundlach's answer on TeX.sx\footnote{\url{http://tex.stackexchange.com/a/28128/2891}}. The difference is that it is possible to specify which single letters should be taken into account for different languages. % The support for degrees and units was added as well. % The code works also for single letters at the beginning of the brackets. \section{Usage} The usage is simple: \begin{verbatim} \input ucode \uselanguage{czech} %% in the case of luacsplain, use instead: %% \chyph \input luavlna \preventsingledebugon \input luaotfload.sty \font\hello={name:Linux Libertine O:+rlig;+clig;+liga;+tlig} at 12pt \hsize=3in \hello Příliš žluťoučký kůň úpěl ďábelské ódy. Text s krátkými souhláskami a samohláskami i dalšími jevy z nabídky možností (v textu možnými). I začátek odstavce je třeba řešit, i když výskyt zalomení není pravděpodobný. Co třeba í znaky š diakritikou? Různé možnosti [v závorkách