# Tag Info

## New answers tagged xetex

4

On Windows 8, Malgun Gothic supports combining Hangul Jamo ("Old Hangul" hereinafter). On Mac which you seem to be using, however, there's no font bundled that supports Old Hangul. Noto Sans or Source Han Sans, actually exactly same fonts with different names, cannot be used on XeTeX for the time being, as discussed in the thread linked at Khaled's comment ...

4

I just ran into the same issue with the Noto Sans Traditional Chinese font (except with plain xetex) and google brought me here. The next thing I tried was luatex (with luaotfload) which works fine. So this appears to be a bug in xetex. EDIT: Per Khaled's suggestion above, this is an issue with CID keyed fonts. I have no idea what they are, but installing ...

2

The text on the left hand side is not displaced but written with white color. The reason is a color stack problem resulting from vsplitting. pdflatex and xelatex seem to have a different color implementation. I changed the placing of text colors for tcolorbox with the recent version 3.12 (2014/07/29). This version was tested with MiKTeX. The following test ...

6

Some years ago, the package xltxtra was recommended for usage with XeLaTeX, but it isn't any more. To the contrary, it is not recommended to load xltxtra, unless you really need its extra functions (you usually don't). The \setromanfont command has been deprecated some years ago, favoring the clearer command \setmainfont. The Mapping=tex-text option has ...

6


1

Since it is not a Chinese document, I think xeCJK should be your first choice to support typesetting Chinese characters. Say, \usepackage{xeCJK} \setCJKmainfont{some Chinese font you use} % ... However, there is no babel/polyglossia equivalent for Chinese. Roughly speaking, I think it is better to define a set of macros yourself. It won't be difficult ...

1

with mdframed we can put a breakable box without causing shift of text in the left column \usepackage{lipsum} \usepackage{mdframed} \usepackage{paracol} \usepackage{xcolor} \begin{document} \begin{paracol}{2} \begin{rightcolumn} \lipsum[1-2] \begin{mdframed}[backgroundcolor=red!10] \lipsum[1] \end{mdframed} \end{rightcolumn} \begin{leftcolumn} \lipsum ...

1

This is a bug in the TeX--XeT bidirectional extension (from e-TeX) used in current version of XeTeX, which reverses the order of nodes in right-to-left mode so that the order of the coloured text is reversed. Next version of XeTeX reverted back to the original TeX-XeT extension from (Knuth and Pierre MacKay) which does not “physically” reverse the nodes, ...

0

I have found a working solution for me. It's probably not the best. I use the package hyphenat and replace the dash in words, which should not be highlighted, with \hyp{}. Now it looks like this: %\documentclass[a4paper, twoside,12pt,abstracton,parskip=half]{scrreprt} \documentclass[a4paper,12pt,abstracton,parskip=half]{scrreprt} ...

2

This works with xelatexor lualatex: \documentclass{scrartcl} \usepackage{fontspec} \usepackage{FiraSans} \usepackage{inconsolata} \setmainfont{XCharter-Roman} \usepackage{graphicx} \usepackage[brazil]{babel} \usepackage{lipsum} \begin{document} \title{Um título qualquer} \author{Fulano de Tal} \date{} \maketitle \section{Seção de teste} \lipsum[1-2] ...

2

Currently the XCharter package has no support for the OpenType version that is however available in TeX Live. The workaround is simple: use \setmainfont directly. \documentclass{scrartcl} \usepackage[brazil]{babel} \usepackage{fontspec} \setmainfont{XCharter}[Numbers=OldStyle] \usepackage{FiraSans} \usepackage{inconsolata} \usepackage{graphicx} ...

8

A space following a digit always terminates the <number> and is absorbed so \foo=2 \otherMacro would assign 2 to \foo followed (with no space) by the expansion of \othermacro Any other non expandable non digit token terminates the <number> but is replaced so \foo=2\relax\otherMacro assigns 2 to \foo then the token stream has \relax and the ...

3

That is a known e-TeX bug inherited by XeTeX (newer version of the bidi package tries to work around this in some limited cases, but it is not something that can really be fixed with macro code). Basically what happens is that the TeX--XeT bidirectional TeX extension used by e-TeX reverses TeX’s internal node list when in RTL mode so that things are typeset ...

1

You can use Latin Modern Sans Serif: \documentclass{article} \usepackage{fontspec} \setsansfont{Latin Modern Sans} \begin{document} \textsf{A simple example} \end{document}

1

I would avoid using Context. I used it for the last 8 years. In the beginning the main attraction was, that you could simplify your document, and style it with some setup. But as the requirements grew, it was a real struggle to find the correct setup and values. The different setup commands are non intuitive and some of them are just not documented. ...

3

If you want to use the kpfonts for text, then XeLaTeX is out of the question: they don't have support for OpenType or TrueType and so they aren't suitable for usage with XeLaTeX (although some dirty tricks might work). Here's a version for pdflatex with babel, where for Greek I use GFS Artemisia that's not so distant from the Kpfonts. ...

1

Here if you want to use greek from another font. Your selection Linux Libertine O has all glyphs mentioned. \documentclass{memoir} \usepackage{polyglossia} \setmainlanguage[spelling=new]{german} \setotherlanguage[variant=polytonic]{greek} \setotherlanguage{english} \usepackage{fontspec} \usepackage[T1]{fontenc} \usepackage[oldstylenums]{kpfonts} ...

8

The logos can be found on the internet. You can then insert the logos using the includegraphics command. \section{\includegraphics[scale=0.03]{linkedinLogo.png}} {linkedin.com/in/yourname} ~ \section{\includegraphics[scale=0.03]{skypeLogo.png}} {skype:yourname?call} ~ Another possibility is to draw the logos using Tikz. I have created the LinkedIN logo in ...

3

With utf8 the Unicode character € is mapped to \texteuro, which requires textcomp. The definition of \texteuro is \DeclareTextCommandDefault{\texteuro} {\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro} If the TS1 font for the current family is known not to have the Euro symbol (that is, it belongs to class 5), the glyph is faked by means ...

7

LaTeX does not need to check anything, the T1 encoding doesn't include euro by definition. It is in the TS1 encoding (as used by textcomp) and of course in the EU1 and EU2 encodings used by lua and xe latex.

0

@egreg posted the solution: \RequirePackage{fixltx2e} needs to be put before \documentclass{...} until an update fixes unicode-math. This has fixed my problem.

4

You can use these icons (that are part ot the font since version 4) with this code : \documentclass[a4paper, 12pt]{article} \usepackage[x11names]{xcolor} \usepackage{array} \usepackage{fontspec} \setmainfont{Minion Pro} \usepackage{fontawesome} \def\faSkype{\FA\symbol{"F17E}} \def\faLinux{\FA\symbol{"F17C}} \def\faTh{\FA\symbol{"F00A}} ...

0

I have no idea why this happens, but it seems like the mere presence of the file C:\ProgramData\MiKTeX\2.9\dvipdfm\config\dvipdfmx.cfg causes this issue, even if the file is empty. Removing the file seems to fix the problem.

0

An immediate work-around is to leave out the amsmath command \text. Instead one can use \mbox. The following works in xelatex: $$a \stackrel{\mbox{\normalfont\tiny\eqref{eq:eq1}}}{=} c$$

3

Change the order of the packages: \documentclass{book} \usepackage{fontspec} \usepackage{extarrows} \setmainfont{Times New Roman} \begin{document} $Q\xLongrightarrow{\text{Maximum}} P$ \end{document}

5

You have to use the no-math option to fontspec: \documentclass{book} \usepackage{extarrows} \usepackage[no-math]{fontspec} \setmainfont{Times New Roman} \begin{document} $Q\xLongrightarrow{\text{Maximum}} P$ \end{document} But the result is disputable, as Computer Modern math fonts don't combine well with Times. What happens without the no-math option ...

6

You need to load a math font that's compatible with the chosen text font. (A give-away that you're using Computer Modern is contained in the shapes of the letters P and Q.) I suggest you load the package unicode-math and set \setmathfont{XITS Math}. If you choose this route, I would also recommend you set XITS (a Times Roman clone) as the main text font. ...

3

Originally I thought this might be resolved by using the supported LaTeX syntax of \makebox[0pt][l]{<content>} rather than the plain-TeX \llap, but the behavior is the same. The \Xlap commands cause issues in certain places because they are \hboxes (TeX primitives, not \mboxes (LaTeX macros). See further details here. Might be worth noting in any case. ...

4

Ok, so I found the answer to my own question. It turns out I was pretty close: \setmainfont[SizeFeatures = {{Size = -8, Font = <Font_A>}, {Size = 8-12, Font = <Font_B>}, {Size = 12- , Font = <Font_C>}}]{<Typeface>} produces exactly what I wanted.

1

You have a global setting of showstringspaces anywhere. Add this to your definition of Pyshell: showstringspaces=false

5

If you are able to work with Xe- or LuaLaTeX, you may load the fontawesome-package which loads all the symbols used in the new style of moderncv: % arara: lualatex \documentclass{article} \usepackage{fontawesome} \begin{document} \noindent \faPhone{} \faPhoneSign{} \faMobilePhone{} \faTablet{} \faPrint{} \faEnvelope{} \faEnvelopeAlt{} \faGlobe\\ ...

2


12

The PGF releases on CTAN and sourceforge contain a bug where the interaction of shadings/transparency and the standalone package and xelatex (and xdvipdfmx) causes problems. The code will work if, for example, the document class is set to article (and, obviously \usepackage{tikz} is added to the preamble). This was fixed in the CVS version back in January. ...

6

Use \documentclass{article} \usepackage{pst-text,pst-grad} \usepackage{pst-light3d} \usepackage{auto-pst-pdf}% Or \usepackage[crop=off]{...} for Win without Perl \begin{document} ... and then run pdflatex --shell-escape <file> or alternative lualatex. The dvipdfmx driver of XeTeX cannot handle outline fonts.

2

You have probably improper encodig. After switching to UTF-8 all characters in problem are visible. \documentclass[a4paper,twoside,12pt, plain]{report} \usepackage{fontspec} \usepackage[french]{babel} \usepackage{xspace} \usepackage{graphicx} %For loading graphic files \usepackage{enumitem} \usepackage{float} \usepackage{hyperref} \usepackage{epsfig} ...

2

Apparently Linux Libertine lacks the Cyrillic alphabet in the bold italic font, but it has it in the semibold italic font. So a workaround is to use semibold instead of bold: \documentclass{article} \usepackage{fontspec} \begin{document} \setmainfont[ Path = /usr/local/texlive/2014/texmf-dist/fonts/opentype/public/libertine/, Extension ...

Top 50 recent answers are included