|
| 1 | +%&program=xelatex |
| 2 | +%&encoding=UTF-8 Unicode |
| 3 | + |
| 4 | +\newcommand{\as}[1]{{\fontspec{Apple Symbols}#1}} |
| 5 | +\newcommand{\asb}[1]{{\fontspec[Scale=1.1]{Apple Symbols}#1}} |
| 6 | +\newcommand{\ls}[1]{{\fontspec[Scale=0.9]{Lucida Grande}#1}} |
| 7 | +\def\reflect#1{{\setbox0=\hbox{#1}\rlap{\kern0.5\wd0 |
| 8 | + \special{x:gsave}\special{x:scale -1 1}}\box0 \special{x:grestore}}} |
| 9 | +\def\XeLaTeX{\leavevmode |
| 10 | + \setbox0=\hbox{X\lower.5ex\hbox{\kern-.15em\reflect{E}}\kern-.0833em \LaTeX}% |
| 11 | + \dp0=0pt\ht0=0pt\box0 } |
| 12 | + |
| 13 | +\documentclass[11pt]{article} |
| 14 | +\title{Math Symbols in \XeLaTeX} |
| 15 | +\author{Ewan Klein} |
| 16 | +\date{\today} |
| 17 | +\usepackage{fontspec} |
| 18 | +\setromanfont{Palatino} |
| 19 | + |
| 20 | +\begin{document} |
| 21 | +\maketitle |
| 22 | +\section{Introduction} |
| 23 | + |
| 24 | +This file tests direct insertion of unicode characters using cut and paste |
| 25 | +from the Mac OS X font book application. As far as I can tell, some of |
| 26 | +the characters are only available in the Apple Symbols font, and some |
| 27 | +which you might have expected to be in Apple Symbols aren't, but can |
| 28 | +be found instead in Lucida Grande, for example. |
| 29 | + |
| 30 | +I still haven't found a way of producing angle brackets. |
| 31 | + |
| 32 | + |
| 33 | +\begin{itemize} |
| 34 | +\item $P$ \as{≐} $R$ \as{∧} $Q$ |
| 35 | +\item Z ≠ X \as{⊆} Y and X \as{↦} Y |
| 36 | +\item X \as{⊑} Y |
| 37 | +\item a ≥ b ≤ c < d > e |
| 38 | +\item p \ls{→} \as{⊥} |
| 39 | +\item 3 \as{╳} 0.2 = (0.3)\as{⋅}2 |
| 40 | +\item 3 — \as{〈}4, 5 \as{〉} |
| 41 | +\item A \as{⊓} B = A if \as{≡} \ls{¬} |
| 42 | +\item \asb{∃}x\asb{∀}y.R(x) \as{→} R(y) |
| 43 | +\item $x$ \as{∈} $Y$ |
| 44 | +\end{itemize} |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | +\end{document} |
0 commit comments