4k views

### Command to italicize text with slanted numbers

I often find myself adding a lot of \textsl{} around inside \emph{} or \textit{} blocks because I find italicized digits to look too "showoffy" and "baroque" and to hinder legibility (I'm using  ...
2k views

### Computer Modern in XeLaTeX

I love XeLaTeX for things like $a≠b$ ⇔ $a⊧a↑Ω$ All days before I used DejaVu fonts and Asana-Math for unicode-math. But today I have to get visual compability with LaTeX. So I installed Computer ...
281 views

### XeTeX text layout strangely sensitive to spaces

I have a document in a script that requires complex text layout which I believe is supposed to work in XeTeX. But I get surprising results: \documentclass{article} \usepackage{fontspec} \...
650 views

### How to raise a character in the whole document?

In my document (due to combind both Chinese and English), all (, ), [, ], etc., are all too low. Is it posibble to raise all (, ), [, ], or any characters user defines to desire height? (for ex. If I ...
569 views

### In XeLaTeX, how to format certain characters without using macros?

[Moved from StackOverflow.com] How can I format certain characters without using macros? For example, if I want to make all instances of the character ‘f’ bold, how can I make TeX do it automatically?...
114 views

### How to change the font of the numbers in a tex

I've read the below answer : Font selection in XeTeX for specific characters but I need a solution that works with pdflatex instead of xetex.
478 views

### Quran package with Hussaini Nastaleeq font

It's recommended (from the documentation) to use Amiri or Scheherazade font for the quran package, but I want to try different font in this case Hussaini Nastaleeq. Consider this code. \documentclass[...
183 views

### Why am I getting infinite recursion here?

I am using two different fonts for math mode as for my main text, so numbers in math mode and in the text do not match in font, which looks bad. Therefore, I want to change the font of only numbers in ...
381 views

### Change the chapter/section/subsection label numbering font

I'm using Xepersian package in Latex. I'm typing my whole text in "XBZar" font, and digits (numbers) in "Yas" font. My concern here is the chapter/section/subsection labels. So, by default the whole ...
281 views

### Defining a math symbol of variable sizes in XeTeX with \Umathchardef

I need to use a character in a TrueType font as a math symbol. Having seen morbusg's answer, I tried something like this: \font\mymathtfont="Times New Roman" \font\mymathsfont="Times New Roman/S=7" ...
170 views

### Correct line breaking for Japanese using Babel

MWE \documentclass{article} \usepackage{xeCJK} \usepackage[japanese]{babel} \begin{document} \selectlanguage{japanese} 日本語をををををををををををををををををををををををををををかいぎょうします。 \end{document} In some ...
Suppose that I have the following XeLaTeX document: \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} Proin quis (tortor) orci. Etiam at risus et $(a + b)x$. \end{...