XeTeX is a Unicode-capable variant of the TeX engine. Use this tag if your question is about Xe(La)TeX specific problems and is not related to standard (La)TeX.

learn more… | top users | synonyms (1)

2
votes
0answers
55 views

What do the various values of the Ligatures= option of fontspec do?

The fontspec package has a Ligatures option, usually encountered with the value Ligatures=TeX. This enables traditional TeX ligatures (or typing conventions) like mapping --- to an em dash. But what ...
6
votes
1answer
56 views

csquotes: pdflatex vs. lualatex/xelatex

The following test document \documentclass[english]{article} \usepackage{babel} \usepackage{ifxetex,ifluatex} \ifluatex\else \ifxetex\else \usepackage[utf8]{inputenc} \fi \fi ...
2
votes
1answer
22 views

Font name appearing in index (left pane) of pdf

What is the reason that the font name is appearing in the index (left pane) of the pdf file. The MWE is provided: \documentclass{beamer} \usepackage{fontspec} \usepackage{bookmark} ...
1
vote
0answers
36 views

Text greek symbol not appearing with fontspec package

What is the reason that \textalpha is not working when fontspec package is active? \documentclass{beamer} \usetheme{Warsaw} %\usepackage{fontspec} \usepackage[euler]{textgreek} \begin{document} ...
0
votes
0answers
27 views

Changing linespacing in Chinese

I am going to write a document containing Chinese and English words. However, the linespaces for the two different language are not the same. Now, I take "Temporarily increase line spacing" as the ...
2
votes
1answer
43 views

formular with cyrillic in Xe/Lua

Cyrillic in formular (https://www.ctan.org/pkg/formular) does not work with (Xe/Lua)LaTeX, but works in pdfLaTeX: \documentclass{article} \usepackage{ifxetex} \ifxetex \usepackage{fontspec} ...
3
votes
1answer
63 views

Two different “main fonts” in use; use only one for numbers

I have defined a mainfont, but have further defined its italics to come from a different font. My question: What is the simplest way to get the "original" main font back just for numbers? I wish to ...
2
votes
1answer
566 views

LaTeX Error: File `lastpage.sty' not found [duplicate]

I'm using a LaTeX template for a research article I've converted the .tex file to a minimal example: \documentclass[fleqn,10pt]{SelfArx} \begin{document} \subsection*{Results} \end{document} ...
3
votes
1answer
486 views

Can't compile XeLaTeX with LaTeXTools for Sublime (OSX)

LaTeXTools works for me when I do regular LaTeX files. But whenever I try building my XeLaTeX file, I get this output: [Compiling /some/path/to/file.tex] SimpleBuilder: pdflatex run 1; done. ...
1
vote
0answers
36 views

Beamer: My subsection bullets in navigation bar doesn't jump by clicking when I use XeLaTeX, though the pdfLaTeX can render it normally

\documentclass[compress]{beamer} \usetheme{Dresden} \usecolortheme{crane} \title{\LaTeX~\textsc{Beamer}Testing} \author{Testname} \institute{Testing University} \setbeamertemplate{navigation ...
4
votes
1answer
72 views

XeLaTeX + \setmainfont{CMU Serif} produces wrong characters

When I'm compiling with XeLaTeX and I use \setmainfont{CMU Serif}, the resulting characters are off by one. This means that an a becomes a b, a 1 becomes a 2, etc. \documentclass{article} ...
2
votes
0answers
50 views

LuaLaTeX vs XeLaTeX hyphenation and line layout [closed]

I am typesetting my journal just for the fun of it. I am using KOMA-script's scrartcl with two columns. I am testing with both LuaLaTeX and XeLaTeX. I haven noticed page count is different between the ...
4
votes
1answer
115 views

Bug in xelatex + unicode+math + vphantom

This question is a simplified version of a slightly more complicated problem with XITS Math: Consider the following code: \documentclass{article} \usepackage{unicode-math} \begin{document} \(|^a\) ...
1
vote
1answer
67 views

XeTeX \section{} doesn't show Thai fonts

I'm learning XeTeX mainly because it enables typesetting in my native language (Thai). With normal pdfLaTeX, arranging the document into sections was easy and intuitive, and I hope to be able to do ...
4
votes
2answers
111 views

Bug in xelatex + unicode-math + xits + \vphantom?

Compiling the file \documentclass{article} \usepackage{unicode-math} \setmathfont[ Extension=.otf, range={\smallblacktriangleright}, BoldFont = *bold ]{xits-math} \begin{document} ...
10
votes
1answer
344 views

Wrong math symbols with XeLaTeX and LuaTeX after TexLive update

I just updated my TeX live installation (tlmgr update --all) and now I get some wrong symbols in math mode if I use XeLaTeX or LuaTeX. This MWE for example \documentclass{standalone} \begin{document} ...
2
votes
2answers
30 views

Implicite addressing of inner matrix nodes doesn't work here

Addressing the nodes inside of this matrix implicite doesn't work here. I don't want to name them explicte. \documentclass{standalone} \usepackage{xltxtra} \usepackage{tikz} ...
3
votes
1answer
50 views

Repeat the footnote as a header and footnote on next pages

I am quite new with Latex, and I am trying to solve a problem but I can't on my own. The thing is that I am editing a document, and I'd like that in that document, there are a header and "footnote" as ...
7
votes
1answer
2k 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 ...
1
vote
0answers
54 views

How to avoid scaling of font?

Source: \documentclass[11pt]{article} \usepackage{fontspec} \defaultfontfeatures{Scale=1} \setromanfont{Times New Roman} \begin{document} Hello, World! \end{document} When checking font size with ...
1
vote
1answer
76 views

fontspec package causes error

For some reason the inclusion of the fontspec package causes XeLaTeX to not compile properly. Here is an MWE (inspired by Rob Hyndman): \documentclass{article} \usepackage{lipsum,fontspec} ...
4
votes
2answers
67 views

making hat over a character BOLD in text mode

Using the following method, I can place a hat symbol over any character in text mode. \^{} How can I render the hat in bold? UPDATE: \documentclass[aspectratio=169]{beamer} \usetheme{Warsaw} ...
1
vote
0answers
62 views

Texmaker 4.4.1 xelatex invokes pdflatex

I encountered an error while trying to compile a xelatex document from texmaker. This is information about my system Ubuntu Gnome 15.10 Texmaker 4.4.1 (installed form synaptic) texlive-2015 full ...
2
votes
2answers
38 views

Using enctex with XeLaTeX

Can I use enctex with XeLaTeX? I want use it as it's a requirement for encxvlna (package that inserts non-breaking space into Czech documents). All documents howto use it describe just pdflatex ...
5
votes
2answers
77 views

\addfontfeatures attribute lost after next fontspec command (like \textbf{})

I'm using Linux Libertine font (from system) with XeTeX. In the body, I'm using OldStyle numerals while I want Lining numerals in the tables. I'm typesetting tables that have some cells with ...
3
votes
0answers
56 views

How to create Tagged PDF using XeLaTeX

I have successfully generated Tagged PDF using PDFMark in \special{ps: } via DVI->PS->PDF method. Now I am trying to achieve the same in XeLaTeX and not success. Can anybody help me to put PDF tags ...
0
votes
0answers
22 views

XeLaTeX with fontspec gives “Undefined control sequence” error after MiKTeX update [duplicate]

I updated MiKTeX this morning and now I can't get XeLaTeX with fontspec to compile at all. It throws an "undefined control sequence" error for \sys_if_engine_luatex:T A minimum working example is: ...
0
votes
2answers
33 views

Using Unicode character assertion 0x22a6

I am trying to typeset a document using Xelatex. The document contains assertion unicode character 0x22a6 but unable to render it. I have tried several methods such as using newunicodechar package, ...
2
votes
1answer
87 views

How to obtain current language in polyglossia

How to obtain the current language set by \setotherlanguage{english} ? \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{czech} \begin{document} ...
2
votes
2answers
48 views

Overfull \hbox when inserting citation in blockquote

I am inserting a \blockquote in my document but when adding a citation at the end of it (with a \hfill to make it right-aligned), I get an Overfull \hbox. This only happens using xelatex which I'm ...
10
votes
2answers
244 views

Why does xelatex produce different files from the same deterministic sources?

Take the simple latex source file: \documentclass{article} \usepackage{lipsum} \usepackage{amsgen} \begin{document} \lipsum[1-10] \end{document} When processed with "latex" you always get the same ...
1
vote
1answer
38 views

Extract Package question: Not present \Sectionformat statement is extracted

I use the solution shown here (thanks to Mike Renfro!) to extract a synopsis from my LaTeX documents. Sadly I am struggling with the output of the headings. Basically the problem is that the extract ...
4
votes
1answer
115 views

Use Fira Code font with ligatures in code listings

I would like to use the Fira Code OTF font for code listings and verbatim blocks, which has beautiful ligatures. The font loads correctly using the following line: \setmonofont{FiraCode-Regular} ...
4
votes
2answers
88 views

Cyrillic in URLs using hyperref produces file link instead of URL link

I have an URL containing Cyrillic characters, e.g.: \href{https://bg.wikipedia.org/wiki/Начална_страница}{Bulgarian Wikipedia Main Page} When I compile the document, the link points to a local ...
8
votes
2answers
4k views

\hat and \widehat look terrible: fixing width and better positioning?

I want to make the use of quantum mechanical operators explicit in my text using \hat{A} or \widehat{A}. The problem is that depending on the symbol under the accent it looks either misplaced or too ...
2
votes
3answers
96 views

Rendering a unicode en-dash in XeLaTeX [closed]

If I am understanding things correctly, using XeLaTeX, all of these lines should be output with proper em- and en- dashes respectively: \documentclass{article} \usepackage{fontspec} ...
3
votes
1answer
59 views

Right-to-left interlinear translation, multiple words for one translation

I'm using ExPex for an interlinear translation in Hebrew. I'm having issues when translating one Hebrew word with multiple English words: the English words are right-to-left, while they should be ...
38
votes
2answers
10k 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
1answer
39 views

Polyglossia's babelshorthands spoils write-to-file command behavior and conflicts with graphviz

Example (run xelatex a.tex -shell-escape twice, or just xelatex a.tex if you don't have dot installed and then explore generated files manually): \documentclass{article} \usepackage[pdf]{graphviz} ...
5
votes
2answers
4k views

fontspec cannot find fonts on Ubuntu

I recently migrated to Ubuntu from Mac OS. I installed TexLive and it works. However, fontspec doesn't work, no matter what fonts I use. This goes for fonts native to Ubuntu and fonts that I have ...
1
vote
1answer
56 views

AlegreyaSans with mathspec in Beamer

Somehow I cannot get the AlegreyaSans font to work in Beamer with mathspec. The standard fontenc call for AlegreyaSans works for PDFLaTeX, but I need to use auto-pst-pdf for a table, thus the use of ...
9
votes
1answer
568 views

XeTeX seems to break headers in Tufte-handout

I get the following messed-up running headers on pages 2 and following when using Tufte-Handout class with fontspec (and therefore XeTeX). The headers repeat the Title and then add a black box. A ...
4
votes
1answer
70 views

Can't get color or textcolor to work

I'm new to latex. I'm using a template on overleaf.com. I'm trying to change the color of some of the text, but it remains grey. Here's a simplified sample of the tex file: ...
1
vote
1answer
95 views

Error when adding xmp metadata with xelatex and pdfx

I want to create a pdf according to the PDF/A-1b standard with xelatex and pdfx but I get an error message now when I add my metadata. Using XMP template file: pdfa.xmp ! Argument of " has an extra ...
1
vote
1answer
88 views

Biblatex remakes bcf and bbl files despite no change to bib files

Any change to my project tex files, even those that do not involve bib files or citations, result in biblatex recompiling the bcf and bbl files. How to prevent this behavior in order to save time ...
0
votes
0answers
31 views

Can't compile file with cyrillic name

When I try to compile file with cyrillic name in XeTeX it shows the following: : Invalid argument: "Сочинение к 08.02.2016".log xelatex.exe: Data: "Сочинение к ...
1
vote
0answers
17 views

lstlisting typesets incorrectly some special characters when used with fontspec

This document results in the ellipsis (triple dots) being typeset before the parenthesis. Why is this so? How can I avoid this behavior? Note that I use the unicode Horizontal Ellipsis U+2026 ...
0
votes
1answer
33 views

changing font size of nested lists in itemize and enumerate environment

I am using the following to change the font size of items at different levels in itemize list: \makeatletter \newcommand\ChangeItemFont[3]{% \renewcommand{\itemize}[1][]{% ...
1
vote
0answers
11 views

Text and scripts overlapped if subscript and superscript used at the same time [duplicate]

I am using following method to display superscript and subscript at the same time but due to the length of for e.g., superscript, the text and the superscript is being overlapped. ...
1
vote
0answers
36 views

Text symbols appearing as cross in beamer

I am using Museo Fonts (the case is same with Adobe Garamond Pro) to create beamer presentation but some greek symbols such as ϵ, δ and several others appear as cross-in-a-box. I have also tried ...