# Tag Info

4

Many TrueType and OpenType fonts have been packaged, chiefly to bring those using latex and pdflatex some of the variety enjoyed by those using xelatex and lualatex. Many, if not all, of the packages can be used with xelatex and lualatex as well as latex and pdflatex, and that’s convenient for anyone who hasn’t yet decided on an engine or who plans to share ...

1

@Thérèse thanks for your tips indeed! I waited a bit too see whether more people would chime in, but since no other input has been made, I'll just report how I managed to resolve the issue. First, replacing xelatex with luatex does indeed work. The downside of that, however, is that luatex takes quite some while longer for a run than does xelatex, so I ...

3

Here's a cut-down version of your preamble with some comments and a minimal set up for Latin Modern with Latin Modern Math: \documentclass[letterpaper]{article} \usepackage[left=1.5in,right=1in,top=1.25in,bottom=1.25in]{geometry} \usepackage{fontspec}% to import fonts via XeTeX % better to use Latin Modern across the board than mix with CMU, I think - LM ...

4

Not essentially different from Tobi's answer, but the substitution is more robust. \documentclass[a4paper]{article} \usepackage{xepersian} \usepackage{newunicodechar} \settextfont{Arial} \newunicodechar{ی}{ي} \begin{document} می‌شود. \end{document} (The thing appears to be reversed, I can't understand what the editor does when Arabic is involved.)

5

You can make the character that is written an active character by use of \catcode and then define it to be the other character: \documentclass[14pt,a4paper]{article} \usepackage{xepersian} \settextfont{Arial Unicode MS} \catcode\ی=\active \def ی{ي} \begin{document} می‌شود. \end{document} (I had to change the font on my system)

1

You should be able to take it from here. \documentclass{memoir}% \newcommand{\altchapter}[1]% #1 = alternate chapter title {\makeoddhead{headings}{\textsl{\normalsize CHAPTER \thechapter. \MakeUppercase{#1}}}% {}{\normalsize\thepage}} \begin{document} \chapter{I am at loss for words} \altchapter{Sanskrit chapter title} \newpage this page intentionally left ...

0

I found out the way to make the section show the text, thanks to Latex and Thai language. I forgot to set the main font to the Thai font, hence the section doesn't show. To do this, use \setmainfont[Path=/Path/To/Font/]{THSarabun.ttf}

2

you can try \mathit: Algo de texto y una fórmula $\mathit{á}+b=\int_{\xi}^{\theta} f(x)\,dx$.

5

Accents in math mode have to be added in a different way than in text mode; in general, an accented letter in math has no connection with the corresponding meaning in text, so ü in math is the second derivative of u, not “u with diaeresis”. You can, if you really want to use accented letters in math, add a meaning for them. \documentclass{article} ...

0

If you can afford to use a different class, then the Koma-Script ones will give you a lot more flexibility in terms of size: \documentclass[fontsize=11.5pt]{scrartcl} This has the added advantage that it applies to all fonts in the document (tt, etc), without requiring individual scaling.

2

Download the ttf version from http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ and save the files in a directory where your system will find the fonts. Then define a typeface \newfontfamily\Bera{Bitstream Vera Sans Mono}[Scale=0.85] As an alternative use the file name. Then you can use listings with \lstset{basicstyle=\Bera\small,...} ...

0

This is based on the OP's comment that solved the problem. Under pdflatex, xelatex or lualatex you can select the font explicitly at any point using \fontencoding{T1}\fontfamily{fvm}\selectfont Note the specific declaration of the font encoding, which is needed if you have not set this globally in the document. For listings, you can then set ...

0

A similar output as that of pdflatex is obtained by xelatex with the following for your special example. Don't expect that it is applicable to other cases. % % xelatex % \documentclass{article} \usepackage[cmyk]{xcolor} % \def\pdftexversion{140} \def\pgfsysdriver{pgfsys-dvipdfm.def} % \usepackage{tikz} \usepackage{pgf} % \makeatletter ...

3

In TeX Live 2015, PDF images newer than version 1.5 are rejected to include by default, that was unintentional, sorry. The SVN sources were changed not to reject such newer images. For a workaround until TeX Live 2016, please use, for example, the following command to compile: xelatex --output-driver="xdvipdfmx -q -E -V 7" filename.tex

1

You took parts from modern-cv.cls and planted them in friggeri-cv.cls, which is surely the wrong thing to do. The friggeri-cv class doesn't have its own \maketitle command, so the definition from article.cls is used, which requires \title and \author in the document. Next, the errors are about \addressfont \@firstname and \@lastname that your modified ...

0

Per Will Robertson's comment, actually, fontspec can find the font; it just doesn't need to be told the location twice. Applying the following diff got rid of the error: - FontFace = {db}{n}{ Font = FRADM.TTF, Path = fonts/franklin-gothic/ }, - FontFace = {db}{i}{ Font = FRADMIT.TTF, Path = fonts/franklin-gothic/ } + FontFace = {db}{n}{ ...

1

\documentclass{article} \usepackage{auto-pst-pdf} \usepackage{hyperref} \usepackage{pst-barcode} \begin{document} \href{http://example.com}{% \begin{pspicture}(1in,1in) \psbarcode[]{http://example.com}{}{qrcode} \end{pspicture}} \end{document} works fine with pdflatex --shell-escape <file> If you still need xelatex to run, you can create the ...

2

Your outer quotes work because of the \MakeOuterQuote declaration. You can make a similar declaration for the inner quotes, but you can't use ' as csquotes protects it (you would run into problems with apostrophs). The "accent aigu" would work, but I would prefer to use the csquotes commands \documentclass[a4paper,12pt]{report} ...

1

Using "inverted" when you start a single quote part should work: text' MWE: \documentclass[a4paper,hebrew,british,12pt]{report} \usepackage{geometry,polyglossia,fontspec,csquotes,setspace} \geometry{vscale=.85} %default is .7, bottom margin too big \MakeOuterQuote{"} \setmainlanguage[variant=british]{english} \setotherlanguage{hebrew} ...

0

Here I finally found the answer, after 24hrs of searching and trying. I hope this solves everything, although I may obtain new errors with increasing size of the document. http://tex.stackexchange.com/a/127427/80224

6

TeX Gyre Termes has very limited support for Greek. You can try the Tempora font, just included in TeX Live with today's update. \documentclass[11pt,a4paper]{scrartcl} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{Tempora} \begin{document} This is English with some Greek: γέγονεν. Isn't that quite nice? εὕρηκα! \end{document} For single words, ...

5

As Sverre says, the basic problem here is that the font does not support Greek. Moreover, you are not loading any package to actually deal with multilingual typesetting i.e. either Babel or Polyglossia. For example, the following works for LuaLaTeX: \documentclass[11pt,a4paper]{scrartcl} \usepackage{polyglossia} \setmainlanguage[variant=british]{english} ...

5

The font TeX Gyre Termes doesn't have the Greek character U+03AD"GREEK SMALL LETTER EPSILON WITH TONOS". If you want to, you can fake it by adding U+0301 "COMBINING ACUTE ACCENT": \documentclass{article} \usepackage{fontspec} \setmainfont{TeX Gyre Termes} \begin{document} This is English with some Greek: γε\char"0301γονεν. \end{document} Produces: ...

1

If I may contribute my own answer, based on comments to egreg's answer by Joseph Wright: Whose responsibility is it to load fonts in LaTeX (or XeLaTeX)? (and how do I know which ones, if mine?) It is normally the responsibility of LaTeX or packages to load fonts. When using TeX primitives, it is the user's responsibility. \textfont2 is a primitive, ...

8

Before you use \textfont2, you must ensure it has been defined, which it is only after LaTeX has typeset at least one formula, even an empty one, in the current font size. This is because it wants to support math at any font size and also to avoid wasting math groups. The command that's actually in charge of defining the math fonts given the current ...

0

This means that you should run latexmk from the directory containing the main file.

2

The effect is also visible with standard LaTeX and mathpazo. You can “fix” this by enlarging the leading, which is something I learn always to do when the text font is Palatino. \documentclass[a4paper, 12pt]{scrartcl} \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} \setmathfont[range=\sqrt]{Asana Math} % better ...

2

You need to expand \BODY before the argument to \setchapterpreamble is scanned. I also propose a better way for setting the quote attribution. \documentclass[11pt,a4paper,twoside,chapterprefix=true]{scrbook} \usepackage{environ} \NewEnviron{myquote}[1]{% \expandafter\myquoteaux\expandafter{\BODY}{#1}% } \newcommand{\myquoteaux}[2]{% ...

2

Here is a suggestion that seems to work. \documentclass{scrbook} \usepackage{xltxtra} \usepackage{environ} \newcommand*\BODYx{} \makeatletter \NewEnviron{myquote}[1]{% \protected@xdef\BODYx{\BODY} \setchapterpreamble[ol][0.6\textwidth]{% \BODYx \null\hfill — \emph{#1}% }% } \makeatother \begin{document} \begin{myquote}{Alejandro ...

1

It seems that the problem can be dealt with by changing the order of package loading and placing polyglossia before biblatex. As the main language of the document is greek, my guess is that it has to do with polyglossia (everything is supposed to appear in greek, like Βιβλιογραφία instead of Bibliography). The same solution does not seem to apply to the ...

3

The \hbar macro is defined by the xunicode package. Here's a modified preamble that should work okay: \PassOptionsToPackage{no-math,cm-default}{fontspec} \documentclass[twoside,nofonts]{tufte-book} \usepackage{amsmath} \usepackage{xgreek} \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} ...

0

To document how I solved this, I applied http://tex.stackexchange.com/a/10928 and added the following command before \begin{document}: \apptocmd{\sloppy}{\hbadness 4000\relax}{}{}

1

You can define english as defaultlanguage in the preamble and then change to arabic with \resetdefaultlanguage{arabic}, note that you must include it inside group Code \documentclass[headinclude=true]{scrartcl} \usepackage{scrlayer-scrpage} \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage{arabic} ...

3

As you noted when changing the authors, the label changes as well. A change in the label can have some serious consequences though. This is because the bibliography is aligned using the length of the longest label, so everything looks nice and uniform and no label protrudes into the bibliography items. In your case you have the labels "Aut00" and "G08" or ...

2

The problem has nothing at all to do with Biblatex and I'm not sure why you would think it does. Basically, cjhebrew is not designed to input Hebrew in this format: it expects transliterated characters and not unicode. Moreover, the hebrew environment is not defined by either cjhebrew or babel with the hebrew option. You cannot use Babel with Hebrew with ...

3

Ulrike asked for a patch in the comments above. This is untested, but might work: \usepackage{unicode-math} \usepackage{ucharcat} \ExplSyntaxOn \cs_set_protected_nopar:Npn \exp_last_unbraced:NNx { \::N \::x_unbraced \::: } \cs_set:Npn \@@_cs_set_eq_active_char:Nw #1 = "#2 \q_nil { \exp_last_unbraced:NNx \cs_gset_eq:NN #1 { \Ucharcat "#2 ~ 12 ~ } } ...

2

The source of the problem seems to be PGF's deferred node positioning (PGF manual 102.2.3) using \pgfpositionnodelater and \pgfpositionnodenow, as shown by the example below. (Forest uses deferred node positioning for placing all nodes!) Run the example using pdflatex and xelatex. In the example, two nodes (A and B) are created in a deferred fashion within ...

2

For now, the file https://github.com/wspr/unicode-math/archive/v0.8b.zip contains the fix. You should be able to install it over the files in your MikTeX directory (backing up the old ones first, of course), or just copy them to the directory where you’re currently running XeLaTeX. To do this: Unzip the archive. Run tex unicode-math.dtx. Move the .sty ...

4

The question is not really well formed as plain tex is a macro format and xetex is an extended TeX engine, but I assume you mean to compare plain Tex with the tex (or pdftex) engine, with plain tex using xetex. Most things will work, but some things will not, such as \ifx\Umathchar\undefined hello \else \ERROR \fi \bye which typesets hello with pdftex ...

1

Simplest answer: Copy the font files to ~/.fonts/, re-run fc-cache, then load them by their human-readable names. More Comprehensive, Revised: My first answer missed that your problem was your demibold fonts not working. Here’s how you do that. To test this, I put symlinks for all the Libertine fonts with slightly-altered names in a fonts/ directory so ...

0

You may activate the Spanish patterns for csplain, required by default by OPmac, by removing the comment in the line that activates it in the hyphen.lan file, and then regenerate the csplain and pdfcsplain formats.

1

It is possible to point to a particular letter in a string if you pre-compute the offset. I should mention that it is dependent on whatever forest used for [inner sep]. \documentclass{article} \usepackage{forest} \usetikzlibrary{calc} \newlength{\offset} \begin{document} \settowidth{\offset}{V[1,2} \begin{forest} [V [AP,name=ap1 [ungewaschen]] ...

1

I don't know how to integrate OPmac with this; but if you follow the instructions in the manual of hyplain, with just a few additions, you can hyphenate Spanish. Make a working directory spanishtest and cd to it In the working directory, copy the file hylang.tex with cp \$(kpsewhich hylang.tex) . Edit the hyrules.tex file to become %%% This is hylang.tex ...

5

It seems that there is a mix of many problems. For example the hyphenation was mentioned in the title and in the first paragraph of your post but no more. You are doing something with missing characters and you are varying the ways: tex engine, format, font. So I am not sure where is the core of your question. First of all: OPmac has nothing to do with your ...

4

The algorithms to find fonts in XeLaTeX and LuaLaTeX are different. I don’t fully understand them, to be honest, but I’ve found that what works on both is the human-readable name reported by fc-list. So, let’s take as an example the Linux Libertine family. (In practical real-world use, there’s the libertine package for this, but I picked this example ...

1

As you found out yourself, \usefonttheme{professionalfonts} is needed to be able to use opentype fonts with beamer. However, I want to add that you probably should use unicode-math together with xelatex to change the math-fonts. \documentclass[serif]{beamer} \usefonttheme{professionalfonts} \usepackage{fontspec} \setromanfont{Linux Libertine O} ...

3

Your question seems to be about iterating on a list of undelimited macro arguments that contains an arbitrary amount of arguments in order to achieve some sort of foreach-loop. I can offer some fully expandable solutions where a marker for denoting the end of the list of arguments is not needed as the end of the list is determined by the emptiness of a ...

5

The code \newfontfamily\noteunic[BoldFont=meiryob.ttc]{meiryo.ttc} defines \noteunic a declaration, that is, a command whose effect ends only with the group which the command appears in. Not as a command with an argument; the same holds for \bfseries, \itshape,\large` and the like. So if you type \noteunic{Abc} you're not saying that only Abc should ...

1

For some reason the comments containing the answer have disappeared, but I hope it is not impolite to answer my own question on the basis of those comments. The solution is to use \usefonttheme{professionalfonts} in the preamble. The minimum working example is now: \documentclass[serif]{beamer} \usepackage[utopia]{mathdesign} ...

3

If your document to be compiled with XeLaTeX is in the front window, go to the “Macros” menu and select “Program”. A selection box appears Choose the XeLaTeX line by clicking on it. TeXShop will add, as the first line in the document, % !TEX TS-program = XeLaTeX (which will appear colored in red). This will have the effect that XeLaTeX will be used to ...

Top 50 recent answers are included