Linked Questions

9
votes
3answers
3k 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 $$ ...
7
votes
1answer
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 ...
7
votes
2answers
234 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} \...
6
votes
1answer
610 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 ...
4
votes
3answers
566 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?...
2
votes
1answer
113 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.
0
votes
1answer
160 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 ...
3
votes
1answer
275 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[...
3
votes
1answer
289 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 ...
3
votes
1answer
212 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" ...
2
votes
1answer
119 views

How to set a particular glyph to be of a particular typeface in XeLaTeX

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{...
2
votes
1answer
101 views

Correct line breaking for Japanese using Babel

MWE \documentclass{article} \usepackage{xeCJK} \usepackage[japanese]{babel} \begin{document} \selectlanguage{japanese} 日本語をををををををををををををををををををををををををををかいぎょうします。 \end{document} In some ...
1
vote
1answer
120 views

Using a different font for digits in text mode

I am writing a document for which I would like to use a main font, let's call it myfont, which I have as several .otf files. To do so, I use XeTeX along with the fontspec package and the setmainfont ...