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

learn more… | top users | synonyms

10
votes
2answers
939 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
575 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 ...
17
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
210 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
575 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
405 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
732 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
958 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 255*...
2
votes
1answer
671 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} \usepackage[usenames]{...
0
votes
1answer
501 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
965 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
660 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 to ...
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} \usepackage[...
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
637 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
498 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). ...
18
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 ...