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

learn more… | top users | synonyms

1
vote
1answer
29 views

How can I change to font used by hepparticles/hepnames with XeLaTeX?

I am trying to get the hepparticles/hepnames packages to work with XeLaTeX. I am using Libertine as serif font and Biolinum as sans font. The particle names are somehow rendered in the wrong font. ...
2
votes
0answers
24 views

Why can I not use the font name listed in the fc-list's output?

\documentclass{article} \usepackage{fontspec} \setmainfont{Helvetica Neue LT Pro 55 Roman} % This line is OK. \setsansfont{HelveticaNeueLT Pro 55 Roman} % This line is ERROR! \begin{document} Hello ...
0
votes
0answers
54 views

Use german umlauts with a font where its not defined

I need to use special font. There are no german umlauts defined. So everytime I get an error if I try to use them with my font (BentonSans): \documentclass[a4paper,10pt]{article} ...
2
votes
0answers
25 views

xetex cannot use font name instead of font file name even after “texlive-enable-fontconfig”

This article says xetex can only find fonts installed by texlive with its filename instead of font name, because xetex can only find fonts by font name in the system's font system. And here says with ...
9
votes
2answers
2k views

Math in Trebuchet MS

How can I write equations in Trebuchet MS? Ideally, I'd like to have the following results: All symbols that are available in Trebuchet MS are written in Trebuchet MS. That includes, e.g., Latin and ...
1
vote
1answer
31 views

Replace greek letters with its variants in case unicode-math is used

When unicode-math is used, the replacement of e.g. greek characters with its variants does not work as before: \let\phi\varphi What is the way to achieve the same with unicode-math? minimal ...
2
votes
1answer
38 views

Set width of tabular column to the width of tabular numerals

Take the following code: \documentclass{article} \usepackage[oldstyle, tabular]{libertine} \usepackage{array} \newlength{\period} \settowidth{\period}{9999--9999} \begin{document} ...
2
votes
2answers
41 views

Font changing back for no apparent reason

Writing up a rough grammar in XeLaTeX and using fontspec to change the default font to Bitstream Charter instead of CM. Everything works fine for the first page or so of output, but on the second page ...
24
votes
6answers
692 views

It doesn't hyphenate words ending with “—”

UPDATE Well. After a while, I decided to see again about this “problem”, and just discovered that in pdfLaTeX, using \usepackage[utf8]{inputenc} and the — (the unicode —, not the ligature ---) it ...
1
vote
1answer
50 views

Understanding font maps / Fonts in vanilla TeXLive installation on Ubuntu

I followed closely the instructions in this tutorial to install a fresh TeXLive on my Ubuntu system, including the fake package and the font cache instruction: sudo fc-cache -fsv Still, I am ...
0
votes
1answer
44 views

how to create article with multiple (unicode) languages

I want to create a book that will help Asian people learn English. The requirements are - the book should contain text from 2 different languages, say, Hindi and English. I tried this multi-lingual ...
1
vote
0answers
303 views

After updating to MacTeX 2013, font size and kerning of Monotype Corsiva are strange

I knew I probably shouldn't have upgraded, being not very experienced, I always have to wade through strange errors. However, this is really weird. Here's my example: %!TEX TS-program = lualatex ...
8
votes
1answer
89 views

LuaLaTeX: Load order fontspec, microtype (breaks hyphenation in bibliography)

The microtype documentation clearly states: With LuaTeX, load fontspec before microtype However, this breaks hyphenation in some cases in the bibliography, created with biblatex/biber. The same ...
1
vote
0answers
47 views

Colored mainfont with fontspec in a textblock yields to pdf error with LuaLaTex [closed]

When I (1) change the color of the mainfont with the fontspec package, (2) put some text in a textblock environment and (3) compile the document with LuaLaTex, the resulting pdf when opened with Adobe ...
1
vote
0answers
75 views

How to use the fontspec package in a LaTeX document?

I'm trying to make a simple document which uses the fontspec package in Tex Maker 4.4.1 with LuaLaTeX engine. Code I'm using \documentclass{article} \usepackage{fontspec} ...
2
votes
0answers
44 views

hairspace + hyphen as hyphen char with Fontspec

I would like to use for hyphen character the combination: hairspace + hyphen, in order to clearly but discreetly distinguish hyphenation from division. The traditionnal way (using another character, ...
9
votes
1answer
167 views

Why is \setmainfont case sensitive with XelateX but not with LuaLaTeX?

Consider the following MWE \documentclass{article} \usepackage{lipsum} \usepackage{fontspec} \setmainfont{tex Gyre Pagella} \begin{document} \lipsum[1] \end{document} If I compile it with LuaLaTeX ...
1
vote
2answers
88 views

Is there a way to specify that some given letters are always in bold?

I am writing an article, which requires the letters 'a', 'e', 'i', 'o', 'u' are always showed in bold. Given the following TeX file: \documentclass{article} % What should be put here? ...
6
votes
2answers
323 views

System-wide feature file in lualatex

I have a font (Dolly) with f_i and f_l ligatures, which requires a feature file to make them work. Everything works fine using the following: # dolly.fea languagesystem DFLT dflt; languagesystem ...
4
votes
2answers
91 views

Defining different scripts with fontspec

My actual problem: I want to typeset Tigrinya text, which is using Ethiopic (Ge'ez) script. But the text also contains numbers (which are afaik. in the latin script). So I've defined a new font ...
3
votes
1answer
72 views

Smallcaps don't work if fontspec's microtype is used in luaLatex

This could be a duplicate question of this one - but I'd say the problem there is still not solved. Consider the following example: \documentclass[a4paper,12pt]{article} \usepackage{fontspec} ...
1
vote
0answers
33 views

FontSpec Error in Ubuntu and TexStudio

I am using this code: \usepackage{fontspec} \setmainfont[Mapping=tex-text]{Courier New} I am getting this error: The font "CourierNew" cannot be found \setmainfont[Mapping=tex-text]{Courier New} ...
11
votes
1answer
764 views

Fake bold in LuaLaTeX

I am sometimes using a font that has no boldface, so I am wondering whether or not there is a way to use some fakebold-feature in LuaLaTeX. The fontspec documentation explains a feature for XeLaTeX, ...
0
votes
0answers
21 views

Should I use fontspec with XeLaTeX + xeCJK?

Everything is in the title. I am currently typesetting a bilingual (French/Japanese) document using XeLatex. xeCJK takes care of the Japanese part and polyglossia takes care of the French part. ...
1
vote
1answer
38 views

xetex fontspec error ubuntu

I'm using a custom style (not made by me) for a report and when I compile it using PdfLatex it works fine. However, when I want to use the house style fonts I have to compile it with XeLatex and I get ...
0
votes
0answers
34 views

Compiling letter using xelatex and Sublime Text 3?

I recently upgraded to Sublime Text 3. I have troubles compiling a letter template that requires the fontspec package and compilation with xelatex. I'm using the LaTeXTools package and tell Sublime to ...
2
votes
1answer
69 views

General guide on how to set up font families for luaLatex

In A Survey of Free Math Fonts for TEX and LATEX are great examples of harmonizing fonts in Latex. For example consider the text fragment for CM Bright: With pdfLatex it was sufficient to just ...
12
votes
2answers
13k views

Problem while compiling friggeri CV template with: ' fontspec error: “font-not-found”'

I have somme problem while I'm trying to compile template CV from: http://www.latextemplates.com/template/friggeri-resume-cv . I have install texlive-full package on Ubuntu and tryied to compiled this ...
3
votes
1answer
67 views

Letterspace all caps in document

How does one letterspace all uppercase letters in a document? I can achieve this for small caps with fontspec: \usepackage{fontspec} \setmainfont[SmallCapsFeatures = {LetterSpace = 7.5}]{Warnock ...
3
votes
2answers
130 views

Fontspec: Bold Small Caps with Alegreya Font

I'm using the Alegreya font in XeLaTeX and, after scouring the fontspec documentation, I can't figure out how to specify the bold small caps font (not to mention the italic small caps). I feel like ...
5
votes
4answers
409 views

Switching fonts in section titles while maintaining a serif/sans-serif distinction for ToC vs. title itself

The solution to this problem is probably something absurdly simple, but I'm too stupid to see it … Consider a document written in blackletter. German blackletter typography rules require latin words ...
2
votes
1answer
40 views

Locally redefining a macro within a section's short title

Background and Problem I'm using XeLaTeX to typeset a document in blackletter font, which requires the use of antiqua fonts for loan words and others. So I have created two commands to explicitly set ...
14
votes
1answer
192 views

Kerning and ligatures in TeX without TeX

I am trying to get the same output as in this answer by topskip (an extended version with comments is presented in the TeX without TeX article). I am getting a paragraph consisting of 6 lines with ...
6
votes
1answer
64 views

\text<language> (polyglossia) changes font

I'm using polyglossia to switch between languages in my documents and fontspec to define various fonts. The combination gives me the following problem. An MWE: \documentclass{article} ...
1
vote
0answers
61 views

Write in Persian without xepersian using Pdftex compiler

Currently I am using fontspec package to write Persian characters in my paper. As far as I know, fontspec needs xepersian to be compiled. My problem is this: we are going to submit our paper ...
0
votes
0answers
19 views

Normal numbers are superscripted when using \fontspec{<font name>}[Fractions=On]

This MWE produces superscripted numbers on my Windows machine. \documentclass{article} \usepackage{fontspec} \begin{document} \noindent \fontspec{Times New Roman}[Fractions=On] Should not be ...
18
votes
2answers
2k views

How should fontspec be set up to exploit the best features of Pro fonts?

Suppose that you have a Pro class fonts such as Adobe Arno which has several design sizes as described below: Design Size Size Ranges Caption: 8 point 5–8.5 point SmText: 10 ...
2
votes
1answer
89 views

Use an *.otf font with fontspec

I an running Tex Live 2012 and would like to use the font Fira Sans in my documents. Unfortunately it is a relatively new font so not included in any of the packages for this version of Texlive. ...
6
votes
2answers
55 views

Use monospaced numbers in gb4e's example number, but proportional elsewhere

I'm using proportional numbers in my document. But in gb4e's example numbers, I would like to have monospaced numbers, so that the width of the example parenthesis remains the same throughout my ...
4
votes
2answers
46 views

How to redefine the \ce-command in oder to force a specific font?

Prologue I want to write a document that I can output in both blackletter and latin typefaces just by commenting out a few commands and removing the comment signs from others. Because German ...
6
votes
1answer
492 views

Outline text using TrueType fonts

I'd like to write outlined text. Here is a minimal example, what I'd like to achieve. \documentclass[a4paper]{minimal} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} ...
10
votes
1answer
163 views

Letterspacing via microtype vs fontspec (in LuaLaTeX)

I've just realised that I can get somewhat similar letterspacing effects using either the microtype or fontspec packages; for example: \documentclass{article} \usepackage{fontspec} ...
0
votes
0answers
34 views

xeCJK - CJK text colors for customized commands not changing as specified

I'm using the template Deedy-Resume to create my resume. English version works fine, however I'm not sure how to create a Chinese version properly. I used the package xeCJK. The fonts are rendered but ...
2
votes
1answer
117 views

Missing font for friggeri cv (despite installation)

For my cv I'm using the friggeri-cv template, which was already was reason for serveral threads here. The template is heavily build on HelveticaNeue, which is installed on my system ...
1
vote
1answer
142 views

Tibetan unicode font not appearing properly [duplicate]

I am making a document using a Tibetan unicode font with XeLaTeX and fontspec. However, the text is not appearing properly. The super– and subscripted letters appear next to the base letter instead ...
2
votes
1answer
65 views

How can I use LuaLaTeX for `europasscv`?

I want to write a europasscv in the same format as my other material for application etc., for which I use LuaLaTeX. The problem up to now is that I can't even make use of TeX Gyre Heros as sansfont, ...
0
votes
0answers
189 views

miktex/xelatex & fontspec

Well I follow the suggestion here. I made sure l3kernel and l3package are activated. And the other two are uninstalled. However the error as described there still exists, so that answer is no longer ...
0
votes
1answer
45 views

Temporarily changing the math font in certain environments

A follow-up question to my earlier post here. In my document, I want to typeset the tables in a different font from the main text. I've managed to make that work for regular input. However, I ...
5
votes
2answers
111 views

italic small caps in Garamond #3?

I have the OTF files for Garamond #3 LT Pro, supplied by my publisher. I need to use italic small caps. The following MWE: \documentclass{article} \usepackage{fontspec} ...
2
votes
1answer
61 views

Selecting font features for tabular data

I am writing my thesis using (among others) the KOMA-script and fontspec packages. I would like to select the default sans serif font (and add some font features) for my tables. I know how to do this ...