diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-25 21:15:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-25 21:15:48 +0000 |
commit | 64f8b9502cdcf42036940147fcfea7207c310704 (patch) | |
tree | c84ee05ea59bd57bd155ae316b4b2ab65de486b6 /Master/texmf-dist/doc/support/lua-uca/lua-uca-doc.tex | |
parent | 35f81995c64bc9054dea2309892ec9d1981a0381 (diff) |
lua-uca (25mar20)
git-svn-id: svn://tug.org/texlive/trunk@54550 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/lua-uca/lua-uca-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/support/lua-uca/lua-uca-doc.tex | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/lua-uca/lua-uca-doc.tex b/Master/texmf-dist/doc/support/lua-uca/lua-uca-doc.tex new file mode 100644 index 00000000000..0ef7914bae9 --- /dev/null +++ b/Master/texmf-dist/doc/support/lua-uca/lua-uca-doc.tex @@ -0,0 +1,53 @@ +\documentclass{ltxdoc} + + +\usepackage[english]{babel} +\usepackage{hyperref} +\newcommand\authormail[1]{\footnote{\textless\url{#1}\textgreater}} +\ifdefined\HCode +\renewcommand\authormail[1]{\space\textless\Link[#1]{}{}#1\EndLink\textgreater} +\fi + +\usepackage{fontspec} +\setmainfont{TeX Gyre Schola} +% \setmonofont[Scale=MatchLowercase]{Inconsolatazi4} +\IfFontExistsTF{Noto Sans Mono Regular}{% + \setmonofont[Scale=MatchLowercase]{Noto Sans Mono Regular} +}{\setmonofont{NotoMono-Regular.ttf}} + +\usepackage{upquote} +\usepackage{microtype} +\usepackage[hybrid]{markdown} +\usepackage{luacode} + +\title{The \texttt{Lua-UCA} library} +\author{Michal Hoftich\authormail{michal.h21@gmail.com}} +\date{Version \version\\\gitdate} +\begin{document} +\maketitle +\tableofcontents +\markdownInput{README.md} + +\section{Available languages} + +The \texttt{lua-uca-languages} library provides the following langauges: +\bgroup\ttfamily +\begin{luacode*} +-- get list of the currently supported languages directly from the library +local l = {} +local languages = require "lua-uca-languages" +for lang, _ in pairs(languages) do +l[#l+1] = lang:gsub("_", '\\_') +end + +table.sort(l) +tex.print(table.concat(l, ", ")) +\end{luacode*} +\egroup + +\section{License} +\markdownInput{LICENSE} +\markdownInput{CHANGELOG.md} + + +\end{document} |