User:Luigi.scarso/stix

From Wiki
Jump to navigation Jump to search

STIX Fonts: a first example

Stix fonts are now out: see http://www.stixfonts.org

I have made a simple pdf from Hans's script below (see http://wiki.contextgarden.net/images/d/d3/Test.pdf)

so we can see them with xpdf (xpdf appears to be broken with pdf from stix's zip)

% this typescript will be in the beta 

\starttypescript [math] [stix] [name]
   \definefontsynonym[MathRoman][file:stixgeneral.otf] [features=math]
\stoptypescript

\starttypescript [serif] [stix] [name] % why 'italic' infull and 'bol' without 'd'?
   \definefontsynonym[Serif]          [file:stixgeneral.otf] [features=default]
   \definefontsynonym[SerifBold]      [file:stixgeneralbol.otf] [features=defaulth]
   \definefontsynonym[SerifItalic]    [file:stixgeneralitalic.otf] [features=default]
   \definefontsynonym[SerifBoldItalic][file:stixgeneralbolita.otf] [features=default]
\stoptypescript

\starttypescript[stix]
   \definetypeface [stix] [rm] [serif] [stix] [default]
   \definetypeface [stix] [mm] [math]  [stix] [default]
\stoptypescript

\usetypescript[stix]
\setupbodyfont[stix]

\usemodule[fnt-25]

\starttext
   \showmathfontcharacters
\stoptext

or, more compact http://wiki.contextgarden.net/images/5/57/Test1-tex.pdf

\starttext
\showfont[file:stixgeneral.otf][all]
\stoptext

XITS

Khaled Hosny has "repackaged" STIX fonts at github so that it's possible to test them as an OpentType math. This is the pdf of latin.tex below.

Also Taco has remade Aditya's My Way Using \startalign and friends here (WARNING: it's a test ! ).

\usetypescriptfile[type-xits]
\usetypescript[xits]
\setupbodyfont[xits]

\starttext

\midaligned{$\bfd\frak XITS\ Math$}\blank[4*big]

\startformula
\pi(n) = \sum^{n}_{m=2}\left\lfloor\biggl(\sum^{m-1}_{k=1}\bigl\lfloor(m/k)\big/\lceil m/k\rceil\bigr\rfloor\biggr)^{-1}\right\rfloor
\stopformula

\startformula
\pi(n) = \sum^{n}_{k=2}\left\lfloor\phi(k) \over k-1\right\rfloor
\stopformula

\startformula
1+\left(1\over1-x^2\right)^3
\stopformula

\startformula
1+\left(1\over1-{{{x^2}\over{y^3}}\over{z^4}}\right)^3
\stopformula

\startformula
{a+1\over b}\bigg/{c+1\over d}
\stopformula

\startformula
\biggl({\partial^{2} \over \partial x^{2}} + {\partial^{2} \over \partial y^{2}}\biggr) {\bigl\vert\phi(x+iy)\bigr\vert}^2
\stopformula

\startformula
\int_{-\infty}^{+\infty}
\stopformula

\startformula
\sum_{\scriptstyle0\le i\le m\atop\scriptstyle0}P(i,j)
\stopformula

\startformula
\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+x}}}}}}}
\stopformula

\startformula
\int_0^3 9x^2 + 2x + 4\, dx = 3x^3 + x^2 + 4x + C \Big]_0^3 = 102
\stopformula

\startformula
e^{x+iy} = e^x(\cos y + i\sin y)
\stopformula

\startformula
x = {-b \pm \sqrt{b^2 - 4ac} \over 2a}
\stopformula

\startformula
 f(x) =
   \startmathcases
     \NC x, \MC \text{if } 0 \le x \le \frac12 \NR
     \NC 1-x ,\MC \text{if } \frac12 \le x \le 1 \NR
   \stopmathcases
\stopformula

\startformula
\vert\big\vert\Big\vert\bigg\vert\Bigg\vert
\stopformula

\startformula
\emptyset \varnothing \eth \backepsilon \approx
\stopformula

\startformula
\hat{i}\hat{j}\bf\hat{i}\hat{j}
\stopformula

\startformula
\hat{\imath}\hat{\jmath}\bf\hat{\imath}\hat{\jmath}
\stopformula

\startformula
\hat{a} \hat{c} \hat{e} \hat{f} \hat{g} \hat{o} \hat{s} \hat{z}
\stopformula

\startformula
\hat{C} \hat{G} \hat{O} \hat{S} \hat{V} \hat{W} \hat{X} \hat{Y} \hat{Z}
\stopformula

\startformula
\hat{𝐚} \hat{𝐜} \hat{𝐞} \hat{𝐟} \hat{𝐠} \hat{𝐨} \hat{𝐬} \hat{𝐳}
\stopformula

\startformula
\hat{𝐂} \hat{𝐆} \hat{𝐇} \hat{𝐎} \hat{𝐒} \hat{𝐕} \hat{𝐖} \hat{𝐗} \hat{𝐘} \hat{𝐙}
\stopformula

\startformula
\hat{ΞΆ} \hat{ΞΈ} \hat{Ξ»} \hat{Ο€} \hat{ρ} \hat{Ο„} \hat{ψ} \hat{Ο‰} \hat{Ο•}
\stopformula

\startformula
\hat{Θ} \hat{Ξ›} \hat{Ξ } \hat{Ξ₯} \hat{Ξ¨}
\stopformula

\startformula
\hat{𝛇} \hat{𝛉} \hat{π›Œ} \hat{𝛑} \hat{𝛒} \hat{𝛕} \hat{π›Ÿ} \hat{𝛙} \hat{π›š}
\stopformula

\startformula
\hat{𝚫} \hat{𝚯} \hat{𝚲} \hat{𝚷} \hat{𝚼} \hat{𝚿}
\stopformula

\startformula
\hat{β„˜} \hat{𝓐} \hat{π“˜} \hat{𝓙} \hat{π’œ} \hat{ℐ} \hat{π’₯} \hat{Ξ”} \hat{Ο} \hat{Ξ§} \hat{𝚭} \hat{𝚢} \hat{𝚾}
\stopformula

\stoptext