diff options
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaotfload/luaotfload-latex.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luaotfload/luaotfload-latex.tex | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-latex.tex b/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-latex.tex index 8a68efd0358..cdcb26e26e0 100644 --- a/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-latex.tex +++ b/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-latex.tex @@ -208,6 +208,7 @@ %% one that we could map directly onto Latex’s \verb|…|. \usepackage{pdfpages} \usepackage {listings} +\usepackage{csquotes} \usepackage {luatexbase} \lstset { basicstyle=\ttfamily, @@ -280,7 +281,37 @@ end end } - +\directlua{ + luaotfload.add_colorscheme("myscheme", + { + ["00FFFF30"] = {"default"}, + ["FF0000"] = {"kabeng"}, + ["00FF00"] = {"ivowelsignbeng"}, + ["0000FF"] = {369} %% 369 is the GID of "nadarabeng" + }) + } + + \directlua{ + luaotfload.add_multiscript + ("cyrlgrekbeng", + { + cyrl = "DejaVuSans:mode=node;script=cyrl;color=FF0000;", + grek = "texgyreheros:mode=harf;script=grek;color=0000FF;", + beng = "NotoSansBengali:mode=harf;script=bng2;color=00FF00" + } + ) + } + \directlua + {luaotfload.add_fallback + ("myfallback", + { + "DejaVuSans:mode=harf;script=grek;color=FF0000;", + "cmuserif:mode=node;script=cyrl;color=00FF00;", + "NotoSansBengali:mode=harf;script=bng2;color=0000FF;", + "NotoColorEmoji:mode=harf;" + } + ) + } \def \listingpar {\endgraf} \let \endlistingline \relax |