# Tag Info

3

\documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \setmathfont{XITS Math} \setmathfont[math-style=literal,range={"00F0-"03D6}]{XITS Math} \begin{document} This will work: $\upmu\upalpha x$ $\mitAlpha$ But this will work: $\mathrm{\mu}$ $\mathit{\Alpha}$ \end{document}

6

How greek letter are typeset depends on the option math-style. With e.g. french both \upmu and \mu will be upright, with ISO both are italic. (I do find this confusing too, that \upXXX ends up italic ...). If you want to force upright mode for a single instance use a markup command like \mathup. \documentclass{article} \usepackage{amsmath} ...

3

(Note: The following explanation is specific to TeXLive. I don't know how other TeX distributions -- e.g., MikTeX, PCTeX, Scientific Workplace -- handle this matter.) You've discovered that there's a single executable program, luatex, and that lualatex is "merely" a symbolic link to luatex. By the way, the single-executable-program-name matter isn't ...

3

While LinLibertine_M.otf advertises covering cyrl, grek and hebr, it shows no glyph belonging to those alphabets. Here is a picture of the font table obtained with fontforge and showing the Cyrillic range: No glyph is shown. With otfinfo -g the result is the same: no Cyrillic glyph name is output. So, yes: Linux Libertine Mono doesn't support Cyrillic.

6

Well, Private Use Areas are part of Unicode, they just have no predefined meaning. So you can use them like any other character, e.g. by simply typing it (if you have an appropriate input method) or using the character code either as \char"F3A0F or ^^^^^f3a0f. If I run your example here, I get a PDF with the symbol both with LuaTeX and XeTeX.

10

From the usage of \RequirePackage I guess you're writing a package, so you'd like it to be as independent as possible on a particular user's setup. I'll assume that your users will be supposed to have an up-to-date TeX distribution, but not that they have the fonts available as system fonts. Setting Erewhon as the main font can be obtained by ...

17

With \usepackage{fourier} you are simply ignoring fontspec and using a family of “classical” 256 character font. You can use classical fonts with LuaLaTeX, without loading fontspec, but luainputenc: \documentclass{article} \usepackage{ifluatex} \usepackage[TS1,T1]{fontenc} % load TS1 so luainputenc will know \ifluatex \usepackage{luacode} ...

4

As it is already verified, I put also my solution, suggested in comments. \documentclass{article} \usepackage{fourier} \catcode`\€=\active \def€{\texteuro} \begin{document} 36 € \end{document}

12

You can use newunicodechar package and define \newunicodechar{€}{\texteuro} Code: \documentclass{article} \RequirePackage{ifluatex} \ifluatex \RequirePackage{fontspec} \RequirePackage{luacode} \else \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} \fi \let\hbar\hhhbar %% without this I get a warning \RequirePackage{fourier} ...

0

For those without proper support for CTL (either in the Tex distro or OS), you can still use the devanagari package by Velthuis. But you'll have to convert all UTF-8/Unicode encoded Devanagari to velthuis transliteration.

5


13

this just uses local settings so can (will) go wrong if the next paragraph starts in a local group as things won't get restored properly. That's fixable but this shows the basic idea... \documentclass{article} \usepackage{marginnote} \let\zzeverypar\everypar \newtoks\everypar \zzeverypar{\the\everypar} \newenvironment{myenv}{% \ifvmode ...

2

This is not really an answer, since it does not solve the problem, nor add much clarification, but I think it is worth writing it and it is too long for a comment. Something is wrong about your profile showing only 100Mb of used memory. Only the token memory used is much larger, as I'll show in short, and there is also other kind of memory in use (string ...

3

If your font does not provide that font-feature, you might use the option AutoFakeSlant from fontspec. I had to use some other font and the mix of small caps and italics looks bad here, but you see how it's done. I got the feeling that the space on the left side appears to be very big when slanted letters are used. Therefore I added some kerning in order to ...

3

The Greek lowercase letter chosen for TeX Gyre Schola Math are, in my opinion, not matching the main font: they are too thin and, of course, some of them are too tall. You have some strategies available. First, scaling down all the Greek lowercase letters: \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{TeX Gyre ...

1

run luaotfload-tool -fuvvv --log=stdout and it shows you where fonts are searched

3

Like other TeX-related environmental variables, controlling OSFONTDIR requires understanding how variables are expanded by kpathsea. The key is to know that // (two consecutive / chars) is treated as a 'recursive' marker. Thus what you want is export OSFONTDIR="/usr/local/share/fonts//;$HOME/.fonts// Before you alter this value, I'd be tempted to check ... 11 Whether the font is packaged as TTC or not is irrelevant to the issue here. Most (all?) Latin fonts shipped by Apple use AAT layout tables, not OpenType. Older versions of LuaTeX partially supported AAT rather accidentally; as egreg pointed out in his comment above, FontForge that is used as base for the LuaTeX font loader maps some AAT features to ... 0 I'm not sure how or if you can do this in your TeX system, so this is just a partial answer. You can do something like (the syntax on your system might be different) for d in$HOME/.fonts/*/; do OSFONTDIR+=":$d" done to recursively add all subdirectories of$HOME/.fonts to OSFONTDIR.

Top 50 recent answers are included