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

learn more… | top users | synonyms

1
vote
0answers
54 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
2answers
176 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 ...
8
votes
1answer
98 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
144 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 ...
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 ...
2
votes
1answer
70 views

Set font family default after loading it

fontspec offers the commands \setmainfont, \setsansfont and \setmonofont to load a font and set it as the default roman, sans serif or monospaced font, respectively. It also offers the command \...
4
votes
2answers
143 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
80 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{?}{?} ?
6
votes
2answers
140 views

XeLaTeX can't turn off small caps

I found a weird issue when using the free typeface Fontin. \documentclass{article} % Default font size and paper size \usepackage{fontspec} % For loading fonts \setmainfont{Fontin} \begin{document}...
3
votes
1answer
131 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
57 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
75 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
73 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
69 views

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

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
140 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
38 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 ...
0
votes
1answer
312 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 ...
5
votes
2answers
55 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
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 ...
2
votes
0answers
43 views

fontspec and background

XeLaTeX seems to calculate background positions different from pdflatex. I want to create a borderframe around a page using the background package. But unfortunately the result compiled with pdflatex (...
6
votes
2answers
140 views

How to tell fontspec to load a font using a specific glyph variant not available as a CharacterVariant

I would like to use OpenType Vollkorn with xetex but its "1" causes me problems. It has an alternate glyph (whose glyph name is "one.ss01"), which I can trigger via StylisticSet={1}. But this also ...
1
vote
1answer
103 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 ...
4
votes
0answers
26 views

LuaTeX: Check if a font is installed [duplicate]

I use different computers with different fonts installed. My favourite font is Frutiger, so whenever it is present at the machine I'm working on, this one should be used. Currently, I'm setting the ...
3
votes
1answer
177 views

Fontspec cannot read font names [closed]

XeLaTeX cannot compile the following MWE using fontspec. \documentclass{article} \usepackage{fontspec} \begin{document} Hello! \end{document} I get the following: ("C:\Program Files (x86)\MiKTeX 2....
6
votes
2answers
111 views

Is it possible to make TIPA's fonts available to fontspec?

I've finally accepted that it's not worth trying to use TIPA with fontspec, however, I do like its font. Specifically, I wish to continue using Latin Modern/Computer Modern as much as possible 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 <...
16
votes
1answer
125 views

Conflict between fontspec and geometry

Using the option lines=x of geometry does not give the expected result when the fontspec package is used in the same document. For example, declaring lines=40 does not result in 40 lines per page but ...
0
votes
0answers
120 views

Using MinionMath fonts with unicode-math in Xelatex

I am trying to compile the TeX document using Xelatex but getting the following error: Font \l_fontspec_font has only 8 fontdimen parameters. TeX: \documentclass[a4paper]{article} \usepackage{...
4
votes
2answers
87 views

Combination of newtx and fontspec breaks siunitx

I am trying to use newtx and fontspec on XeLaTeX, and it looked OK until I used siunitx. The problem is negative signs are not printed by \num etc. How can I fix this? Here is MWE: \documentclass{...
1
vote
0answers
32 views

How can I choose math font suitable for UTM Androgyne? [closed]

I use \setmainfont{UTM Androgyne} http://fontchudeputm.blogspot.com/2009/08/utm-androgyne.html in my document. Now I am looking for math font suitable for this font. How can I choose math font ...
1
vote
0answers
20 views

How to type this two letters in latex [duplicate]

and The first one look like $\xi$ but not completely the same.
3
votes
2answers
93 views

How to unset default Ligatures=TeX for main font? (TexLive2015)

As of TexLive2015 (as opposed to TexLive2013) fontspec predefines Ligatures=TeX. This results in double quotes being replaced by curly quotes. How can I disable this behavior? \documentclass{article} ...
3
votes
1answer
183 views

Using Pandoc and Xetex with Tufte-Handout class gives fontspec error

I'm using Pandoc with xetex to attempt to create a pdf from a markdown document. In the metadata of my document I have the following: --- documentclass: tufte-handout classoption: nohyper --- The ...
1
vote
0answers
41 views

Headings with classicthesis are small letters [closed]

I am using LyX and classicthesis, compiling with XeTeX. Now as I did an update, I had to use fontspec instead of fontenc. Now all headings and some other text like the author name on the tite page and ...
1
vote
0answers
73 views

Ligatures Stopped Working in XeLateX

I was recently writing a beamer presentation using Xelatex to load Arial Narrow as the font (work insists on Arial Narrow!), and using Ligatures=TeX to ensure double hyphens and quotations marks are ...
0
votes
0answers
21 views

MiKTeX - broken package combination fontspec / expl3 [duplicate]

I have some problems after installing the latest 64bit-MiKTeX as well as the latest packages through the package manager. It seems that there is a problem with the combination of fontspec and expl3 ...
2
votes
1answer
64 views

Warning when font lacks symbol

I have a document with \usepackage{amsmath, amsfonts, amsthm} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} With ...
4
votes
1answer
105 views

Can fontspec use fonts from SkyFonts?

On my Windows 7 system I installed via SkyFonts from Fonts.com: Sabon Next Display The font does not appear in C:\Windows\Fonts. However, it shows up in certain desktop applications, for example Xara ...
7
votes
1answer
141 views

Problem with interword spacing in LuaLaTeX

I have a problem with LuaLaTeX and interword spacing using fontspec. This is my MWE: \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase} \...
4
votes
1answer
65 views

Issue with TOC alignment when using fontspec and titletoc with font size >10pt

I am in the process of switching a large document to lualatex for various reasons, and I noticed an issue with the table of contents when the packages fontspec and titletoc are loaded together, AND ...
1
vote
0answers
288 views

XeLaTeX in El Capitan failing to compile

I have upgraded to El Capitan (OS 10.11.1) on a mid-2010 iMac. I run TeXshop (latest version: 3.57) with MacTex (July 2015 version). I find I can't typeset in XeLaTeX. I have tried replacing the ...
3
votes
1answer
130 views

What is \f@size and how can I convert the value between units?

What is \f@size? Why doesn't \convertto{\f@size bp}{pt} work? Microsoft Word uses big points to measure fonts according to a comment to this answer: http://tex.stackexchange.com/a/274609/13552 I ...
2
votes
1answer
119 views

Problem with fontspec and LuaLaTeX [closed]

I want to write in french, using Lualatex using TexStudio. Therefore, I need to use characters like é, è or à. As Lualatex uses UTF-8 there should not be any problem, but those characters are not ...
3
votes
1answer
59 views

Undefined control sequence pdftex_strcmp fontspec

I am trying to use latex on a CentOs machine. I have it working on my windows machine. I installed texlive-*. I am using fontspec and ultimately copied it from my windows machine into /usr/share/...
6
votes
2answers
210 views

Obtaining features from EBGaramond font in ConTeXt

I want to use EBGaramond font "historic" features in ConTeXt the same way as I could use them from LaTeX but without success. I think I am missing something in my ConTeXt but I am not able to see what ...
4
votes
1answer
81 views

WordSpace factor does not increase again

I am trying to understand how the WordSpace factor of fontspecs's \addfontfeatures works. The word space is decreasing when I lower it, but not increasing when I increase the factor again: \...