We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
41 views

How to change what \normalsize means on a per-font basis?

I'm trying to mix and match fonts, using a beta OTF font that a colleague recommended. But when I load the font at its default size, it's not a good fit with Computer Modern. I need \normalsize to ...
0
votes
0answers
38 views

Oldstyle numbers with \scshape

I would like to write \textsc{abc 123} and get small caps and oldstyle numbers with the current font. If I set \defaultfontfeatures[\scshape]{RawFeature=+smcp,RawFeature=+onum} I do get the small ...
4
votes
2answers
94 views

Define fallback font for missing glyphs in LuaLaTeX

I want to use "Hack" as the default font for source code. Unfortunately the font is missing some glyphs I use. If I use a glyphs that is missing in "Hack", I want it to be displayed automatically in ...
3
votes
1answer
95 views

Using Ryman Eco fonts in XeTeX

I'd like to use the Ryman Eco font for my XeTeX documents. The cause is that my students mostly prints them so I try to spare with ink (and try to be ec-friendly of course). But the font directly ...
1
vote
0answers
30 views

No update for externalized tikz figure because of font change?

There is something fishy going on here and i have no clue why. So please, help me to understand the issue and thx in advance. My problem: no update for tikz figure (see MWE) with specified font by ...
4
votes
2answers
60 views

Problems with µ, displaying ţ with sisetup option (for combination of siunitx, fontspec and kpfonts)

I have problems with the combination of using siunitx and displaying upright partial derivative symbols using: \usepackage[partialup]{kpfonts} The unit prefix µ is not displayed using this code: \...
0
votes
2answers
50 views

How to change an english LaTeX template to accept greek main text?

New to LaTeX here. My goal is to write a thesis in greek. If possible, I would prefer an answer which uses polyglossia package instead of babel. I have made a simple test document using the former ...
1
vote
1answer
69 views

XeLaTeX: unicode characters not in PDF

This question is related to this one: XeLaTeX - special unicode characters I've got the same problem of missing unicode characters in my PDF when generated with XeLaTeX. I used the following example ...
1
vote
1answer
69 views

odf files for arkandis fonts lack features in tex definitions

The Arkandis Digital Foundry publishes a variety of comprehensive font families, apparently expressing high artistic merit, under an open license. Support in LaTeX through external packages has been ...
6
votes
2answers
122 views

xelatex & libertine: \renewcommand\ttdefault no longer works

This MWE \documentclass{article} \usepackage{libertine} \renewcommand\ttdefault{lmtt} \begin{document} foo \texttt{bar} \end{document} previously (say, about one year ago) typeset bar with lmtt if ...
0
votes
1answer
63 views

How to Stretch Font Vertically—INLINE—without \scalebox?

Closely Related: Stretching text vertically Is it possible to stretch a font vertically—INLINE—without using \scalebox? For example, I would like to have a paragraph with italicized text, or small ...
2
votes
1answer
57 views

fontspec + xelatex: won't use small caps TTF

I wanted to use the Cormorant font family in my LaTeX document. I later learned that a Geramond variety of this family appears in the TeXLive distribution, but I was unaware at the time, and anyway I ...
1
vote
0answers
45 views

Tidying up my preamble for using Garamond throughout my thesis in Overleaf

I am quite inexperienced with LaTeX and am writing my PhD Thesis using it. I want to use Garamond throughout, and this has been a nightmare to implement. I have read lots of guidance on the various ...
3
votes
3answers
61 views

Fontspec doesn't find Tex Gyre Pagella Italic

I'm using XeLaTeX and when calling \newfontfamily\headingfont{TeX Gyre Pagella Italic} I get the message Requested font "TeX Gyre Pagella Italic" at 11.99997pt -> font not found, using "...
0
votes
0answers
18 views

Babylonian numbers 1-9 in Unicode [duplicate]

Can someone explain this piece of Unicode to me at some detail? It is supposed to print the numbers 1-9 in Babylonian notation, but I do not follow the carrets ^ and the syntax ^^^^^^0133fa\or \...
2
votes
1answer
60 views

XeLaTeX: Unicode math fonts cannot be found

I want to use math fonts with the unicode-math package. The code I wrote is \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{TeX ...
1
vote
1answer
49 views

warning: OpenType feature 'Ligatures=RequiredOff' (rlig) not(fontspec) available

What causes this warning, and how to get rid of it? I believe that I have installed some packages that make this warning, but I couldn't figure out how to undo this damage. P.S. I am using MikTeX 2....
1
vote
1answer
66 views

counters in theenumi 2

I have the following MWE using counters. At which place can I insert \stepcounter to increase always at the next \enumerate item? All positions which I've tried have failed with \endcsname error. \...
0
votes
1answer
52 views

How to use Calibri and other font options with TexStudio

I need to compile a file in 14pt, Calibri font, but I also need many math and editing packages. I get an error message when trying to compile in either xelatex Fatal fontspec error: "cannot-use-...
1
vote
1answer
29 views

Format Acronym description label in Abbrevation chapter

I want to format the whole label with a .ttf font, and got it to work mostly, only the marked part wont be formatted with aclabelfont: I want to use the same myfontfamily (defined with fontspec) for ...
0
votes
1answer
60 views

Load font style of OpenType font in lualatex

I got some problems loading .otf fonts with fontspec in lualatex. What I don't get is the following: Let's suppose I have several .ttf font styles. Then I will just specify them succesively for my ...
4
votes
1answer
38 views

Indexing of the enviroment enumerate by **babyloniannum** gives an error

I've tried to index my sentences like this: \renewcommand{\theenumi}{\roman{enumi}--\arabic{enumi}--\babyloniannum{enumi}} The MWE Example is this: but it gives an error as given below: \...
0
votes
0answers
15 views

Change font of section titles (scrreprt document) [duplicate]

I'm having trouble changing the font of (sub)section titles in my document, I'd like it to be the same as the font used for the main text but as of now, a sans serif font is used for titles and a ...
0
votes
1answer
26 views

Old answers don't work - XeLaTex fontspec crash on Texmaker [LaTeX error: “kernel/invalid-variant”]

I'm reviving an old issue which I have come across. There are many similar questions but dated from a few years. Basically using Miktek 2.9.7100 with everything up to date and Texmaker 5.0.3. I can'...
1
vote
1answer
56 views

What's the smart way of doing this thing?

First of all I'm an absolute noob(I can't stress this enough, this is my second week of using latex). I don't have any idea about the differences between the different compilers, but xelatex seems to ...
1
vote
0answers
28 views

Inconsistent horizontal spacing when using a new font in math mode

I am trying to work out a way of using the Optima font in both math mode and the main body of my text. The code I came up with is given below. It is by no means elegant, and if there is a better way, ...
1
vote
0answers
24 views

Change just the regular math font in document

I have the following document and wish to replace only the regular (not italic) math font with Liberation Serif to match the rest of the document. Is this possible? \documentclass[12pt]{article} \...
3
votes
1answer
59 views

nicematrix with fontspec

Why don't the nicematrix and fontspec package play well together? Here is a MWE: \documentclass{article} \usepackage{nicematrix} \usepackage{fontspec} \usepackage{lipsum} \begin{document} \lipsum*...
2
votes
1answer
113 views

Use Bahnschrift font with XeLaTeX

I'm looking to write a document with Bahnschrift, Microsoft's implementation of DIN 1451 font standard. So I made the code to see if I can have bold and italic font. % !TEX program = xelatex % !TEX ...
1
vote
1answer
66 views

Cambria fonts not working

I am experiencing the same problem with MikTeX 2.9 as I have with Overleaf, both using XeLaTeX. I need to use CAMBRIA.TTC fonts. The following example formats in both settings without bold and italics....
0
votes
0answers
58 views

How to force sans-serif fonts in matplotlib with xelatex PGF backend

This is a slightly borderline question for matplotlib-xelatex combination. I ma having an issue forcing a sans-serif font family in a png/pdf output of my matplotlib. I wanted to use tex rendering ...
1
vote
0answers
31 views

Fontspec and Symbolic Endnotes with Enotez

I am writing an article which requires the use of endnotes in general, and that the first endnote be an asterisk rather than a numeral. I am using the enotez package for the endnotes, and it works ...
2
votes
2answers
56 views

How get fonttable with otf fonts and XeLaTeX?

I'd like to see all the characters from Latin Modern Math. Running xelatex on the following gives error "Running mktexmf Latin...I can't find file 'Latin'". \documentclass{article} \usepackage{...
2
votes
0answers
47 views

Times New Roman with fontspec missing after update [closed]

After this morning's update of all my packages, Times New Roman cannot be found. Here's the file: \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} Text ...
0
votes
0answers
23 views

Fontspec cannot find OpenType features [duplicate]

And I’m back with more fontspec trouble. Recently, I asked a question about how to access a particular character variant using fontspec (here). Ulrike Fischer’s solution — to put a newer version of ...
0
votes
0answers
113 views

Why does \setmathfont{TeX Gyre Bonum Math} not work?

With XeLaTeX, the following source works as expected: \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{TeX Gyre Bonum} \setmathfont{texgyrebonum-math.otf} % this ...
0
votes
1answer
64 views

Option Numbers=Lining not working any more with font Constantia after MikTek Update

I need to use the font Constantia and thus compile my document with LuaLaTeX using \usepackage{fontspec}(Editor is TeXStudio). As I do not like the OldStyle numbers, I use \setmainfont[Numbers=Lining]{...
0
votes
0answers
28 views

How to make custom header/footer, marginnotes and use custom fonts in “memoir”?

I'm new to LaTeX. I'm using XeLaTeX on Linux Mint Tara to compile. Updated version of TeX Live is installed. Here's What I'm trying to make: Here are my queries: I have used fontspec package to ...
2
votes
1answer
105 views

Fontspec help, combining fonts

I am struggling with font selection. I just cant seem to get a grasp on this. I have a document class I'm developing which uses Latin Modern Roman, Trajan Pro, and Trajan Pro Bold. My needs are to ...
4
votes
1answer
99 views

Use Calibri for bold text and Calbri Light for everything else

There are so many threads about using different fonts in many ways, but still not what I'm looking for. I need to use Calibri Light as my main font, but then I can not have anything in bold. Using ...
1
vote
1answer
53 views

Way from *.tex file with \usepackage{fontspec} to html?

Once in a while I need to convert a *.tex file into html (to import it into a Word document). Usually I use tex4ht, recently I learned about make4ht. I have much respect for the current maintainer and ...
3
votes
0answers
80 views

Using .fontspec file with multiple defaultfontfeatures declarations

I am trying to create a fontspec definition file for Minion3 which includes all the optical sizes. I have it working when I define every thing in one single defaultfontfeatures definition: \...
0
votes
0answers
32 views

Latex use straight quotes by default [duplicate]

I understand that \textquotesingle can be used to insert straight quotes into text. Is there an option available to convert all quotes ' and " throughout the entire document into straight instead of ...
0
votes
1answer
74 views

Difficulty accessing character variant with LuaLaTeX and fontspec

I’ve already asked a similar question previously, but it seems the same trick doesn’t work. I am using the Junicode (1.002) font available at this link. I want to access the character variant for the ...
2
votes
1answer
64 views

Font doesn't change in math mode with mathasfont

I'm trying to change math font to sans serif font (the same I use in the rest of the document) with mathastext package. Letters change but numbers doesn't do it and I don't know why. This is my ...
1
vote
0answers
62 views

LuaLaTeX not outputting ligatures in Helvetica Neue TrueType Collection

Consider the following MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{HelveticaNeue.ttc}[ UprightFeatures = {FontIndex=0} ] \begin{document} ff fi fl ffi ffl \end{document} ...
2
votes
1answer
102 views

LuaLaTex not outputting small caps for Times New Roman

Consider the following MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} \textsc{smallcaps} \end{document} When I compile it using XeLaTeX, it ...
2
votes
3answers
55 views

Small caps with macron above using CMU Serif

I have some letters with macron above (in fact I have only ū and ā), they work pretty. But in small caps, when I set \setmainfont{CMU Serif} it totally fail. Instead of small cap letter, I get small ...
7
votes
0answers
117 views

Map all ASCII characters in document to Nemeth Braille

My goal is to type regular LaTeX input, and remap the fonts to produce Nemeth Braille. One answer to the question LaTeX to Braille was to download the font http://www.searchfreefonts.com/free/braille....
0
votes
1answer
42 views

Changing the size of the mathfont, except for the numbers

I need to use Tex Gyre Adventor as a font in my documents. This font has no math font, so I'd like to use the numbers of that font in math mode. I managed to do it using \setmathfont[range=up/{num}]{...