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

learn more… | top users | synonyms

1
vote
1answer
24 views

Using sans-serif font for chemfig

In my document, I'm currently using chemformula for chemical formulae. To draw reaction mechanisms I'm trying to use chemfig, but it's proving very difficult to get chemfig to use the same sans-serif ...
3
votes
2answers
35 views

Disable shorter line spacing on lines without ascenders/descenders (setmainfont)

I'm using a system font with fontspec, and I'm using the Scale option when I declare it with \setmainfont. I've found that whenever I use the Scale option, the line spacing is no longer consistent. ...
32
votes
9answers
12k views

How to get straight quotation marks?

How do I get straight quotation marks, i.e., " and ' in TeX? (No, \verb changes the font and this is unacceptable.) [Edit] I forgot to mention that I’m using XeLaTeX, and fontspec is a necessity. ...
4
votes
1answer
87 views

LuaLaTeX from texlive-2014: Command \textsubscript unavailable in encoding EU2

Here is a minimal example of a file that lualatex from texlive-2013 compiles fine: \documentclass[11pt]{article} \usepackage{fontspec} \begin{document} X\textsubscript{Y} \end{document} If I try to ...
3
votes
1answer
90 views

How can I use the SBS font in Xe|Lua|La|TeX and specify which words to replace?

The Sans Bullshit Sans (SBS) font uses (currently only three) ligatures to replace words that are hard coded into the font's internal glyph substitution table. How can I use the SBS font in ...
5
votes
2answers
96 views

How to get proper placed closing German doublequotes using lua|xelatex and Garamond Premier Pro Opticals (Regular)?

Using Adobe's Garamond Premier Pro Opticals (latest version: 2.104) the closing German doublequotes are set exactly above (instead of behind) a sentence's closing dot (e.g. questionmark is not ...
3
votes
2answers
65 views

XeLatex otf font won't load

I am very inexperienced with LaTeX. I have a tex file that has worked for a long time, then stopped without any changes to the file. We purchased NeueHaasGrotDisp font. I have the fonts in OTF ...
9
votes
2answers
164 views

Switching to lualatex: How to translate font setups?

I am a long-term pdflatex user. Once in a while I want to give lualatex a try (e.g., to try the recent TikZ graph layout engine). A couple of good answers here at tex.se describe what to do in that ...
1
vote
0answers
28 views

How to switch back to main language after \foreignquote (csquotes, polyglossia, lualatex)? [duplicate]

csquotes' \foreignquote{language}{text} does not seem to switch back all the language specific font features automatically. In my opinion the language specific changes should be applied only locally ...
2
votes
1answer
35 views

`fontspec` changes indention of itemize

When I add the fontspec package, the items in an itemize environment get an additional indention. You find the code in the following example, it is mainly from this question: \documentclass{scrreprt} ...
2
votes
1answer
71 views

Text Bold with fontspec [closed]

I am trying to use: \usepackage{fontspec} \setmainfont{Cambria} But I cannot manage to emphasise the text by using usual \textbf or \textit. How to do it on Mac? Or which is the closest to ...
3
votes
1answer
68 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 ...
3
votes
2answers
94 views

List renders incorrectly

In output of following LaTeX markup, the list is rendered incorrectly. What is wrong with it? \documentclass{article} \usepackage{fontspec} \newfontfamily\faFont[Script=Arabic]{Tahoma} ...
0
votes
1answer
36 views

How to select numbers from another font?

How can I change the numbers of the text font with the math font numbers and the other way around using XeLaTeX?
3
votes
1answer
499 views

TeXShop - XeLaTeX: How to include tamil scripts?

I am using TeXShop - XeLaTeX on a MacBook Pro with Mountain Lion. I used the following: \documentclass{article} \usepackage[no-math]{fontspec} \begin{document} அ \end{document} I got an ...
1
vote
0answers
33 views

How to contribute to FontAwesome? SVG, EPS to fontawesome? [closed]

I am very interested in contributing to fontawesome. I have some vector icons that I feel the community would benefit to use and I really like to add them to fontawesome. These icons are in svg and ...
2
votes
2answers
845 views

XeLaTeX with Polyglossia and Thai

The following example displays the English text alright, but not the Thai text. It is simply left blank in the PDF result. \documentclass{report} \usepackage{fontspec} \setmainfont{Times New Roman} ...
1
vote
1answer
34 views

Problem in fixing the bug of FontAwesome when compiled by XeLaTeX

I have followed the instructions that is given in this post for fontawesome icons that are too big using XeLaTeX. I was able to use FontForge and change the Em Size to 1000. I also used the following ...
1
vote
0answers
96 views

Copy and paste on iPad selects whole sentences after loading libertine

I have the following minimal document: \documentclass{scrbook} \usepackage{fontspec} %\setmainfont{Code2000} % works on texlive 2014 \setmainfont{Linux Libertine O} % does not work ...
0
votes
0answers
28 views

Incompatibilty of Helvetica Neue italic compiled by XeLaTeX when viewed using Adobe Reader

I am running MikTex 2.9 under TeXStudio in Windows 64 bit for compiling my resume that uses friggeri-cv, which can be downloaded here. When I review the pdf made by XeLaTeX in TeXStudio Internal PDF ...
1
vote
0answers
50 views

Problem in Printing Friggeri Resume/CV

I am using Friggeri Resume/CV template, which can be found here. This template is absolutely beautiful and easy to read on a computer. Its look is astounding and I just like it very much. However, ...
3
votes
0answers
63 views

Strange problem with additional space when figure floats away

I am using fontspec, floatrow and subfig together. When a figure floats away an additional space is inserted at the place where the figure is in the text. In cases in which the line before the figure ...
5
votes
1answer
135 views

Problem using .ttf fonts with XeLaTeX

I have some .ttf fonts in ~/Library/Fonts that I would like to use with XeLaTeX, but it can't seem to find them. For example, this will compile: \documentclass[]{article} \usepackage{fontspec} ...
4
votes
2answers
62 views

How can I set the \boldmath font with unicode-math?

I am trying to typeset a document in Linux Libertine, and I want to use the font for alphanumeric characters in math mode as well. I am using unicode-math, not mathspec, because I need to specify ...
1
vote
1answer
41 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. ...
3
votes
2answers
55 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 ...
3
votes
1answer
35 views

setotherlanguage{arabic} makes inline-tikz not to be typset inline

\documentclass{article} \usepackage{fontspec} \usepackage{tikz} \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguage{arabic} % comment that line, the problem disappears. ...
1
vote
0answers
39 views

Replace missing character (minus) in text font for use in siunitx with fontspec

I'm forced to use a commercial (Univers) font in my presentations, which obviously does not contain a dedicated \minus sign, which is called by siunitx. (Though I'm not sure if it is \minus or ...
5
votes
1answer
62 views

siunitx does not detect number style

Siunitx does not recognise the oldstyle numbers, despite the detect-all setting, can you help me? MNWE: \documentclass{standalone} \usepackage{fontspec} \setmainfont{TeX Gyre Pagella} ...
1
vote
0answers
63 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
33 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
44 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
45 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} ...
24
votes
6answers
707 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
71 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
57 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
318 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
119 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
55 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
93 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} ...
3
votes
0answers
49 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
175 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
89 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
325 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
113 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
96 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
52 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
798 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
26 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. ...