summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/xits/user-guide.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/xits/user-guide.tex')
-rw-r--r--Master/texmf-dist/doc/fonts/xits/user-guide.tex74
1 files changed, 74 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/fonts/xits/user-guide.tex b/Master/texmf-dist/doc/fonts/xits/user-guide.tex
new file mode 100644
index 00000000000..8b6f8d60663
--- /dev/null
+++ b/Master/texmf-dist/doc/fonts/xits/user-guide.tex
@@ -0,0 +1,74 @@
+\usetypescriptfile[type-xits]
+\ctxlua{fonts.otf.features.register_base_substitution('ss01')}
+\definefontfeature[math-text][math-text][ss01=yes]
+\definefontfeature[frac][default][frac=yes]
+\definefontfeature[onum][default][onum=yes]
+\usetypescript[xits]
+\setupbodyfont[xits]
+
+\starttext
+
+\section{Installation}
+
+\subsection{\CONTEXT}
+\CONTEXT\ MkIV are needed for using the math font, text fonts can be used with either MkIV or MkII with \XETEX\ engine, MkII with \PDFTEX\ is not supported.
+
+Recent versions of \CONTEXT\ already have typescripts for XITS, so just
+installing the fonts into TEXMF tree is enough.
+
+\subsection{\LATEX}
+A modern \TEX\ engine with Unicode and OpenType support is needed, namely
+\LUATEX\ or \XETEX. In addition to {\ss fontspec} package, {\ss unicode-math}
+is needed for using XITS fonts in math mode.
+
+If you are using \LUATEX\ then you can either install the fonts OS wide or in
+TEXMF tree. If you are using \XeTeX\ then you need to either install fonts OS
+wide, or adapt your {\ss fontconfig} configuration to look for for fonts
+installed under TEXMF tree, otherwise you will not be able to access fonts by
+font name.
+
+\subsection{MS Office}
+MS Office 2007 or newer is required, the fonts can be installed the regular
+way.
+
+\section{Usage}
+
+\subsection{\LATEX}
+
+\subsubsection{Examples}
+\startTEX
+\documentclass{article}
+\usepackage{unicode-math}
+\setmainfont{XITS}
+\setmathfont{XITS Math}
+
+\begin{document}
+Text $x+y=\sqrt{z}$
+\end{document}
+\stopTEX
+
+\subsection{\CONTEXT}
+
+\subsubsection{Examples}
+
+\startTEX
+\usetypescript[xits]
+\setupbodyfont[xits]
+
+\starttext
+Text $x+y=\sqrt{z}$
+\stoptext
+\stopTEX
+
+\section{Font features}
+\starttable[|lT|l|r|]
+\HL
+\NC feature\NC Description \NC Example \NC\SR
+\HL
+\NC onum \NC Oldstyle numbers \NC {\addff{onum} 0123456789} \NC\FR
+\NC frac \NC Diagonal fractions \NC {\addff{frac} 1/2 2/3 3/4 5/6 7/8} \NC\LR
+\NC ss01 \NC Mathematical Calligraphic Alphabet \NC $\cal ABCDEFGHIJK$ \NC\LR
+\HL
+\stoptable
+
+\stoptext