New answers tagged

2

For technical reasons, much of the work of unicode-math related to defining the meaning of symbols is performed at begin document. In particular, \int is among the symbols defined there. So use \AtBeginDocument{% \let\oldint\int \renewcommand\int{\oldint lol}% }


3

\documentclass[a4paper,11pt]{book} \usepackage{unicode-math} \usepackage{libertine} \addfontfeatures{Numbers={Lining,Monospaced}} %\setmonofont{Consolas}% not available for me \setmathfont[math-style=ISO,bold-style=ISO]{Cambria Math} \setmathfont[range=0048-0057]{Linux Libertine O} \usepackage{siunitx} \begin{document} [ ... ]


6

OpenType support in TeX as of when I first wrote xfrac in early 2004 was basically non-existent - XeTeX hadn't even been released back then. Therefore, the package was never designed with that in mind. Besides, the fundamental purpose was to provide a way to write nice fractions for fonts that didn't include them. The package could very likely be made ...


3

Here I create \altfrac{}{}. It does not require fontspec, it obeys math mode, its font is larger than that of \sfrac, the denominator lies on the baseline, while the top of the numerator I tries to lay at the top of the normal text font. The numbers are presented in \footnotesize. The slash is a horizontally stretched / to give it more of the fractional ...


5

I think that rather than look at unicode-math it's more natural to look at inputenc's utf8 support (if your main interest is textual accented characters rather than math symbols). That maps Unicode input to classic latex markup. The base latex distribution has a file utf8enc.dfu that contains the mapping as far as it is implemented. As memory constraints ...


6

This works for roughly the reasons explained in the comments: \documentclass{beamer} \usefonttheme{professionalfonts} \usefonttheme{serif} \usepackage{fontspec} \setmainfont{Latin Modern Sans}%TeX Gyre Schola} % \setsansfont{Latin Modern Sans} \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math} \usepackage{siunitx} \sisetup{% detect-all,% } ...


2

If you don't need it presented in \scriptstyle, etc, then this might suffice. \documentclass{article} \usepackage{graphicx} \def\depend{\mathbin{% \ooalign{$\perp$\cr$\,\perp$\cr\scalebox{1.3}[.5]{\raisebox{5pt}{$\mkern2mu/$}}}}} \begin{document} $\mathcal{G}\depend X$ \end{document} If one does need it in different math styles, then maybe this: ...


1

symbols-a4 gives a possible definition for \independent on p. 212 (ยง10.3): \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}



Top 50 recent answers are included