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

learn more… | top users | synonyms

14
votes
3answers
3k views

Proper way to change a font temporarily with fontspec

I have been using fontspec in a lualatex document where as instructed by the manual I set my main/sans/mono font in my preamble with some default features. However at some point I wish to temporarily ...
4
votes
1answer
1k views

Font mixup with Neo Euler and Fontspec

For my document I would like to use Linux Libertine as main font and Neo Euler as maths font. However, there seems to be some conflict with the code I am using. Here is a MWE and its output: ...
4
votes
2answers
1k views

Set section and subsection header to ttf font in KOMA-script

I'd like to set a custom font I acquired for all section and subsection headers in a scratcl paper I'm writing. It's a ttf and installed correctly on my Mac. I know about \setkomafont and ...
7
votes
2answers
951 views

Linux Biolinum O messes up moderncv Package

Take the template.tex example file from http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/examples and add these two lines: \usepackage{fontspec} \setsansfont{Linux Biolinum O} Then run ...
6
votes
2answers
7k views

Angle brackets in non-math-mode text

Is there a way to directly input angle brackets into text without resorting to math-mode symbols? I'd like to correctly indicate orthography in a linguistics paper, and have been resorting to single ...
33
votes
7answers
9k 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 ...
1
vote
1answer
228 views

Meaning of fontspec related error

I've edited a document. The edited document works well on my system, but apparently reports this error on another system: Undefined control sequence. <argument> ...ontspec_tmp_int\endcsname ...
2
votes
1answer
664 views

Trying to create a trifold leaflet on A3 paper using xelatex

I'm trying to make the program for my wedding. Basically what I want is for each program to be a single sheet of A3 printed front and back in landscape orientation and folded into three panels. This ...
1
vote
1answer
303 views

Fontspec transparency problems

I'm using this minimal document to test transparency: \documentclass[11pt]{article} \usepackage{xunicode, xltxtra} \defaultfontfeatures{Mapping=tex-text} \usepackage{fontspec} ...
0
votes
1answer
495 views

Specifying eulervm as mathfont in fontspec

Is it possible at all to set the Euler Virtual Math fonts (or other post script math fonts) in fontspec using \setmathrm. I want to this, rather than just loading the package, because I would like to ...
2
votes
1answer
416 views

Biblatex bibliography quotes break when using fontspec

As soon as I use fontspec in my biblatex xelatex document, my quotes stop appearing as proper quotes ", and start appearing as a pair of `` and ''. My minimal working example, first: ...
22
votes
2answers
1k 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. ...
9
votes
3answers
5k views

Change the font of the block quote?

Sorry if this is a duplicate, but I can't find the right way of doing this. I want to redefine my quote and quotation commands to use a different font. My main font is Linux Libertine O (I am using ...
4
votes
1answer
958 views

Open Type Fonts have different scale in XeLaTeX

I am trying to create a template that allows easy switching of the main font using fontspec. I have noticed that the size of different fonts varies greatly, as the picture below illustrates. If we ...
2
votes
1answer
654 views

fontspec FakeBold affects text in graphics

In the minimal example below (compiled with XeLaTeX in MacTex), the FakeBold option in package fontspec works as intended for the main text, using Times to represent the non-default font I am using in ...
32
votes
1answer
1k 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 ...
19
votes
1answer
4k views

XeLaTeX warning: Redefining document command \oldstylenums with arg. spec. 'm'

I updated my MiKTeX to the newest version a few days ago, and after this when I compile documents with the fontspec package included, there's a warning. For example: \documentclass{article} ...
10
votes
1answer
433 views

ledpar: Get rid of any space between paragraphs while retaining the synchronization of the pagecontents

My question: Is there a way to simply get rid of any space between the paragraphs of ledpar- while retaining the pagesynch? (I understand that synchronizing paragraphs is a feature of ledpar, put I ...
2
votes
0answers
92 views

Randomizing font selection in XeLaTeX, per character [duplicate]

Possible Duplicate: The effect of the anonymous letter I have a bit of a programming question, and I think it's in line with what LaTeX (XeLaTeX in my case) is suited to do. I would like ...
19
votes
2answers
4k views

How do I change the font size in LuaLaTeX?

\documentclass{minimal} \usepackage[paperheight = 140mm,% comprimento paperwidth = 200mm,% altura margin = 10mm % tamanho da margem ]{geometry} ...
3
votes
1answer
4k views

hyperref error when using XeLaTeX and fontspec with LaTeXmk

I have defined a compilation tool for TeXWorks as follows: Program: latexmk Arguments: -e $xelatex=q/xelatex $synctexoption %0 %S/ -pdf $fullname It works fine in ...
2
votes
1answer
633 views

How do we install additional fonts for xepersian on MiKTeX 2.9 Win XP/Win 7 [closed]

I want to install several fonts such as IranNastaliq Niloofar and several others. How is this done?
10
votes
2answers
1k 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 ...
3
votes
1answer
488 views

MiKTeX portable fontconfig file location configuration

I moved MiKTeX portable to another directory, and after that there are issues with loading fontconfig. Specifically, when compiling with xelatex, fontconfig cannot be loaded. Its location is ...
3
votes
2answers
1k views

LyX and mathspec gives fontspec error, unicode-math no better

I get the following error message whenever using mathspec in LyX ...Package[\eu@zf@math]{fontspec}[2008/08/09] The package fontspec has already been loaded with options: [] There has now been an ...
9
votes
1answer
1k views

Basic kerning with XeTeX

Trying to use custom fonts with LyX, so I started using XeTeX. Unfortunately, It seems kerning only works with certain OpenType fonts (Linux Libertine) but not for others (Doulos SIL or Charis SIL). ...
17
votes
1answer
4k views

What math fonts are available that work in xelatex?

For LaTeX, we have the Font Catalogue which is a good resource for fonts available through LaTeX. There doesn't appear to be a similar resource for Xe(La)TeX. So let's say I'm bored of computer ...
7
votes
3answers
1k views

What does 'font name' in the fontspec package refer to on a Mac

On a Mac using XeLaTeX and the fontspec package, what is meant by font name? The Font Book application lists several possibilities: PostScript name Full name Family I.e. which name should I type ...
8
votes
2answers
3k views

What fonts should I specify to render Tufte documents using XeLaTex?

What font specification commands should I have in my Tufte-based document if I'm rendering it using XeLaTex? My document renders as expected using pdfLaTeX, but when I switch to XeLaTeX, though ...
2
votes
2answers
2k views

Changing ToC subsection entry font in scrartcl

I have changed the default serif font of my document to use old-style numerals (I think they look quite nice). However, in the serif entries of the subsections (section entries are in a sans-serif ...
2
votes
1answer
233 views

antt is not compatible with fontspec

The code \documentclass{article} %\usepackage{fontspec} \usepackage[condensed,math]{anttor} \usepackage[T1]{fontenc} \begin{document} 0123$0123$ \end{document} run well when I compiled with ...
5
votes
1answer
3k views

kpathsea/fontspec does not recognize a font whose name has a space in it

Using XeLaTeX and the fontspec package, I am experiencing problems using fonts whose name includes the space character. Here is a simple example: \documentclass{article} \usepackage{fontspec} ...
1
vote
1answer
1k views

MacTeX 2011, Xetex and Tex Live Utility

I tried several times to play with XeLaTeX (being used to "classical" LaTeX) but since I installed MacTeX 2011 and updated it with TeX Live Utility, I got that kind message : ...
11
votes
1answer
496 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, ...
3
votes
1answer
679 views

Automatic switching of math font based on current text font

I'm writing a document using xelatex and have set up my document fonts using fontspec as follows: \usepackage{fontspec} \setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O} ...
3
votes
2answers
1k views

Weird behavior when using small caps and slanted fonts with fontspec in XeLaTeX

I use XeLaTeX and the fontspec package. Now, I like to use Linux Libertine as standard font. The slanted (not italics) characters are stored in a different font. Now, to use them with \slshape, I ...
4
votes
1answer
595 views

Zhuyin fuhao tone marks ignoring \setCJKmainfont

My documents usually contain an equal amount of Chinese and English. Here is my preamble, which I found in a manual somewhere: \documentclass{ctexbook} \setmainfont{Minion Pro} ...
19
votes
1answer
3k 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 ...
10
votes
1answer
667 views

Using a fancy font for mathmode, falling back to XITS for missing symbols

I'm using a silly font inside an environment, so that the text inside looks quite different than the surrounding text. However, I am having trouble getting mathmode to look silly, but legible. ...
4
votes
1answer
578 views

Follow up question: TeX accents do not seem to work with fontspec and xe/lua/latex

This is a follow up to this question. How would the same look for the dot above? That is, what's the standard definition for \. ? Or does somebody in the meantime know a better solution to the whole ...
4
votes
0answers
183 views

Is this a fontspec bug or a font bug [duplicate]

Possible Duplicate: Lining numbers not working in certain fonts I want to use the OpenType features of the Calibri font, but things are getting weird here! I am using LuaLaTeX from the ...
8
votes
2answers
899 views

Is there a way to control scope of fontspec font change?

I would like to limit the scope of \fontspec to just one or a couple of words in my paragraph, for example: Vivamus gravida lacus a sapien \fontspec{The Font Name}{interdum} eget interdum mi ...
14
votes
2answers
4k 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} ...
5
votes
1answer
1k views

How to use \texttt with CMU Typewriter Text in XeTeX?

The following example won't compile \documentclass[xetex,sans,mathserif]{beamer} \usepackage{fontspec} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text} ...
7
votes
1answer
321 views

fakebold error in fontspec or lualatex

I have been trying to fake small caps which are not available in Myriad Pro. So I used the Scale and FakeBold options. Scaling is allright, but as you all know the glyphs slim out. To work against ...
11
votes
1answer
629 views

Reduce compilation time for opentype fonts (otf)

I have some opentype fonts (otf) which I use with fontspec. Everything works fine. During the compilation LuaLaTeX load the otf-files in a temporary file. For example: (load: ...
1
vote
3answers
2k views

LuaTeX: tex-text at 10 pt not loadable [closed]

I am trying to use LuaTeX with Linux Biolinum. It works fine with XeLaTeX, but when I'm running LuaLaTex, it gives me the following error: ! Font ...
9
votes
1answer
1k views

Can one set a specific font variant in xelatex for uppercase letters only?

I would like to typeset a short, letter-like document using the Zapfino font, with the following twist: I'm OK using Zapfino's "standard" (i.e., Variant 0) glyphs for lowercase letters, but I'd like ...
9
votes
1answer
399 views

Why does fontspec change the maths accents (and only with lualatex)?

In the minimal example that follows luatex doesn't place the accent correctly (it's too far left): \documentclass{minimal} \usepackage{fontspec} \setromanfont{Linux Libertine O} \begin{document} ...
6
votes
3answers
3k views

XeLaTeX fontspec Century Gothic not using ligatures

I'm trying to use my Century Gothic TrueType font in a document, but it's failing to use the fl and fi ligatures. The input's below: \documentclass{article} \usepackage{xltxtra} ...