Tag Info

New answers tagged

1

This font (arabtype.ttf) works fine: http://fonts.cooltext.com/Downloader.aspx?ID=11183 \LR{% Let $E_{1}, E_{2},\ldots, E_{n}$, some disjoint events (of null intersection), then \begin{equation} %eqn3.1 \label{eqn3.1} P \left(\bigcup_{1}^{n} E_{i}\right) = \sum_{i = 1}^{n} P (E_{i}) \end{equation} \noindent The equation \eqref{eqn3.1} generalizes to... ...


0

Just install Texlive 2014 instead of miktex.


1

You may use \newunicodechar in a more complicated way to check whether the next character is the same. We need a different active character (here ?) because \newunicodechar already uses ~ internally. \documentclass[twoside]{report} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{hindi} \setotherlanguage{english} ...


2

You can define a specific font command in fontspec just for punctuation. In this example I create an \englishfont family for Latin script (your commands for this were not quite right), then I create a command \punct just for punctuation that uses the \englishfont. It takes one argument, which could be any string you want in the other font, such as ...


0

with this MWE you can show arabic script in tcblisting \documentclass[a4paper]{article} \usepackage{listings} \usepackage{tcolorbox} \tcbuselibrary{listings} \usepackage[no-math]{fontspec} \usepackage{polyglossia} \newfontfamily\arabicfont[Script=Arabic]{Amiri} \setdefaultlanguage{english} \setotherlanguage{arabic} ...


2

It's more a hack than a fix, but if you only want to get rid of the LuaTeX version warning and maybe wait for an official update from MikTex, you can edit the file MiKTeX\tex\luatex\luaotfload\luaotfload-main.lua and comment the warning out: --[[ starts a comment block, --]] closes it. if tex.luatexversion < min_luatex_version then --[[ warning ...


2

When the default language is Arabic, polyglossia redefines \@alph to use Arabic letters, but apparently it does not restore the definition when english is used. There should be a better way to do this, but until there isn't, use the following: \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{enumitem} \makeatletter ...


13

There are several possibilities. I'll present four different ways. The first two use directly or indirectly the macros \captions<lang> or \extras<lang> which are provided both by babel and polyglossia. babel says the following about those two: \captions<lang> : The macro \captions<lang> defines the macros that hold the texts to ...


6

Use this renewcommand sequence to set the datearmenian variable: \documentclass{article} \usepackage{polyglossia} \setmainlanguage{armenian} \newfontfamily{\armenianfont}{DejaVu Sans} \usepackage{datetime} \renewcommand\datearmenian{\def\today{\number\day~% \ifcase \month \or Հունվար \or Փետրվար \or Մարտ \or Ապրիլ \or Մայիս \or Հունիս \or ...



Top 50 recent answers are included