# Tag Info

## New answers tagged xetex

0

With version 2020/10/24 v2.1 of the subfiles package, this problem is solved. At the moment, this version is not yet on CTAN, but only on Github.

2

The definitions of \spacedallcaps and \spacedlowsmallcaps seem wrong, because they first apply letter spacing, but then change to a different font and the setting is forgotten. You can fix it as follows. \documentclass[10pt]{book} \usepackage{iftex} \ifTUTeX \usepackage{fontspec} \setmainfont{TeX Gyre Pagella} \setsansfont{Iwona} \else \usepackage[...

0

It seems that recent versions of listings support UTF-8 out of the box with XeLaTeX. However I found myself in a situation where non-ASCII characters weren’t displayed properly (they were discarded). It turned out that what I thought UTF-8 encoded files were ISO-8859 encoded files (check with file command), so I had to convert them : iconv -f ISO-8859 -t UTF-...

2

The problem is that xeCJK adds code to one of the document hooks and as subfiles doesn't empty this hook the code is processed twice, and in this case it harms. You can provoke a similar error with \documentclass{article} \usepackage{xeCJK} \ExplSyntaxOn \__xeCJK_patch_text_command: \__xeCJK_patch_text_command: \ExplSyntaxOff \end{document} The first call ...

0

Thanks TeXnician with arara -lv i was able to produce a log and error massages and solved the underlying problems, at the end there where a couple of missing packages and missing files in subfolders.

1

It is simply a matter of choosing a font that has the characters. If you use xelatex's default computer modern, the log file will show multiple Missing character: There is no ʃ in font [lmroman10-regular]:mapping=tex-text;! If I switch to Arial then there are no such warnings and all the characters appear, many other fonts will be available, but no font ...

0

As Ulrike Fischer said in her comment, you’re correctly selecting the small caps font but need to also select its small-caps feature. You also need a few more lines to enable slanted small caps. \documentclass{report} \usepackage{fontspec} \setmainfont{Latin Modern Roman}[ SmallCapsFont = Latin Modern Roman Caps, UprightFeatures = {SmallCapsFeatures = {...

0

Most likely there are two things happening here: first, the thesis file is not being found. Then xelatex is being run in batch mode so that an attempt to read from the terminal is failing. The tipoff to this is the fact that the log file is named texput.log and not thesis.log

1

I think I have met all your requires here: I have created a \newcommand called \annot (for your annotations, because that text looks like a screenplay or some theatrical text). You just need to put \annot{the text you want to put in the annotation} and it will generate the square brackets, the centering inside, and centering outside if the length of any ...

0

Although @egreg gave one method, \setmathrm, it is also possible to change the operator font to something other than mathrm. In unicode-math, this is the \operatorfont command, for example \operatorfont\mathsfup In classic LaTeX, you can redefine the \operator@font command to a different font than \mathrm. Remember to \makeatletter before using a command ...

2

The problem arises because TeX thinks a that a hyphen is always a good place to break a line. It doesn't really know about the beginning of the line, in the sense that it can avoid putting a . there. So a word that ends with hyphen will always potentially pose this problem. You can use the solution adopted by the ngerman language definition file to create a ...

0

You have to clear your cache. If you are using Overleaf, go to the end of the page "logs and output files" (the sheet button on the right side of "Recompile"), and delete cache (the trash bin icon at the left side of "Other logs & files"). Now "Recompile" and it should work fine.

0

You can use the transparent package and type: \documentclass{article} \usepackage{transparent} \usepackage{lipsum} \begin{document} { \transparent{0}\lipsum[1-2] }% \lipsum[1-2] \end{document} In \transparent{value}, value goes from 0 to 1, where 1 is normal text, and 0 is transparent text.

0

You can declare the character | to be an active character (so that it gets treated like a macro) and give it the same definition as your \sd, by adding these two lines: \catcode|=\active \let|=\sd Modifying your example: \documentclass[letterpaper,12pt]{article} \usepackage{fontspec} \newfontfamily{\san}[Script=Devanagari,Mapping=velthuis-sanskrit]{...

4

(Tom from Overleaf Support here.) The advice on how to disable the code check for a part of the document is given in: https://www.overleaf.com/learn/how-to/Code_Check#Disabling_Code_Check_for_part_of_a_file You can use %%begin novalidate and %%end novalidate to mark the part not to be code checked. \documentclass{...} % Here is the preamble blablabla %%...

2

There must be some problems (either in PDFKit or dvipdfmx) in supporting FlateDecode predictor filter for 16bit gray color images, which is used for SoftMask of blurred image. As a workaround for this problem, using the following dvipdfmx option should help -C 0x20 Alternatively, you can insert the following \special instruction (in the first page) \special{...

1

\documentclass[a4paper]{article} \begin{document} \noindent \begin{tabular}{@{}ll@{}} Hello \TeX\ world& I'm eating\ldots\\ Hello StackExchange world& I'm eating \end{tabular} \end{document} If you get errors (your posted code gives undefined command errors) then the generated PDF is not intended to be useful. TeX only recovers from errors enough ...

7

The axis labels are typeset in math mode and you're not declaring the math font. \documentclass[border=5pt]{standalone} \usepackage[table]{xcolor} % more control over colors \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{amsmath} \usepackage{amssymb} % fonts \usepackage{mathspec} \setmainfont{Open Sans} \setmathsfont(Digits,...

1

The line 37 in the message refers to line 37 in biblatex.sty, which is (in version 3.15a) \RequirePackage{pdftexcmds}[2018/01/30] and thus requests at least version 2018/01/30 of the pdftexcmds package. Your system only has a slightly older version v0.26 from 2018/01/21 of pdftexcmds, so you get this warning. You may want to consider updating your system (...

1

If you would rather have a larger square than TeX Gyre Termes Math has, you can borrow one from another math font. \documentclass{article} \usepackage{unicode-math} \setmainfont{TeX Gyre Termes} \setmathfont{TeX Gyre Termes Math} \setmathfont{STIX Two Math}[ range=\lgwhtsquare, Scale=MatchUppercase ] \newcommand\unitsq{\lgwhtsquare} \begin{document} ...

2

You might have the impression that you can prepare a document that compiles with both pdflatex and xelatex. This is not true, I'm afraid. Anyway, the symbol you're probably looking for is \lgwhtsquare corresponding to U+2B1C WHITE LARGE SQUARE, that's unfortunately unavailable with TeX Gyre Termes Math or \mdlgwhtsquare, corresponding to U+25A1 WHITE SQUARE. ...

2

You don't need to pass quoted commands to the compiler. Think of whatever follows a call to the compiler as code that should be within a regular TeX file (except if you're passing the tex file itself, as in xelatex book.tex). So, drop the use of the quotes and \input your source: xelatex \def\qonly{chapter07} \input{book} Since book.tex is at the end of the ...

1

As you've seen nested \discretionaryies are not supported in TeX but as a workaround you can use that in most documents every line will have more than five characters, therefore it is unlikely that both hyphenation opportunities are taken. So usually you can archive your goal with յան\h{֊}{դը}{դ}\h{ըգ֊}{}{գ}նել Of course this technically allows the (wrong) ...

0

The posted MWE hyphenates words correctly for me While the hyphenation field is deprecated now in favour of the langid field, it continues to work and is remapped by Biber to langid. Indeed when I run the MWE, the .bbl file contains \field{langid}{german} It is not inconceivable that some code would stop this field aliasing from happening, but that sort of ...

1

To include tabl1.tex you only have to use \input{tabl1} in the main.tex. But moreover, you do not need at all run a R script to export the table to two tex files and then include these files in a main file and run the latex compiler. One file and one (apparent) run is enough: Install the knitr package from R, if is not already installed. Call the file ...

4

A few tips: Load the Tamil language and its hyphenation patterns in babel or polyglossia. Your main problem was that none of the lines were wrapping. In LuaLateX, microtype will enable font expansion and drastically reduce the amount of hyphenation you need. There were one or two places where the algorithm didn’t recognize a word break, so I helped it out ...

0


0

What I was able to get to work was inputting the UTF-8 text without the mapping. Changing the catcodes seems to be finicky. But this worked for me in XeLaTeX: \documentclass[letterpaper,12pt]{article} \tracinglostchars=2 \usepackage{fancyhdr} \usepackage{footnpag} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{english} \...

0

First, check your .log file for warning messages about any fonts not being found. Next, make sure you’ve downloaded and installed the Culmus fonts, including DavidCLM-MediumItalic.otf. You might want to re-run fc-cache -f -s -v and luaotfload-tool -f -u -p -v to make sure they’re indexed. Finally, you might load the fonts by filename: \newfontfamily\...

0

A simple fix to your issue would be to replace the xelatex command in Kile Build menu with /usr/local/texlive/2020/bin/x86_64-linux/xelatex. This is how it would look Or To make Kile (launched by clicking the software logo) recognize the exact path of texlive 2020 packages, do the following: Add PATH of texlive 2020 to /etc/login.defs file. In the file do ...

1

The error doesn't show up with pdflatex (if you remove \usepackage{fontspec}), but just by chance. You need to use \protect\ref when \ref is in a “moving argument”. \documentclass[14pt]{extarticle} % bigger font easier for kids on test \usepackage{fontspec} % sanserif with xelatex \begin{document} \...

0


3

You can use \newfontfamily with OpenType or TrueType fonts, not with “legacy” Metafont fonts. You need to declare the font in the “traditional” way. \documentclass{article} \usepackage{fontspec} \DeclareFontFamily{U}{mathb}{\hyphenchar\font45} \DeclareFontShape{U}{mathb}{m}{n}{ <-5.5> mathb5 <5.5-6.5> mathb6 <6.5-7.5> mathb7 <7....

0

I'm guessing that you're missing something in your transcript. Looking at the makefile that you provide and your snippet of code, I'm guessing that what's happening is that you're trying to run xelatex on files in your src directory that aren't top-level LaTeX files which is why you're getting the error. To be honest, I don't know that make is a tool that ...

2

You can define yourself the names (I guess that TU should add these). \documentclass{article} \usepackage{fontspec} \setmainfont{NewComputerModern} \newfontfamily{\ebgar}{EB Garamond} \newlength{\len} % this is not even in xunicode \DeclareTextSymbol{\textnbhyphen}{\UnicodeEncodingName}{"2011} % this is in xunicode \DeclareTextSymbol{\...

3

Using U+2013 as an example as they are all the same. – Just type the character directly. ^^^^2013 The ^^ notation (as in classic tex but extended to 4 or 6 ^) produces the character (as an input character) at the very earliest stage. So unlike following options can be used anywhere the character can be used eg \^^^^2013 is \– \char"2013 (or latex \...

1

As @Ulrike Fischer pointed out above, this issue has already been solved at XeLaTeX update [20201004] and item ball in Beamer

2

The problem is that you're loading amsfonts and amssymb. With your \let commands you're reverting to the blackboard bold letters from amsfonts that obviously don't respect the FakeBold=2 option. \documentclass[a4paper, 12pt]{article} \usepackage{amsmath, amsthm} \usepackage{fontspec} \usepackage{unicode-math} \setmathfont{NewCMMath-Regular.otf}[FakeBold=10]...

1

You want to also define wrappers for delivering the data. When you do \name{Amitav}{Mohanty}, you are doing \def\@firstname{Amitav} \def\@lastname{Mohanty} and TeX knows nothing more. As explained in Steven's answer, \value is a reserved kernel command that's used to access the value of a counter. Let's assume you need to access the name in order to print ...

2

The fundamental misunderstanding of the OP revolves around the meaning of \value. Unlike the way in which the OP seems to indicate, \value does not provide the substitution text of a macro of a given name. Rather, \value provides an integer representation of the argument, which needs to be the name of a counter. A typical usage would be as part of a ...

1

The font you want is Computer Modern not Latin Modern. You can reset mathbblike this: \documentclass[a4paper, 12pt]{article} \usepackage{amsfonts, amssymb, amsmath, amsthm} \usepackage{fontspec} \setmainfont{Latin Modern Roman}[FakeBold=2] \let\mathbbalt\mathbb \usepackage{unicode-math} \setmathfont{latinmodern-math.otf}[FakeBold=2] \let\mathbb\mathbbalt ...

6

That is due to the issue reported here https://github.com/pgf-tikz/pgf/issues/928 It has been fixed in the sources, so should be resolved soon. Until then you can add the fix manually \documentclass{beamer} \setbeamertemplate{itemize item}[ball] \setbeamertemplate{enumerate item}[ball] \makeatletter \def\pgfutil@insertatbegincurrentpagefrombox#1{% \edef\...

2

The font you’re using is from 1994 and encoded in Windows codepage 1256, which is obsolete. You will need to use a Unicode font in LuaLaTeX or XeLaTeX. Khaled Hosny’s Amiri is an excellent one that also has good complements in his Libertinus and Libertinus Math fonts. Here is an example of a template I made using it. All the fonts it uses should be in ...

0

I encounter this with a beamer with >32 references. Since each \bibitem will fire 4 color commands, the 31th breaks. To fix this, I added additional grouping by \setbeamertemplate{bibliography entry author}{\bgroup} \setbeamertemplate{bibliography entry note}{\egroup} If that gives you a missing } before \end{bibliography} error, try \setbeamertemplate{...

1

Here's what I tried: \documentclass[letter,oneside,10pt]{article} \usepackage{hyperref} \usepackage[ddmmyyyy]{datetime} \begin{document} \href{https://example.com?ref=text-\today}{example.com} \end{document} Running this (I have a newer install), I don't get the errors that you're getting, but the URL comes out as: https://example.com/?ref=text-%...

2

You can use \RedeclareSectionCommands[ tocentryformat=\usekomafont{disposition}, tocpagenumberformat=\usekomafont{disposition} ]{chapter,section,subsection,subsubsection,paragraph,subparagraph} Example: \documentclass[fontsize=12pt, a4paper, headsepline, footsepline, twoside=off, numbers=noenddot,headlines=1.4]{scrbook} \usepackage[ngerman]{babel} \...

0

You must install the font for all users. In Windows 10 you can do it by right click on the ttf font and select "install for all users".

2

You need to use a matching OpenType math font and specify the same boldness, I don't have the font you used but, before and after with Latin Modern \documentclass[a4paper, 12pt]{article} \usepackage{amsfonts, amssymb, amsmath, amsthm} \usepackage[]{fontspec} \setmainfont{lmroman10-regular.otf}[ % FakeBold=3, ItalicFont=lmroman10-italic.otf, ...

2

Note it is bad style to put formatting in \zzzname macros, they were introduced specifically to separate the text name from formatting, so they can be easily translated without having to copy formatting, however I am not suggesting changing that here. White space at the beginning of a line is dropped this includes \hfill which is why your Index is flush ...

1

Unfortunately, xelatex does not support color stacks which are used since tcolorbox v4.32 for breakable boxes. The implementation changed at several places and introduced this new error for xelatex. I tried some hacks I used before. It seems that it is enough to reset the current color with \color{.} at the end of all things. The following works for me: \...

Top 50 recent answers are included