Tag Info

Hot answers tagged


With \usepackage{fourier} you are simply ignoring fontspec and using a family of “classical” 256 character font. You can use classical fonts with LuaLaTeX, without loading fontspec, but luainputenc: \documentclass{article} \usepackage{ifluatex} \usepackage[TS1,T1]{fontenc} % load TS1 so luainputenc will know \ifluatex \usepackage{luacode} ...


You can use newunicodechar package and define \newunicodechar{€}{\texteuro} Code: \documentclass{article} \RequirePackage{ifluatex} \ifluatex \RequirePackage{fontspec} \RequirePackage{luacode} \else \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} \fi \let\hbar\hhhbar %% without this I get a warning \RequirePackage{fourier} ...


With XeTeX you can force the glyph with \XeTeXglyph: \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont[Contextuals=Alternate,Ligatures=Rare]{EB Garamond} \newcommand\Qlong{\XeTeXglyph\the\XeTeXglyphindex "Q.long" \relax} \begin{document} \noindent \Qlong ui blablab \end{document}


From the usage of \RequirePackage I guess you're writing a package, so you'd like it to be as independent as possible on a particular user's setup. I'll assume that your users will be supposed to have an up-to-date TeX distribution, but not that they have the fonts available as system fonts. Setting Erewhon as the main font can be obtained by ...


So I investigated option of using LuaTeX's node processing callbacks. Best suited is pre_output_filter which is called when page is ready for the output. I've created simple package, named boxes, which consists of two files: LaTeX package boxes.sty and Lua module boxes.lua. boxes.sty: \ProvidesPackage{boxes} \RequirePackage{luacode} ...


The method for accessing a specific glyph using fontspec depends on the engine used. With XeTeX, an implementation is \XeTeXglyph554\relax (Thanks egreg). An example document, using the inaccessible glyph with ID 554 from Stevens Titling Pro, Sable Brush, is shown below: \documentclass{article} \usepackage{fontspec} ...


This is just an alternative to the above luatex solution of looping over the font table. Instead, we may also use the information from the raw font (with fontloader), where the glyphs are still accessible on the top level, and translate the internal glyph name into a char code via luaotfload's function slot_of_name: \documentclass{article} ...


I believe that if your system is set in a Latin locale, then fontspec automatically sets Script = Latin. \documentclass{article} \usepackage{fontspec} \setmainfont[Script = Latin]{CMU Serif} \begin{document} βγλθωχ \end{document} The font CMU Serif is designed so that it automatically substitutes certain Greek glyphs with more "Latin looking" glyphs if ...


\renewcommand{\familydefault}{\sfdefault} That is: \documentclass{article} \usepackage{fontspec} \setmainfont{Latin Modern Roman} \setsansfont{Latin Modern Sans} \renewcommand{\familydefault}{\sfdefault} \begin{document} abc \textrm{abc} \textsf{abc} \end{document}


You can use the style file created by Anurudha. He called it sinhala.sty. (In my code I renamed it sinhala1.) I used the remove thin space command to get two letters close together. I assume that there are ways to get two letters close together as precisely as you want. But, I have not found them yet. Below is my code and the output. (I used the Real ...


As it is already verified, I put also my solution, suggested in comments. \documentclass{article} \usepackage{fourier} \catcode`\€=\active \def€{\texteuro} \begin{document} 36 € \end{document}


pxfonts is not “officially” deprecated, but it is so “typographically”, because there are several flaws in its design. Such flaws have brilliantly been fixed by Michael Sharpe who provided the package newpxtext and newpxmath instead. However, newpxtext isn't compatible with fontspec, because it's based on “classical” 256 slot fonts. You can obtain a very ...


While LinLibertine_M.otf advertises covering cyrl, grek and hebr, it shows no glyph belonging to those alphabets. Here is a picture of the font table obtained with fontforge and showing the Cyrillic range: No glyph is shown. With otfinfo -g the result is the same: no Cyrillic glyph name is output. So, yes: Linux Libertine Mono doesn't support Cyrillic.


When fontspec doesn’t find the bold or italic of a font, you sometimes have to help it along. If the font’s name is Pecita Bold, \setmainfont{Pecita}[BoldFont={* Bold}] should work (in older versions of fontspec, use \setmainfont[BoldFont={* Bold}]{Pecita}). Section 5.1 of the fontspec documentation gives more information about this.


Updating lualatex font information as @cfr said fixed it. Open terminal and change to you texlive bin directory: cd /usr/local/texlive/2014/bin/x86_64-darwin Run the font update luaotfload-tool -u


Here, I introduce \spaceout{} where the argument can contain text, \color macros, and any other macro intercepts you build in (for demo purposes, I intercept \label as well). The parameter defined by \def\theLetterSpace{-15pt} determines the additional kern applied to interletter-space. The last of the lines in my output is the product of \spaceout with ...


After discovering the problem was related to my configuration (MiKTeX 2.9 on Windows 7 SP1 64 bit) I rebooted and then uninstalled the Fontin font from my computer. I redownloaded Fontin from http://www.exljbris.com/fontin.html and did an update of all MiKTeX packages. The problem still persisted until I noted that the Fontin filenames were ...

Only top voted, non community-wiki answers of a minimum length are eligible