I am using the XeLaTeX ucharclasses package to switch language and font features on transition into the Greek and Latin unicode ranges. Is there a LuaLaTeX compatible alternative?
122070
I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text that belongs to the secondary language. On the long run, this can become cumbersome.  In XeLaTeX I am using the XeTeXinterchartoks mechanism  that allows me to change automatically the hyphenation rules and/or the font without explicitingly declaring them. The  involves grouping together the glyphs of a Unicode Block and then automatically applying tex commands when transitioning from a group to another one.  For those not familiar with the XeTeXinterchartoks, more info can be found at  pages 13-14.  Lately I got interested in Lua(La)Tex. I want to know if there is a way to achieve similar results in LuaTex. As was pointed in a previous question,  but it was suggested that there are other, more powerful ways to achieve the same goal.  So the questions are   How can I change the hyphenation rules/font automatically according to the glyphs used without declaring them?  Can someone provide a minimum working example or at least point me to some references? One of the drawbacks of XeTeXinterchartoks is that the settings are global. Is there a way in LuaTeX to set this feature (if it exists) on and off, thus providing more flexibility?
42302
I am starting to learn LaTeX and I really like what I am seeing. However, I get the feeling I should actually start with another 'TeX' version. I've been reading about different options. Some references:      These questions and answers are very helpful, but I'd like to check to see if my findings are correct. I get the feeling that XeLaTeX is more of the 'improved' version that provides easier/more font options and makes it easier when using weird characters. Most people talk about 'converting' from one TeX to another, but given the fact that I am a beginner I am looking for the proper TeX flavor right now, so that I do not need to change preambles and such when I am learning about new things that are only available when using other TeX engines. Some details about my usage:  I visualize using TeX mostly for business reports, memos, and investigations. I also might use it for presentations and publishing in book-format. I will not be using advanced math nor Chinese or other very non-Latin symbols. Being a beginner, I do not need to convert any old documents. I have been reading about , however, and this seems like a version that will be superior to the existing TeX options. So when this becomes available, I envision switching to this. So if that is of any validity, I'd say that easy conversion to / compatibility with LaTex3 would be important.  Also, I read about an issue with 'microtype' in XeTeX, but I do not really get what that is and if this would affect me. To quote from  related to another beginner's question:  XeLaTeX would be (especially) suitable to you, for better (Unicode) multilingual support and easy font switching. And it supports more image format and PSTricks code.  I feel this also applies to my situation, so I am about to use XeLaTeX instead of LaTeX, and learn using this instead. Is this a good idea given my situation, or am I overlooking something important?
99510
I use XeLaTeX in order to have easy access to fonts installed on my operating system, and Chinese in particular. Some of the Latin typefaces most pleasing to my eye do not have bold or italic font styles, and I wonder if XeLaTeX can remedy that.  I'm aware of the FakeBold and FakeSlant transformations within the fontspec package, but I'd be glad to know of a more attractive process, if there is one. (The specification, v2.1f, says, "Please don’t overuse these features; they are not a good alternative to having the real shapes.")
16588
Searching through tex.stackexchange.com, I've come to understand that xetex is currently the preferred engine for documents that include Chinese characters. In xetex, one simply uses the xeCJK or ctex packages and start including the characters in the body of the document. But it appears these two packages don't work with luatex.  So is it possible to include Chinese characters in a document using luatex? I cannot find a single example of this.
100806
Using LuaLatex, I need two very specific symbols from two very specific fonts, namely from the ZapfDingbats and the WingDings font.  I understand how I could use the fontspec package to set those fonts as standard fonts for my document. But for obvious reasons, I don't want that.  How do I pick a specific symbol from a specific font (with LuaLatex)?  While still using PDFLatex, I used the pifont package to get the Dingbats character:  \documentclass{article} \usepackage{pifont} \begin{document} \ding{113} \end{document}   Doesn't work for WingDings, though, which is why I switched to LuaLatex. However, not only did I understand that using such "font packages" is deprecated with LuaLatex, but I also don't have a clue how I'd go about picking a specific symbol from the WingDings font...
101341
I want to add greek polytonic keyboard layout under Lubuntu (so in LXDE). I already realized there is no easy tool to do it with the graphic interface, so I need to use setxkbmap executing something the like of:  setxkbmap pl,gr   Now, how to make setxkbmap set the greek polytonic variant?
14627
I just updated my TeX live installation (tlmgr update --all) and now I get some wrong symbols in math mode if I use XeLaTeX or LuaTeX. This MWE for example  \documentclass{standalone} \begin{document} $. + , - / $ \end{document}   produces the following output:    I suppose it is a bug in the new Latex2e version from 2016/02/01. Any ideas how to fix this?    EDIT:  Adding \usepackage{fontspec} produces a different output. But it is still not perfect.
64104
I want to do  with the crm10 font. How can I do that? I've tried a few fonts but I don't like them.  \documentclass{scrreprt}  \usepackage{fontspec} \setmainfont{Times New Roman} \setsansfont{Arial} \newfontfamily\greekfont[Script=Greek]{Linux Libertine O} \newfontfamily\greekfontsf[Script=Greek]{Linux Libertine O} \usepackage{polyglossia} \setdefaultlanguage{greek}  \begin{document} \tableofcontents{}  \section{Αυτό είναι ελληνικά.} {\bfseries Welcome to Greek:} Αυτό είναι ελληνικά  Or Russian: Привет  Or Hebrew: מה הבעיה? \end{document}
36285
I'm trying to reproduce an old book with XeLaTeX, and it has the  but not the . The Ligatures=Rare option seems to turn either both on or off. Is there a way to select which ligatures to use in XeLaTeX? I am using the Adobe Caslon Pro OTF fonts. I know the microtype package may be able to do this but it is not supported by XeLaTeX. Any help is appreciated.  Another question I have is, is it possible to change ligature options midway through a document? Or perhaps temporarily change the ligatures for one occasion?
22817
I am running this CV/Resume example from :   Here is a relevant fraction of the code:  \documentclass[10pt]{article} %!TEX encoding =  UTF-16 % See geometry.pdf to learn the layout options. There are lots. \usepackage[hmargin=1.25cm, vmargin=1.5cm]{geometry} %symbols - the ones you see on the left of the email and of the phone \usepackage{bbding} \usepackage{amssymb} \usepackage{eurosym} %Colors/Graphics \usepackage{color,graphicx} \usepackage[usenames,dvipsnames]{xcolor}  %Fonts and Tweaks for XeLaTeX \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text} \setromanfont[Mapping=tex-text]{Hoefler Text} ...   So... when compiling with LuaLaTeX (part of MiKTeX on Windwos XP x64), I am getting the following error:  ... luaotfload | Font names database loaded: C:/Documents and Settings/Ampleforth/L ocal Settings/Application Data/MiKTeX/2.9/luatex-cache/generic/names/otfl-names .lua luaotfload | Updating the font names database: luaotfload | Scanning TEXMF and OS fonts... luaotfload | Font names database saved: %s  : C:/Documents and Settings/Ampleforth/Local Settings/Application Data/MiKTeX/2 .9/luatex-cache/generic/names/otfl-names.lua  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !  ! fontspec error: "font-not-found" !  ! The font "HoeflerText" cannot be found. !  ! See the fontspec documentation for further information. ! For immediate help type H &lt;return&gt;. !...............................................    l.28 \setromanfont[Mapping=tex-text]{Hoefler Text}   What is wrong? How can I install this font so LuaLaTeX is picking it up? Where to download? Any other thoughts about this?
44588
I've been trying to set a document using lualatex in my TeXLive 2010 installation. Unfortunately, the non-ASCII characters are left out from the output. In the following minimal document produces a PDF with no warnings or errors but it only contains the second line. Using the inputenc package results in an error Unicode char ... not set up for use with LaTeX.  \documentclass{minimal} \begin{document} číčí abcd \end{document}   pdflatex handles the document fine. My version of lualatex is  This is LuaTeX, Version beta-0.60.2-2010071421 (Web2C 2010) (rev 3736)   Thanks for any pointers.  EDIT: For bonus points, how would I use the Bitstream Charter fonts? I use the mathdesign package, but with them (and even when loading fontspec, fontenc and/or luaotfload), the non-ASCII characters are missing :/   \usepackage[bitstream-charter]{mathdesign}
107474
I want to check if fontspec (with LuaLaTeX) can load a certain font and if not try to load another one. For pdflatex I did by checking if the package file exists; but I don't find an easy way to do it with fontspec.
36802
\listfiles \documentclass[12pt]{standalone}      \usepackage{fontspec}  \begin{document}  test  \end{document}   creates  MiKTeX 2.9/tex/luatex/luaotfload/fontloader-2016-04-21.lua:353: attempt to call global 'getsubtype' (a nil value)  \endsa@boxit ... dvarwidth \color@endgroup \egroup  1.9 \end{document}  ?   Any ideas what this could be? I cannot imagein that I am wrong typsetting this example?
64121
I would like to type a non-Latin script (Tamil) in Ubuntu 10.10.  I have installed iBUS, added all the Tamil packages in synaptic, and installed Tamil in Languages support and I still can't get it to work.  Any suggestions?
55178
The interaction of TeX and Lua can be quite delicate at times.  While the former has category codes and tokens, the latter has escape sequences and datatypes.  Mixing the disparate concepts of these two worlds can lead to unexpected behaviour which favours common errors, known as gotchas. In the community wiki answer below you can find an overview of the common mistakes that people make when getting to grips with LuaTeX.
49271
I am happy with the great majority of what unicode-math does. But at times I find that I prefer a symbol the way it was before. With \varnothing and \complement, for example. In those cases I was able to save them under a different name before loading unicode-math, but this doesn't always work.  Right now I'm trying to access the \mathcal alphabet from plain LaTeX. How might I accomplish this?    Additional Question  I've been looking through unicode-math, trying to figure out where exactly the original \mathcal alphabet gets discarded, but I eventually gave up.  It would be interesting if someone could explain:   how/where the original \mathcal font is defined anyway, and what kind of 'switch' is thrown by unicode-math that makes it unavailable.
103245
I would like to include the following line from Wikipedia in a presentation:     στεγανός steganós ‚bedeckt‘ und γράφειν gráphein ‚schreiben‘   But I am unable to convince pdflatex to include the greek letters. I have already tried to use (from: )  \usepackage[german,greek]{babel} \usepackage[utf8]{inputenc} ... \latintext ... \textgreek{στεγανός} steganós ‚bedeckt‘   which printed the Latin text just fine, but the Greek text was not set at all. I would like to avoid using  $\sigma\tau\epsilon...$   if possible. I should also mention that I would like to achieve this with TeX Live-only packages.