{fontspec} is a package for loading {opentype} fonts in XeLaTeX and LuaLaTeX.

learn more… | top users | synonyms

5
votes
1answer
74 views

How to use T4 fonts in LaTex?

I would like to input some African language symbols (\B{t}, \m{y}). I tried command: \usepackage[T4]{fontenc} But it did not work. How can I use T4 font encoding?
1
vote
1answer
101 views

fontspec package causes error

For some reason the inclusion of the fontspec package causes XeLaTeX to not compile properly. Here is an MWE (inspired by Rob Hyndman): \documentclass{article} \usepackage{lipsum,fontspec} \begin{...
5
votes
2answers
88 views

\addfontfeatures attribute lost after next fontspec command (like \textbf{})

I'm using Linux Libertine font (from system) with XeTeX. In the body, I'm using OldStyle numerals while I want Lining numerals in the tables. I'm typesetting tables that have some cells with \bfseries ...
4
votes
3answers
78 views

Cells of equal width using tabular

Is it possible to give these cells the same width as the widest in the first row (κεῖσθαι?)? (keeping the text centered). The leftmost cells should be allowed to be wider. \documentclass{article} \...
0
votes
0answers
30 views

XeLaTeX with fontspec gives “Undefined control sequence” error after MiKTeX update [duplicate]

I updated MiKTeX this morning and now I can't get XeLaTeX with fontspec to compile at all. It throws an "undefined control sequence" error for \sys_if_engine_luatex:T A minimum working example is: \...
3
votes
1answer
67 views

“Rare” ligatures in LuaLaTeX and LMR font

How do I get "Rare/Discretionary" ligatures with the Latin Modern Roman Font in LuaLateX? So far I have loaded the fontspec package and have tried several different approaches the most promising ...
1
vote
2answers
65 views

Assign custom fontfamily to setmonofont

Is there an easier way instead of writing those commands twice? \newfontfamily\codefont[ Scale=MatchLowercase, Path = fonts/] {Inconsolata-dz} \setmonofont[ Scale=MatchLowercase, Path = ...
1
vote
0answers
118 views

Fontspec / Polyglossia error after windows 10 update

I have recently (about a week) updated the operating system from windows 7 to windows 10. As for this moment, any use of the fontspec or polyglossia packages won't compile. After the problem ...
5
votes
2answers
51 views

Loading an array of fontfaces with fontspec and pgffor

I'm trying to produce a document to compare a bunch of fontfaces. I'd like to parse an array to load and try them all. This is what I have done: \documentclass{article} \usepackage{lipsum} \...
2
votes
2answers
68 views

What about \cyrdash in EU1 and EU2 encodings?

cyrdash is defined in T2A, T2B, T2C and some other legacy encodings but seems to escape from EU1 (xetex) and EU2 (luatex) encodings. cyrdash should, by idea, print something intermediate between \...
1
vote
0answers
23 views

The footnote number changes sizes unexpectedly within document after third footnote

For some reason, the footnote number in the body of the text and in the footnote change size after the third footnote in my document. I'm not sure why it is. I thought it may have been a font problem, ...
9
votes
1answer
134 views

How can I define my own ligatures in lualatex?

Why are my ligatures not working? \documentclass[12pt,a4page]{article} \usepackage{fontspec} \setmainfont[FeatureFile=pytanie.fea, Path = /usr/share/fonts/dejavu/, Extension=.ttf]{DejaVuSerif} \...
40
votes
2answers
11k views

Load fonts that are in a ./fonts directory

I'm new to TeX. I have the following problem: How can I load a font from a file in a directory, which is located in the root of the project? Say I have something like: /project /fonts ...
5
votes
2answers
4k views

fontspec cannot find fonts on Ubuntu

I recently migrated to Ubuntu from Mac OS. I installed TexLive and it works. However, fontspec doesn't work, no matter what fonts I use. This goes for fonts native to Ubuntu and fonts that I have ...
6
votes
1answer
36 views

How to get subs/sups for figures but not letters?

I am playing with a font (found here) that has sups/subs defined for figures but not for letters. If I don't enable them, I don't get them: But if I \usepackage{realscripts} to enable them, I lose ...
1
vote
0answers
21 views

lstlisting typesets incorrectly some special characters when used with fontspec

This document results in the ellipsis (triple dots) being typeset before the parenthesis. Why is this so? How can I avoid this behavior? Note that I use the unicode Horizontal Ellipsis U+2026 ...
1
vote
0answers
308 views

Can't use fontspec with LuaLatex [closed]

I have MiKTeX 2.9 installed on Windows 7. I want to make use of the package fontspec, but the command \usepackage{fontspec} is enough to cause the following error message: LaTeX Error: File `...
6
votes
3answers
247 views

LuaLaTeX and TeX Gyre Pagella in pdflatex for arXiv

Since arXiv still doesn't seem to support LuaLaTeX, I need to make my document work with pdfLaTeX instead. The only LuaLaTeX-specific stuff is \usepackage{fontspec} \usepackage{unicode-math} \...
0
votes
0answers
174 views

Having trouble using fontspec package with LuaLaTex in TexWorks

I am trying to compile the following code in TexWorks with LuaLaTex: \documentclass{article} \usepackage{fontspec} \begin{document} Hello \end{document} It works without the line: \usepackage{...
2
votes
1answer
138 views

Undefined control sequence in first line of fontspec.sty

I am creating a CV in LaTeX. The below code is a MWE (example.tex): %%% ------------------------------------------------------------ \documentclass[paper=letterpaper,fontsize=10pt]{article} ...
2
votes
0answers
44 views

superscripts and footnotemarks break in nested \import with realscripts

I managed to produce strange interference between nested \import and superscripts, made accessible for LuaTeX by realscripts.sty. My document organisation depends on the comfortable, path-agnostic ...
8
votes
2answers
179 views

Modifying fraction macro for in-line text and exponents

There's an amazing fraction macro here* for FontSpec with LuaLaTeX (*: that would be the second macro in that answer, called \unifrac, which I like better than the first "macro"/ using the frac ...
7
votes
1answer
101 views

New version of fontspec gives WordSpace error

The new version of fontspec (February 1, 2016, version 2.5a) gives the following error (MacTeX2015): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ./mathcal2016.tex:17: fontspec error: "not-in-...
2
votes
1answer
221 views

Customize fonts inside an equation environment

I am using the Gill Sans font, but I remark that I,l, and 1 are confused. So I want to use another fonts just for these letters in the equation environment, I used \fontspec to do this but it does not ...
2
votes
2answers
57 views

How to activate hyphenation in \ttfamily without setting a font explicite?

I am suprised that in the code below no hyphenation is done. And I can not find something about that on the web. Maybe I use the wrong words for searching. \documentclass{scrartcl} \usepackage{...
6
votes
0answers
109 views

lualatex with package unicode-math does not work after texlive update [closed]

After the recent TeX Live update (tlmgr update --all), LuaLaTeX together with unicode-math does not work any more! Here is a minimal example: \documentclass{article} \usepackage{unicode-math} \...
4
votes
1answer
84 views

Correct way of using Vollkorn for both text and math

I'm trying to use Vollkorn typeface for both text and math. I want Greek letters to be italic in math mode and to use Vollkorn. In addition I need some symbols from fourier package. I have tried this: ...
1
vote
0answers
56 views

Combining fonts in XeLaTex

I have been able to combine math fonts thus \setmathfont{Asana-Math.otf} \setmathfont[range={"0370-"03FF}]{GFS Baskerville} \setmathfont[ range={"0000-"50,"52-"007F}, % minus () Numbers=...
8
votes
1answer
101 views

siunitx 'detect-all' does not honor fontspec's math font in Beamer

Problem statement The \sisetup{detect-all} option of the siunitx package does not work for me as expected in a Beamer presentation, which I would like to typeset as follows: Text in Latin Modern ...
5
votes
2answers
145 views

One font by default a bit smaller using fontspec

I have to typeset a few Hebrew words in a document, and for this I use xelatex with polyglossia and fontspec (MWE at the bottom). The problem is that this font has a larger x-height than the font I ...
4
votes
2answers
145 views

Making a new font family based on the default font

I'm running XeLaTeX on a Mac, and I'm getting into a lot of trouble with finding fonts. Here's my code (taken from here: Revisiting TIPA and Fontspec) \documentclass[12pt]{article} \usepackage{...
2
votes
0answers
83 views

latex \fontsize{12}{18} equals to MS Word 12pt and its linespace 1.5?

I use \fontsize{12}{18} in latex for 12pt and its linespace 1.5 in MS Word. But I think not equals. Why? And what is correct option in \fontsize{?}{?} ?
3
votes
1answer
133 views

No bold, italic and small caps with XeLaTeX

I switched my working document from pdfLaTeX to XeLaTeX. I have a problem with the font, because now Computer Modern Roman doesn't display bold, italic and small caps text (it works only in one page ...
1
vote
0answers
21 views

How to use the ornamental fonts locally? shall we have a possible list for the future use? [duplicate]

we come across the ornamental fonts, in most of the cases, especially in designing the title pages and chapter titles, parts, sections etc., How to identify the fontfamily name(or how to use the ...
2
votes
0answers
58 views

Linux Libertine does not show Cyrillic small caps (XeLaTeX)

I'm trying to output any non-latin (in this particular case Cyrillic) small caps with XeLaTex using the following source code: \documentclass{article} \usepackage{fontspec} \setmainfont[ ...
2
votes
0answers
76 views

LuaLaTeX changes font smoothing with polyglossia or fontspec (and math looks weird)

I’m using LuaLaTeX to typeset some mathematical documents in Polish. I use the lmodern font family, along with polyglossia and fontspec to get diacritical characters. However, whenever I add \...
3
votes
0answers
74 views

How can Bengali v.2 (bng2) be used to typeset Bengali with XeTeX?

This is a follow-up to this question about typesetting Bengali. As explained in both answers there, XeLaTeX can typeset Bengali given a suitable font using polyglossia and fontspec. For example, \...
1
vote
0answers
76 views

Warning message with fonts: Label(s) may have changed. Rerun to get cross-references right [on hold]

Why do XeLaTeX return this warning message: Label(s) may have changed. Rerun to get cross-references right. when using some fonts as Amiri and how one can get out of this warning message. I need ...
2
votes
2answers
142 views

How to use fontspec with palatino package?

I am trying to typeset a book in Palatino with a custom font, Rockwell, used for headings. I can easily set the book in Palatino by using the palatino package, if I use the fontspec package to import ...
4
votes
1answer
39 views

Errors with lualatex, siunitx and pgfplotstable replacing emdash

I'm referring to this answer from @Jake to replace the string --- of an input csv to \textemdash in a pgfplotstable table with the S column of siunitx. The provided solution works fine when pdflatex ...
4
votes
1answer
2k views

xelatex doesn't work with beamer and true type font

I am trying to use a true type font in my presentation but I cannot do that withxelatex. Pdf is created although a warning is displayed but font is not chosen one. Warning is below: (/usr/share/texmf-...
3
votes
1answer
341 views

fontspec and/or xdvipdfmx can't find certain fonts [duplicate]

This morning, I updated my MacTeX installation to the 2015 install. Unfortunately, something is now having some trouble with the font (Century/Century Schoolbook) that I use most [edit: everything ...
0
votes
1answer
328 views

Change MinionPro Math fonts

I have installed MinionPro.sty and like the text part of the font very much for my thesis. I do not like the numbers though since they disturb readability when there are many numbers in the text. So I ...
1
vote
1answer
75 views

LuaLaTeX: Unable to switch off ligatures in smallcaps

I am aware of a similar question, but that answer doesn't seem to help. I am unable to switch off ligatures when using smallcaps. The following MWE is using Minion, but I tried with many similar ...
5
votes
2answers
56 views

Missing \begin{document} in .cls file [closed]

I am using the template deedy resume. Here is my repo with my resume. I am getting an error in compilation. I have checked for BOM characters. I have reinstalled texlive-full. I am at a lost for ...
8
votes
0answers
91 views

Opentype fonts: A few wrong glyphs with current lualatex

As a happy user of TeXLive 2015, I came across a strange problem. With the current version (kept up-to-date with tlmgr), strange glyph substitutions occur with CronosPro and MinionPro, but not with ...
1
vote
1answer
46 views

XeLaTeX fontspec on Fedora 20

It's not recognizing \setmainfont as a command, if I understand this right. I switched to XeTeX from PDFTeX so I could use an OTF file on my system. This works no problem on my OS X 10.10 machine ...
4
votes
1answer
49 views

Using — to produce Kav Mafrid (Hebrew dash) in XeLaTeX

I am using XeLaTeX + polyglossia for Hebrew typesetting. Recently I have encountered an issue with producing dashes (Kav Mafrid, in Hebrew) in Hebrew texts. The issue arises when I am using ...
1
vote
1answer
105 views

LuaLaTeX font loader picks Regular variant from system font repertory but Bold from texmf-local

I have on my system for some years TrueType versions of a an older release of a (free) font (Vollkorn) in my texmf-local. I have now downloaded the more recent release, which has more variants, and ...
5
votes
1answer
146 views

How to create non-outlined SVG files from LaTeX formulae

Are there any ways of generating SVG files from LaTeX math formulae, that are not built from outlined glyphs? I.e., I want the SVG file to contain the math glyphs within <text> tags, not <...