Tag Info

Hot answers tagged

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} ...


5

The source of the problem The problem is caused by the fact the Junicode font has true proportional oldstyle numbers, whereas some other fonts have, in fact, fixed width old style numbers. The linguex package sets an internal length that is a multiple of the smallest width digit in the current font. The smallest width digit in the Junicode font is the 1, ...


4

Stripping down your document to the bare minimum required for this question (see minimal working example (MWE) for more detail), the following shows how to change the main font of your document with \setmainfont: \documentclass{article} \usepackage{lipsum} % add nonsense text \usepackage{fontspec} \setmainfont{Arial} \begin{document} \lipsum[1] ...


4

You have two options. You want your caption label in LTR (english). In this case simply use \caption{\rl{الگوریتم شماره دو}} MWE: \documentclass[a4paper,12pt]{report} \usepackage{xepersian} \settextfont[Scale=1.3]{B Nazanin} \begin{document} \begin{latin} \begin{table}[h!] \large \centering \begin{tabular}{|l|} \hline \textbf{Proximal ...


3

This works in both xelatex and lualatex and sets the document in Pagella for me: \documentclass[11 pt, a4paper]{article} \usepackage[T1]{fontenc} \usepackage{fontspec} \ExplSyntaxOn \NewDocumentCommand{\onlywarniffontnotfound}{} { \font_suppress_not_found_error: \msg_redirect_name:nnn {fontspec}{font-not-found}{warning} } \ExplSyntaxOff ...


3

If I understand the requirements correctly, then I think the problem is that the TeX box that contains the tikzpicture has some non-zero depth. In the following, I use the local bounding box key to explicitly name the picture (using the current bounding box doesn't work) and then use the baseline key to set the baseline of the tikzpicture to the bottom of ...


2

I get wrong output in both cases. At least in the english text they are more font family involved so you need a bit more sophisticated font changing. Try this instead: \documentclass[11pt,a4paper]{article} \usepackage{fontspec} \usepackage{polyglossia} \newfontfamily\khmerfont[Script=Khmer,Scale=0.9]{Khmer OS} \setdefaultlanguage[numerals=khmer]{khmer} ...


2

Texlive 2015 is now avalable. Otherwise, run tlmgr --gui, in the tlmgr menu (up-left) you can change the texlive depot. With the graphic interface you can search for the missing packages and install them :


1

First of all, Update your TexLive (As my dear friend said in comments). Then make sure you have the following packages: texlive texlive-latex-recommended texlive-generic-recommended texlive-xetex texlive-lang-arabic Consider that you should find the packages suitable for TexLive2015. I think there are available in CTAN. Also there are couple of other ...


1

In order to get a not yet existing symbol as a character in LaTex from a logo or comparable, please follow these steps: Disclaimer: This is not a scientific approach nor one founded in Software Engineering. You can file it as a life hack if you so will. System used (YMMV): Windows 7.1 x64 XeLatex MikTex 2.9 fontspec package Step 1 Create an .svg file ...


1

This works for me: \documentclass[a4paper,10pt]{article} % Default font size and paper size \usepackage{fontspec} % For loading fonts \setmainfont[SmallCapsFont=Fontin SmallCaps]{Fontin-Regular} \usepackage{url,parskip} % Formatting packages \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{textpos} ...


1

Not really an answer, but to be able to show some pictures ... I get with this example the following outputs on windows. So it could be that there is bug in the miktex xelatex. But I don't know if you are using it. \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainfont[Script=Devanagari]{Nakula} ...


1

Ok. Thank you very much! The link in the comment to http://tex.stackexchange.com/a/35121/42880 helped with the answer. Of course typing unicode in directly would be the best solution, but one would break ones fingers and we have everyting in pinyin already. So here is the solution using the gb4epackage for glossing: \documentclass{book} ...



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