[XeTeX] Coordinating fonts in text and math mode: question from a new user
Andrew Moschou
andmos at gmail.com
Thu Aug 6 06:13:38 CEST 2009
2009/8/6 Andrew Moschou <andmos at gmail.com>
> Give it some time so that I (or another faster person) can work out the
> appropriate definitions for these.
>
Here they are:
\makeatletter
\newcommand\xl at sh@ft[1]{%
\dimen@ #1%
\multiply\dimen@\m at ne
\kern\strip at pt\fontdimen\@ne\font\dimen@}
\newcommand{\existential}{%
\ensuremath{\mathord{%
\ifnum\XeTeXcharglyph"018E>0%
\mbox{\char"018E}%
\else
\reflectbox{E}%
\fi}}}
\newcommand{\universal}{%
\ensuremath{\mathord{%
\setbox\z@\hbox{A}%
\dimen@\ht\z@
\advance\dimen@\dp\z@
\ltx at sh@ft\dimen@
\raise\dimen@\hbox{\rotatebox{180}{\box\z@}}%
\xl at sh@ft\dimen@}}}
\newcommand{\definitedescription}{%
\ensuremath{\mathord{%
\setbox\z@\hbox{$\iota$}%
\dimen@\ht\z@
\advance\dimen@\dp\z@
\ltx at sh@ft\dimen@
\raise\dimen@\hbox{\rotatebox{180}{\box\z@}}%
\xl at sh@ft\dimen@}}}
\makeatother
Copy and paste that into your document (or a new file and make reference to
that file in your document). Then you can use \universal, \existential and
\definitedescription (or you can choose other names). Note that you will
need to load the graphicx package with \usepackage{graphicx}.
For reference, they are derived from my metalogo package, which borrows from
xltxtra.
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20090806/b8767c5f/attachment.html>
More information about the XeTeX
mailing list