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

learn more… | top users | synonyms

1
vote
1answer
79 views

Can't load system font by name with XeLaTeX but with LuaLaTeX

I installed a TrueType font in windows 10. Now I want to use it with XeLaTeX. The font can't be loaded. The first message is Sorry, but miktex-makemf did not succeed for the following rea son: The ...
2
votes
0answers
89 views

ucharclasses misbehaves with Spacing Modifier Letters and Combining Diacritical Marks

The ucharclasses package makes it possible to automatically switch fonts (or do other useful things) based on the Unicode block of characters. However, it seems to be having trouble resetting the ...
0
votes
1answer
72 views

including own fonts in xelatex with fontspec doesn't work for “bold” “italic” font faces

can't solve this problem. For my thesis I am forced to use ugly "times new roman", using the free "times" won't do it. That's why I tried {font spec} (only under XelatTex) to include my own font ...
0
votes
0answers
22 views

ltxdockit and non-latin characters

I know that ltxdockit is not really a properly supported package. Still, I would welcome if someone could help me. ltxdockit seems to have problems with non-latin alphabets. The following example in ...
1
vote
1answer
33 views

Replacing only the text font in beamer with XeTeX

I'm trying to make a beamer presentation in which only the text font is changed, but the math remains the same. I would have thought that this would do it, \documentclass[english]{beamer} \...
0
votes
0answers
34 views

polyglossia undoes font changes from ClassicThesis

I'm trying to use the classicthesis.sty style class together with polyglossia with the result that polyglossia reverts all the changes to the fonts made by (I assume) classicthesis.sty (palatino for ...
2
votes
1answer
45 views

Sgaw Karen and IPA text (TIPA and fontspec)

I am writing a paper about the phonetics of the Sgaw Karen language. Because of this, I need to include both Sgaw Karen text and IPA characters. To display IPA characters, it seems that I need to use ...
3
votes
0answers
43 views

Cochin and common ligatures with font spec

I'm using Cochin as main font in a XeLaTeX project, and having Cochin glyphs for common ligatures such a fi and fl, I would expect those ligatures to be used by the fontspec package—but that's not ...
5
votes
1answer
92 views

Dot bellow letter in bibliography.bib file?

Using the first solution in this answer, we get a dot bellow the letter with \d{s} command, but how does this work in bibliography.bib file? MWE: \documentclass{scrbook} \usepackage{fontspec} \...
1
vote
2answers
70 views

Force Font Choice in Beamer Document

I'm trying to set the font for a single part of my presentation (actually a single wordmark throughout), but as far as I can tell I'm not able to override the beamer defaults easily. Here's an MWE: \...
5
votes
1answer
117 views

What is the correct way to make \setmainfont take effect?

\documentclass{article} \usepackage{fontspec} \setmainfont[BoldItalicFont={Times New Roman}]{DejaVu Sans} \begin{document} 1. This is normal as expected. \textit{2. This is in italic as ...
2
votes
1answer
100 views

Using the Google Noto fonts with fontspec

I've been typing a multilingual document that uses Latin, Cyrillic and Georgian characters, and I'm utterly stumped as to how to get fontspec to select the right fonts. If I use the MWE below, it ...
4
votes
1answer
78 views

How do I enable a font feature?

I am trying to enable the Historical Ligatures feature in EB Garamond. The guide to the font calls this feature hlig. However, I have no idea how to enable the feature. I found a question that seems ...
1
vote
0answers
73 views

What is the font used by Nature magazine? How can we get the same or similar text font and math font in LaTex? [duplicate]

For example, in this paper: http://www.nature.com/nature/journal/v529/n7587/pdf/nature16961.pdf How can we get the same or similar text font and math font in LaTex?
3
votes
1answer
66 views

Greek letters doesn't show when use charter package

I download to my laptop CMU Serif font for greek letters, but when I insert charter package (because i want to write english bold text with it) the regular greek letters doesn't show. This is my code ...
4
votes
1answer
53 views

Spurrious warning when using mathdesign for Adobe Garamond Pro in conjunction with fontspec

I am using lualatex to typeset documents with Adobe Garamond Pro, using the mathdesign package with the "adobe-garamond" option for the math fonts. However, this nets me a warning upon loading ...
2
votes
1answer
60 views

Using another font in page number causes incorrect page numbering in XeLaTeX

In the following code when we use another font for page number, the page number starts from 2 in the first page. The pages are numbered 2, 3, 4, 5. However, the log message during compilation shows ...
2
votes
1answer
103 views

How many font styles of $x$ and $X$ can we use?

I want to use different variable styles in my dissertation. I'm currently using $x$ for a single random variable, $\mathbf{x}$ for a set of random variables and $\mathcal{X}$ for a state space. I also ...
1
vote
1answer
102 views

How to combine Helvetica and Symbol with LuaTeX?

For text and equation in figures I want to use the Helvetica font. Unfortunately the greek symbols from Helvetica are not really suitable. A number of publishers recommend to combine Helvetica with ...
1
vote
0answers
28 views

\XeTeXglyphbounds with nullfont

While typesetting a thesis I get following error messages when i use mathematical symbols. Can someone explain what do they mean and how to fix them? ! Cannot use \XeTeXglyphbounds with nullfont; not ...
2
votes
0answers
60 views

What do the various values of the Ligatures= option of fontspec do?

The fontspec package has a Ligatures option, usually encountered with the value Ligatures=TeX. This enables traditional TeX ligatures (or typing conventions) like mapping --- to an em dash. But what ...
2
votes
1answer
25 views

Font name appearing in index (left pane) of pdf

What is the reason that the font name is appearing in the index (left pane) of the pdf file. The MWE is provided: \documentclass{beamer} \usepackage{fontspec} \usepackage{bookmark} \usepackage{...
1
vote
0answers
51 views

Text greek symbol not appearing with fontspec package

What is the reason that \textalpha is not working when fontspec package is active? \documentclass{beamer} \usetheme{Warsaw} %\usepackage{fontspec} \usepackage[euler]{textgreek} \begin{document} \...
42
votes
1answer
383 views

How to keep a “rare” ligature from interfering with a “common” ligature?

In ligature-rich Opentype fonts which feature both "common" and "rare" ligatures, it can happen that a "rare" ligature is applied first to one character pair, pre-empting the use of a "common" or "...
4
votes
1answer
104 views

XeLaTeX + \setmainfont{CMU Serif} produces wrong characters

When I'm compiling with XeLaTeX and I use \setmainfont{CMU Serif}, the resulting characters are off by one. This means that an a becomes a b, a 1 becomes a 2, etc. \documentclass{article} \...
2
votes
1answer
100 views

Missing font with academicons.sty [closed]

I'm using TeXlive 2015 on Ubuntu 14.04. I have a file that looks like this: \documentclass{article} \usepackage{academicons} \begin{document} \aiicon{orcid} \end{document} When I do $ latexmk -...
3
votes
1answer
72 views

Two different “main fonts” in use; use only one for numbers

I have defined a mainfont, but have further defined its italics to come from a different font. My question: What is the simplest way to get the "original" main font back just for numbers? I wish to ...
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
99 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
63 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
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, ...
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} \...
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 ...
2
votes
2answers
67 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 \...
9
votes
1answer
133 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} \...
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
298 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 `...
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
137 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} ...
3
votes
1answer
98 views

Does XeLaTeX in TeX Live 2015 force unicode quotation marks? [closed]

Using XeLaTeX in TeX Live 2015 seems to break classic LaTeX quotations (or force unicode entry, depending on how one looks at it). Results TeX Live 2014 fontspec.sty 2015/03/14 v2.4c Font ...
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
2answers
56 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
108 views

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

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: ...
2
votes
1answer
220 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 ...