Tag Info

New answers tagged

1

The Solution I kept digging around searching both XeLaTeX support files and found I completely misunderstood the purpose of the "crop" package. The "crop" package is designed to place various sundry post-production marks on paper that is larger in size than the actual page of content. My misunderstanding was that in either the geometry package or in LyX's ...


0

I had the same problem using \setmathfont. Here is a minimal working example exhibiting problem and solution (using f\prime instead of f'): \documentclass[fontsize=30pt]{scrartcl} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} \[ f'\,a'\quad f\prime\,a\prime \] \end{document} Here is the output, compiled by TeX Live 2013's ...


-1

The easy way is: Write your table like this +---+---+ | 1 | 2 | +---+---+ After you generate pdf you get: ...


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

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


5

The source of the problem The problem is caused by the fact the Junicode font has true proportional old style numbers, whereas some other fonts have, both, fixed width old style numbers and proportional 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 ...


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


4

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


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


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


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


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


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


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

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


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


2

If compiling with XeLaTeX then fontspec package must be included. An example using this method in the modern cv resume: % !TeX TS-program = xelatex \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry} \usepackage{fontawesome} \usepackage{fontspec} \usepackage{tikz} \name{John}{Doe} ...


1

This: resolves conflicting preamble calls in favour of pdfTeX and kpfonts; makes all chapter entries in the ToC blue, including the chapter number and title but not the number line or page; makes all section entries in the ToC and all section headings magenta, including the section number and title; tidies up a bit e.g. by eliminating unnecessary ...


2

The fonts used in this example are obtained from: Heather Regular DS Fette Gotisch EB Garamond08-Regular and, by changing some of the code, leads to the pictured fonts. The font(s) used should be saved in the same location as the document being worked on. Also use XeLaTeX \documentclass[a4, 11pt]{scrartcl} \usepackage[top=1.5cm, bottom=1.5cm, ...


1

By writing \setdefaultlanguage{hebrew} you set the entire document Right-to-Left by default, which affects also the order of table columns. This has to do with the bidi package that is loaded by polyglossia. By the way, the commands \beginL and \endL are not needed when using these packages. So, LyX should produce the opposite columns order in RTL mode. ...


4

This is a known problem. As Joseph Wright wrote on the miktex mailing list: Will Robertson knows about this and it will be fixed soon. For the present \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \str_case:nnn \str_case:nnF \cs_new_eq:NN \str_case_x:nnn \str_case_x:nnF \cs_new_eq:NN \int_case:nnn \int_case:nnF \ExplSyntaxOff ...


3

The following restores the missing \faLinkedInSign and \faCircleBlank required under XeLaTeX (taken from Revision 29485 of moderncv): % !TeX TS-program = xelatex \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry} \name{John}{Doe} \title{Resum\'e title} ...


0

There are two errors: 1) that being the extra "}" as indicated; 2) a section that needed to be enclosed in the \cventry section; 3) the fontspec package is missing. The code here compiles properly. % !TeX TS-program = xelatex \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry} ...


2

It turns out that the unicode-math package I was using was an old one (0.7e) and the new version (0.7f) does not have the problem... Also, in case anyone gets into trouble with the package updating and both TeXworks and the package updater cannot run (they complain of missing DLLs), I solved it by copying the old DLLs (I'm on Windows so I could retrieve them ...


3

First of all, you have to check if your desired commands are already defind: % arara: xelatex \documentclass{article} \usepackage{unicode-math} \show\feq \show\nfeq \begin{document} foo \end{document} The .log shows: > \feq=undefined. l.12 \show\feq > \nfeq=undefined. l.13 \show\nfeq So there should be no problem in using those. If they ...


1

I suggest you replace \mathclap{#3} with \makebox[0pt]{$#3$} -- the latter method doesn't mess with the counter eqpart; (Aside: Any "advantage" the \mathclap method may have, in terms of auto-sizing the result via \mathchoice, is illusory since #3 is set in \displaystyle anyway, according to a subsequent part of your code.) add parentheses to the ...


2

You could use the package polyglossia which allows you to define a main language and additional languages as well as special fonts for each language (you have to make sure the font you want does contain the desired characters at the code points you enter!). It also takes care of selecting the correct hyphenation algorithm for the chosen languages: ...


1

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Two Column One Page Curriculum Vitae % LaTeX Template % Version 1.1 (24/1/13) % % This template has been downloaded from: % http://www.LaTeXTemplates.com % % Original author: % Alessandro (The CV Inn) % % IMPORTANT: THIS TEMPLATE NEEDS TO BE COMPILED WITH XeLaTeX % % This template uses several fonts not included ...


10

The line Babel <3.9l> and hyphenation patterns for 79 languages loaded. doesn't actually refer to the LaTeX babel package being loaded as a whole. Rather, it refers to the subset of functionality from babel which provides a mechanism for switching between hyphenation patterns. For pdfTeX and XeTeX this information has to be built into the format so ...


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}


3

Page 6 of fontspec's manual says this: Fonts selected by filename must include bold and italic variants explicitly. \setmainfont{texgyrepagella-regular.otf}[ BoldFont = texgyrepagella-bold.otf , ItalicFont = texgyrepagella-italic.otf , BoldItalicFont = texgyrepagella-bolditalic.otf ] In this case, for example: ...


4

You can assess glyphs by name: \documentclass{article} \usepackage{fontspec} \setmainfont{Linux Libertine O} %for comparision: \setsansfont[RawFeature=+aalt]{Linux Libertine O} \begin{document} Lessingstraße \XeTeXglyph\the\XeTeXglyphindex "germandbls.sc" \relax \sffamily Lessingstraße \end{document} The main problem is to find out the correct name ...


5

I was late. The following supports Ulrike Fischer's answer. In pgfmoduleshapes.code.tex, it declares the default \pgfset{ inner xsep/.initial =.3333em, inner ysep/.initial =.3333em, This em depends on the default font/font size. In fact, the following test \newdimen\testdimen \testdimen.3333em \the\testdimen results in 3.9162pt and ...


5

The default font size in scrartcl is 11pt, in scrlttr2 12pt, and this matters for nodes as somewhere em or ex is used. So make sure that you are loading scrlttr2 with the same fontsize option: \documentclass[DIN, parskip=half,fontsize=11pt]{scrlttr2} or scrartcl with larger fontsize: \documentclass[parskip=half,fontsize=12pt]{scrartcl} Output of ...


2

(Too long for a comment, hence posted as an answer of sorts.) I assume you're using a Windows-based computer. When I compile your MWE under Windows 7 and MikTeX 2.9, I get exactly the problem that you report in your posting. That's why I'm guessing you're on a Windows-based system. Now: Is there any chance at all that you could switch to a Mac to compile ...


1

The main issue here is the font you use. In Windows you should have Mangal font installed, but I have downloaded and installed Akshar Unicode and it worked just fine. \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Akshar Unicode} \begin{document} मेरा नाम सौरभ है| \end{document} This is the output from xelatex:


1

Here is a suggestion using scrlayer to define a new page style for this page(s): \documentclass{article} \usepackage{geometry} \geometry{ a4paper, %total={210mm,297mm}, left=25mm, right=40mm, top=40mm, bottom=25mm, } \usepackage{boxedminipage} \usepackage{parskip} \usepackage[ngerman]{babel} ...


4

You shouldn't be using the german package that's obsolete and present only for compatibility with older documents. However, the problem is present also with babel. I'll add the code for working around the issue. \documentclass{article} \usepackage[ngerman]{babel} \usepackage{libertine} \usepackage{ifxetex} \ifxetex ...


2

As it turned out in An equivalent of psfrag and polyglossia together?, you cannot use psfrag with XeLaTeX. For me it was a serious problem.



Top 50 recent answers are included