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

learn more… | top users | synonyms

1
vote
1answer
578 views

How do I use freeserif font in latex [duplicate]

Possible Duplicate: Install OpenType fonts in Texlive I am looking to create some documents in LibreOffice and LaTeX. To maintain consistency I want to use the same font FreeSerif in both set ...
4
votes
1answer
566 views

Does lualatex embed fonts for compatibility?

I am using fonts installed on my computer in LaTeX document as \documentclass{article} \usepackage{fontspec} \newfontfamily\fontx{Ubuntu} \begin{document} The default font {\fontx New font} The ...
3
votes
2answers
787 views

Font features selection in Xe(La)TeX

I am using the XeTeX engine in order to compile a document based on a class of my own, and the package fontspec to select the face families and features. Though this is not relevant for my question, ...
3
votes
1answer
2k views

How to compile properly a document using “fontspec” package?

How to compile properly a document using fontspec package? Example code (15.1. XeTeX @ LaTeX-wikibooks.pdf) \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} Lorem ...
2
votes
2answers
201 views

Lining numbers in bibitem label

I'm using luatex with fontspec and "Minion Pro" font. I want to typeset the labels in thebibliography environment in lining numerals instead of text numbers (as it is when you simply invoke Minion Pro)...
7
votes
1answer
1k views

XeLaTeX, Modern Latin and cyrilic

\documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setsansfont{Latin Modern Sans} \setmonofont{Latin Modern Mono} \...
1
vote
0answers
503 views

Beamerposter and fonts with xelatex/fontspec [closed]

Has anyone had success with using beamerposter and xelatex/fontspec? I am able to use fontspec for normal documents, but when I try with beamerposter I keep getting warnings such as LaTeX Font ...
5
votes
4answers
541 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 ...
13
votes
1answer
2k 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 ...
16
votes
1answer
2k 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). Ordinarily,...
4
votes
1answer
757 views

Faking small caps in XeLaTeX

In the post Fake small caps with XeTeX/fontspec? I have found the following definitions to fake small caps \def\mycommand{\bgroup\obeyspaces\mycommandaux} \def\mycommandaux#1{\mycommandauxii #1\...
12
votes
3answers
210 views

Executing a command after a package has been loaded

In my previous question I ended up with \DeclareMathSymbol{:}{\mathpunct}{operators}{"3A} But now I'm using the fontspec package which redefines : with \AtBeginDocument itself. So as my own ...
4
votes
2answers
2k views

Use font in XeTeX not installed on my system

Using XeLaTeX, how can I use a font that I have downloaded in a folder, but have not installed on my system? I have tried to specify the path in setmainfont{Path = C:/MyFolder/MyFonts/, but I receive ...
4
votes
1answer
723 views

Modifying EB Garamond font

Is possible modifying this font to have only the "normal" s and u also in the doubles ? \documentclass[pagesize=auto, version=last]{scrartcl} \usepackage{fontspec} \usepackage{microtype} \...
18
votes
2answers
1k views

Parentheses differ (XeLaTeX, fontspec, newtxmath, libertine)

After Internal error: bad native font flag I stumbled upon another weird problem with the combination XeLaTeX/fontspec/Libertine/newtxmath: \documentclass{scrartcl} \usepackage[no-math]{fontspec} \...
10
votes
2answers
950 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} \begin{...
3
votes
2answers
1k views

Specifying an oldstyle number font with fontspec

I have some trouble setting oldstyle numbers in my document. I load the font (in this case an early palatino) and define the smallcaps font via fontspec. But the oldstyle numbers are in the smallcaps ...
3
votes
1answer
576 views

fontspec for small caps and nocommon ligatures (actually, rawfeatures works, but not ligatures=NoCommon)

(This is a bit of a mess, so apologies. The final solution ended up being in a different place than I first expected. Ultimately, what was happening is a combination of a bug in Linux Libertine O, and ...
19
votes
1answer
4k views

How to choose a specific weight from a font family using fontspec and XeLaTeX

I have installed an open-type font on my OS and would like to use in a LaTeX document using XeLaTeX. It works fine, but when I define my font family like this: \ifxetex \newfontfamily{\neosans}{...
6
votes
1answer
211 views

How to set a small linespace even with a very big letter in the text

I use a font (Aquiline), that has only a few characters, most notably the letter "A", which are quite huge in height. I use LuaLaTex with the fontspec package. So if I use this font and a capital A ...
6
votes
1answer
200 views

Siunitx + Junicode font: Overfull hboxes

The following MWE, using Junicode, creates 4 overfull hboxes. But any other font I tried (e.g. Linux Libertine O) creates no warnings. Any ideas? \documentclass{article} \usepackage{fontspec} \...
3
votes
1answer
3k views

XeLaTeX Fontspec: restore original fonts

I'm trying to use a TTF font for my code excerpts, but want to use the standard latex fonts for the rest of the document. I'm using the following code, as recommended by this question. \usepackage{...
15
votes
1answer
649 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 + ...
10
votes
2answers
1k views

Substitute italic ampersand with alternative ampersand in Linux Libertine O

Based in this answer I want to create a command \amper that uses the alternative ampersand of Linux Libertine O and leaves the regular \& alone. The problem with the MWE below is that hyperref ...
11
votes
1answer
2k views

Cyrillic monospaced font in XeLaTeX

I've installed full TexLive 2011 using "install-tl" script in Ubuntu 12.04. When I was using TexLive 2009 from repositories the following file was compiled without any errors. \documentclass{article}...
4
votes
1answer
1k views

How to install and use the key fonts for a TI-Calculator in pdflatex or xelatex

This answer http://tex.stackexchange.com/a/37550/4011 suggested that it should be possible to install a font which enables one to typeset the keys of a TI-calculator. Now my question is, how to ...
1
vote
3answers
578 views

Avoiding increase of number of fonts (families) with fontspec/xelatex?

(I actually came to a solution with this, which I've posted separately, but I thought it'd be good to document anyways - and of course, any comments to this are welcome) This is the problem - I need ...
3
votes
2answers
6k 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 ...
3
votes
1answer
407 views

What does this warning “** WARNING ** TrueType post table name index 32768 > 32767” mean?

I'm new to TeX and trying to compile this code: \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{WenQuanYi Zen Hei Mono} \begin{document} 你好,\TeX! \end{document} I get the pdf fine, but ...
23
votes
6answers
4k 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 ...
4
votes
1answer
1k views

Strange latex font warnings with fontsize, tikz, fontspec

This is mostly the same code as in: Problem with itemize indentation in minipage in tikz node ... but with a few changes - notably, it uses fontspec with Junicode font, and so needs to be compiled ...
9
votes
1answer
740 views

Abstract with amsart class and fontspec (with XeLaTeX)

There is an error message which I do not understand when I use amsart in conjunction with fontspec. The math text in the abstract seems to be deemed too small? The error is \textfont 6 is ...
11
votes
1answer
2k views

unicode-math and amsmath incompatible

When I compile the following mwe with xelatex, I am told: ERROR: LaTeX Error: Command \dddot already defined. --- TeX said --- Or name \end... illegal, see p.192 of the manual. l.571 ...
1
vote
0answers
182 views

How to remove font information at the head of page 1? [closed]

I set TeXLive 2011 on my MacBookPro. In my preamble I have: \usepackage{fontspec} \setmainfont{Hoefler Text} \newfontfamily{\sbl}[Script=Hebrew]{SBL Hebrew} When I compile with xelatex I get at the ...
3
votes
2answers
4k views

Linux Libertine O and Linux Biolinum O not found

I have TeX Live 2011. I set \usepackage{fontspec} \setmainfont{Linux Libertine O} \setsansfont{Linux Biolinum O} but I get a warning that these fonts are not found! If I try \usepackage{...
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
964 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
8k 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 255*...
2
votes
1answer
676 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
306 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} \usepackage[usenames]{...
0
votes
1answer
508 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
418 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: \documentclass{...
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
980 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
668 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 ...