Tag Info

Hot answers tagged

6

The mapping substitutions work on a character basis, but XeTeX never uses the space character; rather, it changes space tokens into horizontal glue, so when the substitution stage is reached, there's never a combination U+0020 U+00B7. You can use newunicodechar for this purpose: \documentclass{article} \usepackage{fontspec} ...


5

Just add Mapping=tex-text or Ligatures=TeX to the \fontspec options (see §11.1 of the docs).


5

Vollkorn Here is a great open-source font from Friedrich Althausen with eight styles and multilingual support. http://vollkorn-typeface.com/. The following font flavors are supported: PostScript OpenType .otf TrueType OpenType .ttf Web open Font Format .woff Embedded OpenType .eot Ligatures Glyphs Kerning Found in this tex.stackexchange ...


5

This problem affects most Adobe fonts (Adobe, are you listening?). I don’t use xetex enough to know what can be done about it in xetex, but in luatex you can write a feature file to adjust the kerning without editing the font itself. It’s much easier than it sounds. E.g., \documentclass[12pt]{article} \usepackage[french]{babel} ...


5

You can obtain this information from the log with a bit of effort. \documentclass{article} \showoutput \begin{document} One two three four five six seven eight nine ten. One two three four five six seven eight nine ten. One two three four five six seven eight nine ten. One two three four five six seven eight nine ten. One two three four five six seven ...


4

The package wasysym has nothing to do with \textrecipe. The command is defined in standard LaTeX by the textcomp package, which is not to be loaded with XeLaTeX and fontspec. The problem is that the Sanskrit 3000 font has no glyph for ℞ (U+211E PRESCRIPTION TAKE) so \textrecipe produces nothing (with XeLaTeX a small square is drawn). You can substitute the ...


3

You don't need it. Only the dvips driver has problems to break links and needs breakurl. xdvipdfmx (used by xetex) works without it: \documentclass{article} \usepackage{hyperref} \textwidth=2cm \begin{document} \url{http://tex.stackexchange.com/questions/218196/breakurl-doesnt-work-with-xelatex} \end{document}


3

You need to tell fontspec to emulate traditional TeX typesetting features, such as turning backticks and straight quotation marks into curly quotation marks. You can do this using Mapping but the recommended syntax is Ligatures=TeX: \documentclass{article} \usepackage[a4paper, margin = 0.4in]{geometry} \usepackage{fontspec} \begin{document} ...


3

The command \DeclarePairedDelimiter is defined by mathtools. Since this package also loads amsmath it must go before fontspec: \documentclass{article} \usepackage{mathtools} \usepackage{polyglossia} % also loads package fontspec \usepackage{unicode-math} % if you also need maths \setmainlanguage{english} % loads language hyphenation rules and such ...


3

(La)TeX is free to use, but with some restrictions (not copylefted is probably meaningless in your case). You can see the licence for example here: http://www.latex-project.org/lppl.txt. Information about licence of XeLaTeX you can find even here: http://en.wikipedia.org/wiki/MIT_License (I know: Wikipedia is not a perfect source).


2

The class europecv says \DeclareOption{utf8}{\AtEndOfClass{\inputencoding{utf8x}}} which is a very big mistake. At the time the class was first released, utf8 didn't support direct input with Greek, which was the main reason for using utf8x. Since some years, utf8 does support Greek, so there's no reason for keeping the option in that way. However, for ...


2

In relation to the extra question about \square. I do not have Minion Pro, but out commenting the two \setm... font lines and adding amssymb, then this compiles just fine using xelatex \documentclass{article} \usepackage{mathtools,amssymb} \usepackage{polyglossia} % also loads package fontspec \usepackage{unicode-math} % if you also need maths ...


2

A “real” math font, such as those that can be used with unicode-math, has glyphs specially tailored for math fonts. For instance with \documentclass{article} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setmathfont{Latin Modern Math} \begin{document} \textit{f} $f(x)$ \end{document} the character used for the second “f” is U+1D453 ...


2

I am currently disabling kerning between an apostrophe and a succeeding letter by using XeTeX's interchartoken mechanism: \XeTeXinterchartokenstate=1 \newXeTeXintercharclass\ApostropheClass \XeTeXcharclass`'\ApostropheClass \newXeTeXintercharclass\AfterApostropheClass \XeTeXcharclass`a\AfterApostropheClass \XeTeXcharclass`A\AfterApostropheClass ...


1

I guess that your font does not provide this symbol (here is a collection of fonts, which do). Therefore, you will have to redefine this command in order to use an other font for this very symbol: % arara: xelatex \documentclass{article} \usepackage{fontspec} \setmainfont{Sanskrit2003.ttf} ...


1

I find a solution with a tiny trick, but temporarily! I define some command in my latex such: \newcommand{\prb}{\rl{تابع احتمال}}, and in my .m file, I use the command \prb instead of unicode characters: تابع احتمال. So, the .m file, just consist of ASCI characters. Latex then, execute the command and view تابع احتمال in the PDF and work fine!


1

This is the kind of problem which exists in the current TeX--XeT algorithm of e-tex (used by xetex engine); of course this has nothing to do with the bidi package and is an engine bug. I believe it should be fixed with the xetex binary shipping with TeXLive 2015. For the moment, the solution is perhaps to surround the relevant things between \beginL and ...


1

As you have a variable font for the 'unit' part of quantities, and that is a text mode font, I think you are best off using text mode with siunitx \sisetup{unit-mode = text} This will then use whatever the current text font is for units, so the math font will have no impact. (Untested as I don't have the appropriate fonts.)


1

EDITED to line up top of right stack with top of "Subject" Following "Subject" in the header, I used a right-aligned \Longunderstack for the right-hand text, pushing it to the right with an \hfill. I had to \smash it so that it did not affect the vertical spacing on the left. Also, because the word "Subject" was scaled up by a factor of 1.55, I had to ...


1

I can't figure out why fontspec is acting so, but here is a workaround: add another size-feature, and so every SmallCapsFeatures will apply to the next size. A MWE: \documentclass[12pt]{article} \usepackage{xcolor,fontspec} \setmainfont[ SizeFeatures = { { Size = { -1}, Color = blue, SmallCapsFeatures = { ...


1

What you are asking for is basically, how do i get an invoice in the first doc. The answer is surprisingly simple, just load the package. \begin{filecontents}{mikeBlendDocs.lco} \ProvidesFile{mikeBlendDocs.lco}[% 2014/12/18 v0.1 LaTeX2e unsupported letter-class-option] \setkomavar{fromname}{From Name} \setkomavar{fromaddress}{From Address} ...



Only top voted, non community-wiki answers of a minimum length are eligible