{fontspec} is a package for loading {opentype} fonts in XeLaTeX and LuaLaTeX.
13
votes
1answer
584 views
TeX accents do not seem to work with fontspec and xe/lua/latex
I am using Minion Pro as mainfont and it does not have in its glyph table the character U+1E47 Latin small letter with dot below which I need only once in my document. Rather than change to another ...
18
votes
1answer
2k views
Load fonts that are in a ./fonts directory
I'm new to TeX. I have the following problem: How can I load a font from a file in a directory, which is located in the root of the project?
Say I have something like:
/project
/fonts
...
2
votes
2answers
2k views
Use of \scshape or \textsc with fontspec/xelatex
I've already tried Use of \scshape or \textsc in beamer \institute fix with \rmfamily in the MWE below, but it doesn't work - I've seen A problem with \textsc as well, but I don't think I should load ...
6
votes
1answer
938 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
567 views
Lining numbers not working in certain fonts
I’m using the Linux Libertine font and have old style numbers enabled.
However, in a certain context I want to use lining figures instead. Normally I should be able to switch using \addfontfeature ...
19
votes
2answers
2k views
An example of changing kerning of a font in LuaLaTeX
LuaLaTeX, through the luaotfload package, is able to dynamically add and modify features and properties of a font. This is performed by using the FeatureFile option in fontspec when loading a font; ...
18
votes
3answers
3k views
How to scale Tikz drawings and text together?
I'm trying to build a diagram (a logo, actually) that I can scale easily through a parameter. I'd like to be able to scale both drawing and fonts through a single parameter.
Here's my current MWE, ...
15
votes
1answer
715 views
fontspec with Helvetica breaks quotes
The usual quoting with `` and '' doesn't work anymore after including this (which also changes the engine to XeTeX):
\usepackage{fontspec}
\setmainfont{Helvetica}
They are just printed verbatim in ...
7
votes
1answer
398 views
Use stylistic set variations only for certain glyphs
Some fonts include stylistic variations of certain glyphs. But it seems like there is only a global switch for these alternates, as in this example from the fontspec manual:
\fontspec{Linux ...
4
votes
1answer
710 views
textls breaks smallcaps with luatex
I'm switching a code to LuaTex from XeTeX. In XeTeX, I had a combination of tracking and small caps using LetterSpace and WordSpace parameters in fontspec calls, but these are not supported in with ...
13
votes
0answers
363 views
LuaLaTeX + fontspec: cannot compare documents with Acrobat
I use the option "compare documents" in Adobe Acrobat Pro a lot to highlight changes between revisions. What I just noticed is, if I compile a simple document such as the one below with LuaLaTeX + ...
12
votes
3answers
265 views
How can I access a specific glyph in LuaLaTeX/Fontspec?
The OTF version of Minion Pro contains several Dingbats glyphs I would like to access. Some of them are not unicode, so I can not just copy the specific unicode character I want to access into my text ...
11
votes
1answer
473 views
Getting started with Greek and Hebrew in LuaLaTeX
I am typesetting a 17th century English theological document that uses a smattering of Greek and Hebrew. I am using LuaLaTeX with TeXShop on the Mac.
Is LuaLaTeX up to the task? If so what are the ...
9
votes
1answer
221 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, ...
7
votes
2answers
2k views
LuaLaTeX, fontspec and tracking with microtype
I try to get microtype's tracking working but without success: up-to-date TeXlive 2011 (lualatex 0.70.1) with microtype v2.5 beta 07. Sample code:
\documentclass{article}
...
12
votes
1answer
434 views
Using TIPA with fontspec
I'm trying to write a document that will contain characters in many different scripts (for which I am using fontspec and rendering with xelatex) and IPA symbols (for which I am using TIPA). ...
6
votes
2answers
411 views
How do I get fontspec to work with text color white in XeLaTeX
In a previous question ( How do I globally set the text color in XeLaTeX ), I've asked how to globally set a text colour in XeLaTeX and got some excellent answers.
However, while the proposed ...
6
votes
2answers
795 views
Change XeTeX fonts automatically depending on Unicode blocks
I would like to move from p(La)TeX (which was a TeX system specifically tailored to Japanese in a pre-Unicode era) to Xe(La)TeX, and I'm having a problem.
In p(La)TeX, Japanese fonts are only used ...
14
votes
2answers
1k views
Lualatex: Font table with examples
I wanted to create a table of the fonts on my machine with short examples of each. So I got the function below and tried to modify to print the font in its typeface. (LuaLatex)
...
11
votes
3answers
2k views
Using MinionPro for the main font and Fontspec for the monospaced font
I am using Minion Pro for my document's main font and would like to use Consolas for my code listings.
I know that I can set the monospace font using fontspec and setmonofont, but it seems I cannot ...
7
votes
5answers
2k views
Hand written fonts in LaTeX/XeTeX/LuaTeX
Recently my struggle to find out some handwritten fonts for some document led me to this question.
What are the various packages that give nice looking handwritten and / or calligraphic fonts?
I ...
10
votes
2answers
589 views
Kerning issue with Adobe Garamond Pro: XeTeX or font file to blame ?
I have run into a strange kerning issue, limited to the German letter pair Wä, when using the Adobe Garamond Pro font with XeTeX. The document looks great except for that particular pair. But see for ...
10
votes
1answer
2k views
XeTeX, microtype and fontspec
I am using XeTeX from TL2010 with microtype 2.5 beta and fontspec. My main font is Linux Libertine O. I do not see a single difference with and without including the microtype package.
Am I doing ...
10
votes
3answers
2k views
How to enable ligatures for emdash/endash in LuaTeX ?
I cannot switch on ligatures for emdash (---) and endash (--) in LuaLaTeX. Here is my test file:
% !Mode:: "TeX:UTF-8"
\documentclass{article}
\usepackage{fontspec}
...
7
votes
2answers
2k views
Finding a font for XeTeX
I am trying to customize this document, it's a CV template for XeTeX. What I'd like to be able to do is change the main font. I belive the section of the code I need to change is this:
%FONTS
...
25
votes
1answer
502 views
In lualatex, hyphenation doesn't seem to work for words that contain certain ligatures
It would seem that hyphenation does not work properly under LuaLaTeX if the hyphenation points occur at places where TeX inserts ligatures. Consider the following MWE, which (i) provides hyphenation ...
10
votes
4answers
972 views
Fake small caps with XeTeX/fontspec?
Using XeTeX and fontspec, I use the Liberation font family in of my documents. Unfortunately those fonts (esp. Liberation Serif) do not natively support small caps.
Is there a way to enable fake ...
7
votes
2answers
297 views
Internal error: bad native font flag (XeLaTeX, fontspec, newtxmath, libertine, \dot)
I'm trying to use \dot{P} in a math environment.
MWE:
\documentclass{scrartcl}
\usepackage[no-math]{fontspec}
\usepackage{libertineotf}
\usepackage[libertine]{newtxmath}
\begin{document}
...
5
votes
1answer
218 views
Importing missing glyphs in font
I'm using a title font which has very few characters, and I need '+' and '=' for a given title, which are missing. Using fontspec, is it possible to import only these two missing glyphs from another ...
5
votes
1answer
869 views
Using Graphite fonts on XeLaTeX
I want to use a Graphite font as the main font in a XeLaTeX document, but fontspec doesn't support Graphite fonts yet. Currently I'm using XeTeX's native way to change fonts, but that's cumbersome, as ...
3
votes
2answers
2k views
XeTeX not working on Ubuntu 10.04?
When trying to compile a LaTeX document in Ubuntu 10.04 with xelatex I get the following error message:
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
restricted \write18 ...
12
votes
1answer
209 views
Why use \DeclareTextFontCommand vs. just \newcommand?
Why should I use \DeclareTextFontCommand vs. just \newcommand?
In the answer to my previous question, @egreg said:
With \DeclareTextFontCommand you get a robust command that will remain
...
11
votes
1answer
560 views
xelatex stopped working after TexLive2011 update 2 days ago
I updated Tex Live 2011 a couple of days ago and I can't run XeLaTeX anymore on a document I was working on. When it runs it gets stuck and I have to abort it. Resulting in the following error. I've ...
10
votes
1answer
309 views
text figures (old style numbers) and mhchem
How do I achieve lining figures with mhchem while maintaining text figures in the text (lualatex).
My MWE is:
\documentclass{minimal}
\RequirePackage[paperwidth=70mm, paperheight=20mm, left=10pt, ...
9
votes
1answer
238 views
What is the implication of the warning in the fontspec manual with respect to babel and LuaTeX?
In the fontspec manual, there is a section on LuaTeX that states:
babel The babel package is not really supported! Especially Vietnamese, Greek, and Hebrew at least might not work ...
7
votes
1answer
304 views
Whatever happened to \newfontinstance?
I just installed a pretest version of TeXLive 2010 and tried compiling some files as a test. None of my XeLaTeX files compile because apparently the command \newfontinstance (which was defined in ...
6
votes
1answer
430 views
\setmainfont{Linux Libertine O} uses pfb files instead of otf
(This is sort of a follow-up to libertineotf and xelatex - bold smallcaps broken?, based on a problem that I had noticed earlier, but hadn't put my finger on.)
\documentclass{article}
...
4
votes
2answers
133 views
Removing ligatures when using fontspec
This is a follow-up question to Currency symbol: French franc.
Consider the following code:
\documentclass{article}
\usepackage{fontspec}
\usepackage{siunitx}
\DeclareRobustCommand*{\myfranc}{%
...
0
votes
1answer
1k views
Set the “font-weight: lighter/ bolder”
I need to know how to set the "font-weight: lighter/ bolder"
font-weight: lighter/ bolder
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\font\ta="Times New Roman":color=ff0000 ...
20
votes
7answers
5k 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. ...
11
votes
2answers
1k views
Selecting main math font in LuaTeX?
I’d to set some fairly simple maths in Minion Pro (and potentially other system fonts), using LuaTeX. I’d hoped that something like the following should work:
\documentclass{minimal}
...
10
votes
1answer
547 views
using Hoefler Text font under lualatex and MacOSX
I'm having unexpected problems getting the "Hoefler Text" font to work when using LuaLaTeX (under MacTeX2012, all the latest updates installed) on a Mac (MacOS X 10.7.4). The following MWE
...
15
votes
1answer
834 views
fontspec, lua, microtype: Renderer=Basic no longer working for specific font styles
You may have noticed that, as of now,* letterspacing small capitals is not as easy as it was in pdfTeX, where we could simply combine \textsc with microtype's \textls. Consider this example, which ...
12
votes
3answers
3k views
Fontspec: Palatino with small caps and old-style figures
For various reasons, I’m using the fontspec package.
However, I’d also like to use Palatino as the document’s main font, and I want to use it with small caps and old-style figures.
So I’ve got four ...
6
votes
1answer
1k views
Table of Contents Style
I really enjoy the table of contents formatting (all sections of a chapter in a single paragraph), of the Motion Mountain's physics books. Does anyone know how to reproduce that kind of style? Is ...
19
votes
2answers
626 views
How to get Wikipedia W from Linux Libertine?
How can I get the Wikipedia-looking crossing-w from Linux Libertine font?
They talk about it on their homepage and in the wikipedia article, but I can't find an example of how to actually produce it.
...
12
votes
1answer
248 views
Towards a \ucshape and \textuc command for uppercase text (XeTeX, LuaTeX)
While we have \textit and \textsc, \itshape and \scshape etc., there's no \textuc and \ucshape to typeset its argument in uppercase. There is \MakeUppercase, but -- as uppercase is not a font style -- ...
10
votes
3answers
3k views
Switching back to Computer Modern within XeLaTeX
Until I select a font using \fontspec{ ... }, XeLaTeX uses the default of Computer Modern. Once I select some font, I have no idea how to re-select Computer Modern. Can anyone help?
5
votes
2answers
1k 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 ...
3
votes
1answer
3k views
Xelatex / Fontspec how to load fonts directly from diskfile (Postscript Type 1 fonts)
I have a directory containing a Type 1 Sabon font I want to use in Xelatex. I want to use the font by specifying the filenames using the fontspec package. I specifically define the bold and italic ...


