Tag Info

6

First of all, you absolutely need to tell whoever is in charge of the project what you’re almost saying in the comments: what you’re asking to do here is the consequence of bad decisions that you shouldn’t have to deal with. All you’re doing here is working around these bad decisions because you can’t tackle the main issue. Now, as long as you’re aware of ...

1

You don't need \CYRR or \textless, nor defining \og and \fg: \documentclass[10pt,a4paper,final]{book} \usepackage{fontspec} \usepackage{polyglossia} \setmainfont{Times New Roman} \setmainlanguage{french} \setotherlanguages{english,german,latin,italian,spanish,russian,greek} \newrobustcmd{\RU}[1]{\foreignlanguage{russian}{#1}} \begin{document} Texte en ...

2

I don't understand why this works either. More precisely, I don't know why you need to put the \discretionary after the number instead of inside the replacement text. \documentclass{article} %\usepackage[utf8]{inputenc}% all it does for me is produce warnings \usepackage[left=6cm,right=7cm]{geometry} \usepackage{parskip} \usepackage{showframe} ...

5

If you don't need Arabic in minimalxr1.tex, you can use \newunicodechar as follows. Language tests could be added. minimalxr1.tex \documentclass{memoir} \usepackage{xr} \usepackage{polyglossia} \usepackage{newunicodechar} \setmainlanguage{english} \setotherlanguage{arabic} \newunicodechar{١}{1} \newunicodechar{٢}{2} \newunicodechar{٣}{3} ...

-1

I solved adding texcl=true to the \lstset configuration.

2

You don't have to define anything. xunicode (loaded by fontspec, loaded by polyglossia) defines \textalpha. You can also always enter a char with the ^^-notation and the unicode number: \documentclass{article} \usepackage{fontspec} \setmainfont{Arial Unicode MS} %some font with greek \begin{document} \textalpha\textbeta ^^^^03b3 \end{document}

Top 50 recent answers are included