Tag Info

New answers tagged

2

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


8

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} ...


2

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.


3

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.


0

With further experimentation, I have now found an answer that works for TeXlive as installed on my machine. I have no idea why this one works for me, but the one that works for @egreg does not. It turns out that all I needed to do was put the .otf files in a subdirectory of ~/Library/texlive/2014/texmf-var/fonts and they can then be found by LuaLaTeX.


3

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 ...


1

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 ...


0

You can define commands to apply the colors and add a negative kern between them. Putting the "magic number" of your letterspacing inside a macro makes it easier to adjust. (I didn't have your font so I used one in the TeXLive distribution.) \documentclass{article} \usepackage{fontspec} \usepackage{xcolor} \pagestyle{empty} \setlength{\parindent}{0pt} ...


10

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 ...


17

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} ...


4

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}


12

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} ...


5

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} ...


6

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} ...


5

\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}


0

In principle, XeTeX works fine with .otf or .ttf font files. However, in some cases the .ttf version of a font lacks some metadata (for compatibility with older versions of Windows), so when both are available you should prefer the .otf. An older font format was Type 1, which consists of a pair of a data file .pfa or .pfb and a metrics file .afm. While ...


1

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 ...


5

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 ...


4

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 ...


11

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}



Top 50 recent answers are included