# Tag Info

## Hot answers tagged xetex

5

Accents in math mode have to be added in a different way than in text mode; in general, an accented letter in math has no connection with the corresponding meaning in text, so ü in math is the second derivative of u, not “u with diaeresis”. You can, if you really want to use accented letters in math, add a meaning for them. \documentclass{article} ...

5

You can make the character that is written an active character by use of \catcode and then define it to be the other character: \documentclass[14pt,a4paper]{article} \usepackage{xepersian} \settextfont{Arial Unicode MS} \catcode`\ی=\active \def ی{ي} \begin{document} می‌شود. \end{document} (I had to change the font on my system)

4

Not essentially different from Tobi's answer, but the substitution is more robust. \documentclass[a4paper]{article} \usepackage{xepersian} \usepackage{newunicodechar} \settextfont{Arial} \newunicodechar{ی}{ي} \begin{document} می‌شود. \end{document} (The thing appears to be reversed, I can't understand what the editor does when Arabic is involved.)

4

Many TrueType and OpenType fonts have been packaged, chiefly to bring those using latex and pdflatex some of the variety enjoyed by those using xelatex and lualatex. Many, if not all, of the packages can be used with xelatex and lualatex as well as latex and pdflatex, and that’s convenient for anyone who hasn’t yet decided on an engine or who plans to share ...

3

Here's a cut-down version of your preamble with some comments and a minimal set up for Latin Modern with Latin Modern Math: \documentclass[letterpaper]{article} \usepackage[left=1.5in,right=1in,top=1.25in,bottom=1.25in]{geometry} \usepackage{fontspec}% to import fonts via XeTeX % better to use Latin Modern across the board than mix with CMU, I think - LM ...

3

In TeX Live 2015, PDF images newer than version 1.5 are rejected to include by default, that was unintentional, sorry. The SVN sources were changed not to reject such newer images. For a workaround until TeX Live 2016, please use, for example, the following command to compile: xelatex --output-driver="xdvipdfmx -q -E -V 7" filename.tex

2

Download the ttf version from http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ and save the files in a directory where your system will find the fonts. Then define a typeface \newfontfamily\Bera{Bitstream Vera Sans Mono}[Scale=0.85] As an alternative use the file name. Then you can use listings with \lstset{basicstyle=\Bera\small,...} ...

2

you can try \mathit: Algo de texto y una fórmula $\mathit{á}+b=\int_{\xi}^{\theta} f(x)\,dx$.

1

You should be able to take it from here. \documentclass{memoir}% \newcommand{\altchapter}[1]% #1 = alternate chapter title {\makeoddhead{headings}{\textsl{\normalsize CHAPTER \thechapter. \MakeUppercase{#1}}}% {}{\normalsize\thepage}} \begin{document} \chapter{I am at loss for words} \altchapter{Sanskrit chapter title} \newpage this page intentionally left ...

1

@Thérèse thanks for your tips indeed! I waited a bit too see whether more people would chime in, but since no other input has been made, I'll just report how I managed to resolve the issue. First, replacing xelatex with luatex does indeed work. The downside of that, however, is that luatex takes quite some while longer for a run than does xelatex, so I ...

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