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)

3
votes
1answer
66 views

“Argument of \reserved@a has an extra }” error when using non-English language in \title

(Other answers (A, B) with similar error message do not actually take care of the situation.) I have memoir document which should contain title both in Bangla and English. But when compiled (using ...
1
vote
0answers
241 views

XeLaTex - Include PDF of version 1.6 or higher as picture

I want to include PDFs of version 1.6 (or higher) as pictures in my document. First I got the usual version-warnings, which I got rid of by changing dvipdfmx.cfg ('V 5' to 'V 6'). So now a PDF is ...
3
votes
1answer
81 views

XeLaTeX does not load newtxmath with LinuxLibertine (sometimes)

I'd like to use newtxmath along with LinuxLibertine under XeLaTeX. What maybe sounds simple really drives me crazy. Here's an MWE: \documentclass{article} \PassOptionsToPackage{no-math}{fontspec} ...
3
votes
2answers
78 views

Todonotes for right-to-left languages

I want to add some marginal explanation notes for math lectures notes written in Arabic and I am using for that todonotes package. The problem is that the note text is not well adjusted.. I thought of ...
3
votes
1answer
85 views

Help with Interlinear RTL Text (Persian/Farsi and English)

I'm trying to create an interlinear text that interleaves Farsi (Persian) and English but am having a couple of problems: 1) The interlinear portion of it seems to work but the actual Persian text ...
2
votes
1answer
89 views

Missing font with academicons.sty [closed]

I'm using TeXlive 2015 on Ubuntu 14.04. I have a file that looks like this: \documentclass{article} \usepackage{academicons} \begin{document} \aiicon{orcid} \end{document} When I do $ latexmk ...
2
votes
1answer
18 views

Set TeXstudio for Unicode .Rnw files (Sweave)

I tried to run Sweave on a .Rnw file from TeXstudio, but the unicode characters don't show up in the .tex file when I typeset with xelatex. My user command is /usr/local/bin/Rscript -e ...
42
votes
1answer
373 views

How to keep a “rare” ligature from interfering with a “common” ligature?

In ligature-rich Opentype fonts which feature both "common" and "rare" ligatures, it can happen that a "rare" ligature is applied first to one character pair, pre-empting the use of a "common" or ...
5
votes
4answers
389 views

XeLaTeX problem with a vector arrow

I am trying to write $\overrightarrow{V}_{AB}$ with the vector over only V, but when I do this then the subscript AB goes far from V. On the other hand when I use the vector over the V and AB it seems ...
1
vote
2answers
170 views

Questions regarding the distinction between XeTeX and XeLaTeX and how they relate to TeX and LaTeX? [duplicate]

Briefest possible version of the question (after having seen comments): Is the only distinction between XeTeX and XeLaTeX that the commands xetex and xelatex are differently compatible with TeX and ...
2
votes
0answers
58 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
65 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
25 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
43 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
29 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
48 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
65 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
749 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} ...
4
votes
1answer
683 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
39 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
86 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
63 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
121 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
70 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
114 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
360 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
53 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 ...
8
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
55 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
87 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
69 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
87 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
82 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
57 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
29 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
36 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
92 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
55 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 ...
11
votes
2answers
249 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
42 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
136 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
100 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
101 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
61 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 ...
40
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
44 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 ...