# Tag Info

## Hot answers tagged xetex

5

The code in my answer to TeX accents do not seem to work with fontspec and xe/lua/latex gives the idea, but for the dot above some additional code is needed. \documentclass[a4paper,12pt]{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont{Minion Pro} % a font without Latin Ext. Additional \usepackage{newunicodechar} ...

5

You shouldn't use inputencwith XeLaTeX : it supposes your document is in utf8 encoding. And you shouldn't use fontenc either, since it manages fonts directly. Also, it is recommended to use polyglossia rather than babel: it is tailored for XeLaTeX. Here is a code that works: \documentclass{article} \usepackage{fontspec} \setmainfont{Minion Pro} ...

5

The good news is that there are lots and lots of opentype font families that provide a full Cyrillic alphabet and are easy to use with XeLaTeX (and LuaLaTeX). The bad news is that you may have to spend some time choosing which font family best suits your needs. MacOS X provides quite a few such font families; it's also fairly easy to download and activate ...

4

Since, from the question, only the \cdot for the multiplier of the y-axis must bechanged, you can use ytick scale label code/.code={$\times 10^{#1}$}, (the only change from the default definition is that \cdot was replaced by \times). If the \cdot of both axis multiplier is to be changed, you can change the definition of tick scale binop instead, using ...

3

You should use combining characters, instead. Unfortunately, Latin Modern does not fully implement them; for instance, there's no combining cedilla, so with the code below you'd get only characters with cedilla which exist in the font. Before: \c{e} \{e} \'{e} \v{e} \u{e} \={e} \^{e} \.{e} \H{e} \~{e} \"{e} ...

3

If you mean counting the spaces in the argument, at all brace levels, with l3regex you can do it: \documentclass{article} \usepackage{xparse,l3regex} \ExplSyntaxOn \NewDocumentCommand{\countwords}{+m} % allow \par (or blank lines in the argument) { \regex_count:nnN { \s } { #1 } \l_corneli_words_int \int_to_arabic:n { \l_corneli_words_int + 1 } } ...

2

This one is subtle, and I don’t really understand why it happens yet. Unfortunately I’m tired and still have a lot to do before tomorrow morning, so I don’t have time to work out it out tonight, but I do have a fix. If you remove the lines setting the document text to Arabic: \usepackage{polyglossia} \setdefaultlanguage[locale=morocco]{arabic} ...

1

Don't use $c=$ foo as if = is not used in infix position it will get the wrong spacing if you must mix math and text then $c={}$foo will ensure that you get mathrel spacing on both sides of the = but here \emph seems logically wrong (you want italic not emphasis) so I used c=\mathit{foo}. However the text simply doesn't fit. You could re-write to make it ...

1

It does not compile because of the line 11, uncomment %\usepackage{unicode-math} and uncomment %%%%%%%%%%%%%%% BRACES %%%%%%%%%%%%%%%% %\setmathfont[BoldFont={latinmodern-math.otf}]{latinmodern-math.otf} %\setmathfont[range=\mathscr,Scale=MatchUppercase]{Asana-Math.otf} where I don't know anything about the package. Perhaps someone here able to help with ...

1

This seems to work but will presumably have unwanted side-effects so I doubt this is really a solution. I would wait to see alexwlchan's solution which will likely be better: \documentclass{book} \usepackage[framemethod=tikz]{mdframed} \usepackage{amsmath, amssymb} \usepackage{polyglossia} \setdefaultlanguage[locale=morocco]{arabic} \setmainfont{Times New ...

1

The first questions is answered by adding tick scale binop=\times to the axis options. All the things you can with that number is described in the pgfplots manual section Tick Scaling - Common Factors In Ticks working on the precision for the x ticks...

1

By copying the definitions at page 356 of the TeXbook but changing the character codes, this fixes it: Before: \c{e} \{e} \'{e} \v{e} \u{e} \={e} \^{e} \.{e} \H{e} \~{e} \"{e} \font\tenrm="[lmroman10-regular.otf]:mapping=tex-text" \tenrm \def\`#1{{\accent768 #1}} \def\'#1{{\accent180 #1}} \def\v#1{{\accent711 #1}} \def\u#1{{\accent728 #1}} ...

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