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

learn more… | top users | synonyms

0
votes
1answer
62 views

Palatino package and fontspec

I want to use the palatino package in XeLaTeX but I often use accented letters so I also load the package fontspec. However, after loading the fontspec package I get the error: LaTeX Font Warning: ...
0
votes
0answers
133 views

XeLaTeX with fontspec gives “Undefined control sequence” error after MiKTeX update - volume 2

I have the very same problem as in XeLaTeX with fontspec gives "Undefined control sequence" error after MiKTeX update. But in my case, repeatedly running the two MiKTeX updaters does not ...
1
vote
0answers
20 views

“Debugging” installed fonts. Which font is mapped to which serie/shape?

I installed some new fonts using autoinst. Now I have a problem finding back the font family/shape/serie which belongs to my bold font which I believe I installed it. After I did: \usefont{T1}{&...
0
votes
0answers
54 views

Use Fandol fonts to create PDF with Chinese

I am using xeLaTeX to create PDF with Chinese characters. This is my code: \documentclass[openany,a4paper,11pt]{book} \usepackage{ctex} \setCJKfamilyfont{song}{FandolSong-Regular.otf} \...
2
votes
0answers
49 views

LuaLatex removes ligatures with LetterSpace

If I compile the following (M)WE with LuaLatex, all the possible ligatures are removed. This does not happen with the standard font or if I remove the \defaultfontfeatures{LetterSpace=1} or if I set ...
2
votes
0answers
60 views

Adding default font features to \sffamily

It seems I can't add any extra default font features with fontspec after the font is set e.g. with \setsansfont. Code: \documentclass[10pt,a4paper]{article} \usepackage{lipsum,fontspec,xcolor} %% &...
2
votes
1answer
44 views

How to use 'BoldFeatures' to colorize bold texts, but override that color for individual text strings?

In my document preamble I use the following code to set my desired font and at the same time to set as default text colors different gray values for italic, bold and bold-italic text: \usepackage{...
2
votes
0answers
81 views

Tex document not building in new computer (fontspec)

I have a resume written in Tex that was working just fine. I had to change my HD drive due to a problem. I installed Miktex 2.9 and TexMaker again and configured the packages to download and install ...
7
votes
1answer
112 views

XeLaTeX, fontspec and printing the name of the current font

Is it possible, using XeLaTeX and fontspec.sty, to write a macro, say, \printcurrentfont, such that it would print the name of the font currently in use? I have looked through the fontspec ...
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 ...
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 ...
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 ...
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 ...
3
votes
1answer
164 views

Substitute a character by another one (Lualatex)

The lowercase figures of Adobe Garamond Pro are very nice, but the 1 can be confusing: Is this 11 (as it should be) or 2 in Roman? I would like to replace automatically this lowercase 1 with ...
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 ...
1
vote
1answer
181 views

TexPad and fontspec package

I am compiling a .tex file with XeTeX from the cloud on an Ipad with TexPad. Whenever I try to load the fontspec package, it fails. Does anyone have any experience with this problem? Can TexPad simply ...
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
37 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
46 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
44 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
71 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
118 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
101 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 ...
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?
10
votes
1answer
295 views

querying whether a font feature has been activated via a fontspec command

A LaTeX package I'm currently writing makes use of -- and definitely requires -- some of the power of LuaLaTeX. I would like to make my package's user interface -- in particular, the options that need ...
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 ...
9
votes
3answers
321 views

Define a new \XXseries macro for light fonts

Is ist possible to define a new series with fontspec? I tried the following but … it throws an error if the font doesn’t have a light version instead of replacing the font, like \bfseries does. In ...
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 ...
1
vote
1answer
103 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 ...
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 ...
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 \...
2
votes
1answer
102 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 -...
42
votes
1answer
384 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 "...
15
votes
5answers
11k views

How to print \frac{1}{2} by a single Unicode character?

I am looking for a command which would print simple fractions like 1/2, 1/3 etc using glyphs available in modern TTF/OTF fonts. Ideally, I want this command to output ordinary \frac{1}{2}, \frac{1}{3} ...
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} \...
3
votes
1answer
73 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 ...
57
votes
2answers
8k views

microtype settings for dummies

More than a year ago, a friend of mine was totally excited about microtype features in LaTeX. He was talking about it quite a bit and then said to me: "Show me your document, let me add some lines of ...
4
votes
1answer
105 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} \...
1
vote
1answer
76 views

XeTeX \section{} doesn't show Thai fonts

I'm learning XeTeX mainly because it enables typesetting in my native language (Thai). With normal pdfLaTeX, arranging the document into sections was easy and intuitive, and I hope to be able to do ...
8
votes
1answer
2k views

Latest MiKTeX-Update broke XeLaTeX with fontspec

I updated MiKTeX a few days ago and since then I cannot compile XeLaTeX with fontspec anymore. \documentclass{article} \usepackage{fontspec} \begin{document} Hello world! \end{document} When I try ...
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
100 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 ...