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

learn more… | top users | synonyms

2
votes
1answer
85 views

Alphabetic sorting fails in biblatex when defining characters with \newcommand

I'm citing an Icelandic guy whose last name has a first character Á (U+00C1). If I write his name in my bibliography with that character code (\char"00C1), the sorting works correctly. If, however, I ...
4
votes
1answer
142 views

The simplest way to input π in text mode (textual)?

What is the simplest way to input π in text mode if there is only this one greek letter in the whole English text? May be there is one line of code can make it. The following excellent example is ...
6
votes
2answers
201 views

How to obtain proper justification with XeLaTeX and fontspec package?

I'm trying to obtain a justified paragraph with greek text using XeLaTeX and fontspec package, but there is always a word that exceed the right alignment. Note that with LaTex and the default greek ...
3
votes
2answers
193 views

How to change font without changing document font [duplicate]

Surely this is easy, but I'm just beginning. I've created a font and I want to change "My Words Here" without modifying the document font for the rest of the page. I'm sure I just have the syntax ...
1
vote
0answers
115 views

Modifying moderncv to look like an example cv

I would like to create a cv with moderncv like the example below. I have set my fontsize to 10pt but the letters in this cv seem smaller. Furthermore the dates look awesome but I cannot achieve the ...
7
votes
3answers
2k views

What is the best Math Font for use with Minion Pro font?

I have began using the Minion Pro series of fonts and compiling with XeLaTeX. However, despite the typeface changing, I still have the same CM Modern Math fonts. Do any of you have a good suggestion ...
3
votes
1answer
221 views

Does fontspec have a cache?

The mininimal working example is the following one: \documentclass{article} \usepackage{fontspec,xunicode} \setmainfont[Numbers=OldStyle]{Linux Libertine O} \begin{document} 0123456789 ...
2
votes
0answers
30 views

\IfFontFeatureActive not working

In an answer to querying whether a font feature has been activated via a fontspec command there are definitions of \IfFontFeatureExists and \IfFontFeatureActive. I'm not getting reliable results for ...
4
votes
0answers
101 views

current font family using fontspec

I'm trying to emulate the behaviour of a [pdf]LaTeX package that provides commands \lstyle, \ostyle, \tstyle, and \pstyle to activate lining, oldstyle, tabular and proportional figures, respectively. ...
2
votes
2answers
196 views

Bold italics is hard to distinguish from italics

The aim of any special mathematical notation for a particular class of objects is to allow the reader immediately recognise objects of this class in expressions. For instance, the good old arrow ...
1
vote
1answer
131 views

How to use SciType font in LaTeX?

I saw a font with math support inside OTF glyphs. How to use it (with lualatex or xelatex for example)? Especially how to deal with stylistic sets with LaTex. Here is the link : SciType font ...
3
votes
2answers
255 views

font set problems in beamer

i want to set the main font in my beamer as "Consolas" i do like this : \documentclass{beamer} \usepackage{fontspec} \usetheme{Warsaw} \begin{document} \setmainfont{Consolas} \begin{frame} we discuss ...
1
vote
0answers
111 views

Is it possible to use `lualatex`'s DVI output with `fontspec` without getting font-related errors?

Is it possible to use lualatex's DVI output with fontspec without getting font-related errors? I want to use the (eps-based) output of sagetex with a lualatex generated document with fontspec. As ...
5
votes
1answer
785 views

Using \texttt with polyglossia Hebrew

\texttt does not work as expected when using it with the polyglossia package, in a segment in the Hebrew language, even when the actual text to be set is Latin. I tried reading fontspec documentation, ...
0
votes
1answer
142 views

Use cmbright with unicode text under XeLaTeX

XeLaTeX has been my preferred LaTeX engine because it straightforwardly handles text in Unicode (UTF-8 encoding). I know this can be done using \usepackage[utf8]{inputenc} with other engines, too, but ...
3
votes
1answer
172 views

polyglossia & fontspec's script feature in 'setotherlanguage'

My fonts are able to give the wanted output. My fonts have both the Latin and Hebrew characteres, and even Greek needed. Is there any other way in which I can have the result wanted? Do I need the ...
2
votes
1answer
52 views

Extra line break and horizontal space at \begin{document}

I am trying to insert some text right at the beginning of the document with \AtBeginDocument while using lualatex and the fontspec package \documentclass{article} \AtBeginDocument{X} ...
19
votes
2answers
1k 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 ...
1
vote
1answer
171 views

fontspec search path in TEXMFHOME

This is related to fontspec (xelatex) finding fonts by name, installed or in TEXMFHOME When installing an OpenType font in TEXMFHOME (~/texmf) I see the following behaviour with fontspec of TeXLive ...
5
votes
2answers
2k views

Change default font size while using fontspec

I'd like to set the main font size (i.e. all text which isn't a heading or something else with an explicit font size) to a particular font size, in this case, 9.5pt. I can't use the default package ...
1
vote
0answers
162 views

XeLaTeX fonts don't work well on Windows?

I have recently downloaded the template for a CV from http://www.latextemplates.com/template/plasmati-graduate-cv. It is supposed to be compiled using XeLaTeX, with previous installation of the Fontin ...
6
votes
2answers
300 views

Deciding Which Glyphs to Use in Font Encoding

I wanted to use one of my favorite fonts, Crimson, while still maintaining full support from the microtype package. Since XeTeX and LuaTeX are not fully supported by the microtype package (as of ...
10
votes
1answer
182 views

Accessing user-selectable features in GentiumPlus in XeLaTeX/LuaLaTeX

Specifically, the combination of f plus î in the italic ends up with the upper curl of the f smashed into the peak of the circumflex (other fonts have the same problem, but the result is even uglier). ...
5
votes
0answers
194 views

TeX Gyre fonts in XeLaTeX and LuaLaTeX: call by name or file name?

Is there any downside of using file names with \setmainfont, except for the fact that it takes more typing? I ask because I am experiencing problems with using names for TeX Gyre fonts on my Linux ...
1
vote
0answers
125 views

Problem with XeLaTeX xdv2pdf mode and font compilation

I recently upgraded to TexLive2013 (Basic) and this broke the setup I use for letters of recommendation. I need to use a legacy university font which requires XeLaTeX in the mode xdv2pdf. MWE is below ...
4
votes
1answer
94 views

LuaTeX error “table index is nil” loading Cinzel OTF font with fontspec [closed]

In a LuaLaTeX document I am creating with MiKTeX 2.9 64-bit (LuaTeX version beta-0.70.2-2012060719) in Windows 7, I get the following error: ! LuaTeX error ...)/MiKTeX ...
4
votes
1answer
219 views

XeLaTeX and Biber/BibLaTeX: switching font for cyrillic references

My main font unfortunately does not have support for Cyrillic script. Mixing it with Linux Libertine (which does have the required glyphs) works fine in the main text where I can simply switch the ...
15
votes
1answer
571 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 + ...
1
vote
1answer
385 views

\moderncvicons{awesome} giving error!

I'm getting an error when compiling a resume of moderncv, with pdflatex in Mageia 2 i586 and TEXlive 2011. Why? First I added the command \moderncvicons{awesome}, then I added \usepackage{fontawesome} ...
3
votes
0answers
116 views

Side bearings of Minion Pro quotes

I'm using Minion Pro with XeLaTeX. However, quotes are much too tight. I know the MinionPro package, for use with LaTeX, has a loosequotes option which slightly increases the side bearings of the ...
3
votes
2answers
81 views

Suppress character substitution in xetex

I have a situation where I need to place a combining ring above (U+030A) the character 'j'. Yes, it is silly, because the ring would collide with the dot above the 'j', but I want to combine them ...
8
votes
1answer
232 views

font selection for entire doc

Hello there:) Could someone show me how to select fonts (serif: regular/bold/italic/bolditalic/smallcaps, sans: regular/bold/italic) for entire document using fontspec and font's filenames. And at ...
28
votes
1answer
4k 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 ...
17
votes
1answer
3k 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} ...
12
votes
1answer
452 views

Why does LuaLaTeX produce smaller files than pdfLaTeX in this example?

I am discovering LuaLaTeX... I want to produce pdf files from my tex sources as small as possible. If I compile the following code with LuaLaTeX, the size of the generated pdf is 9 kB. ...
9
votes
0answers
156 views

XeTeX font spacing awfulness [duplicate]

When using the Lato font (e.g., Google fonts or Lato fonts), I get completely overlapping text: When I view the PDF in Google Chrome's PDF viewer, it looks fine on the screen: but it still ...
4
votes
1answer
175 views

Custom phonetic font with tipa and fontspec

I've been trying to typeset a document that has a lot of phonetic transcriptions, and I'm trying to do it using Tex Gyre Bonum for the body and Charis SIL for the phonetic transcriptions. I'm trying ...
6
votes
2answers
237 views

Scale font only vertically (poor man’s condensed of Libertine)

I’m using Linux Libertine to typeset the translation of a poem with eledmac/eledpar. The original text appears on the left pages and the translation on the right ones. Since the translated verses are ...
4
votes
1answer
117 views

Can I use these Libertine glyphs in pdftex?

MWE: \documentclass{article} \usepackage{iftex} \ifXeTeX\else \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \fi \usepackage{libertine} \begin{document} \ifXeTeX ...
3
votes
1answer
98 views

Using pst-barcode, fontspec and standalone at the same time?

I am trying to generate a series of labels using TikZ and the standalone document class. Normally, this works fine, but this time I want to use a system font and to include a barcode. Below is an ...
2
votes
0answers
61 views

Regular Chaparral comes out bold, bold Chaparral comes out regular. Why? [closed]

Chaparral.tex: \documentclass{article} \usepackage[english]{babel} \usepackage{fontspec} \setmainfont{Chaparral Pro} \begin{document} Hamburgefonstiv Regular \textbf{Hamburgefonstiv Bold} ...
4
votes
0answers
143 views

Using specific font for the equation in XeLaTex

I want to use a specific font for a specific formula in XeLaTeX. Usually, the math font can be set up using mathspec package. \usepackage{mathspec} ...
3
votes
1answer
148 views

Change lineno's number format for section headings (bold font)

This is a follow-up to the question Change from old style numbers to lining numbers in lineno's linenumbers environment I've discovered that the suggestion given there doesn't target the line ...
3
votes
1answer
137 views

Fontspec + Cabin + LuaLaTeX

I want to use the Cabin fonts (which are available on CTAN). It seems possible to use these fonts with LuaLaTeX, since there are type1 fonts available, and on CTAN it says: LuaLaTeX and xeLaTeX ...
2
votes
0answers
178 views

XeLaTeX Bad/Inconsistent Kerning

I'm running xubuntu 12.04.3 LTS with tex-full 2013 package. The kerning is terrible. For example, I have fonts-linuxlibertine 5.3.0 installed, latest and greatest; when I compile using XeLaTeX, both ...
0
votes
0answers
170 views

Just want to know how to run this on texmaker?

\documentclass{article} \usepackage{arabxetex} \newfontfamily\arabicfont[Script=Arabic,Scale=1.0]{Scheherazade} \newfontfamily\urdufont[Script=Arabic,Scale=1.1]{Code2000} \begin{urdu}[novoc] ,ham ...
26
votes
8answers
9k 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. ...
8
votes
2answers
1k views

Problem with small caps in XeLaTeX

I'm not able to make small caps work with any font in XeLaTeX. Here is output illustrating the issue for Charis SIL, Garuda, and Times New Roman, respectively. Pasted below are a MWE and version and ...
3
votes
0answers
170 views

Having Problem using math environment in LuaLaTeX

I am at learning stage of LaTeX. While working with lualatex with fontspec package, i am not being able to use any math environment. My document's preamble: \documentclass[a4paper, 14pt]{memoir} % ...
1
vote
1answer
334 views

Microtypesets and Fontspec

Is there a way to use Microtypesets so that one would specify a fontspec family. I have a very complicated document and it would be nice to be able to turn the microtype features on only for those ...