Difference between revisions of "User:Luigi.scarso/stix"
Jump to navigation
Jump to search
Luigi.scarso (talk | contribs) |
Luigi.scarso (talk | contribs) |
||
Line 39: | Line 39: | ||
\showfont[file:stixgeneral.otf][all] | \showfont[file:stixgeneral.otf][all] | ||
\stoptext | \stoptext | ||
+ | </texcode> | ||
+ | == XITS == | ||
+ | Khaled Hosny has "repackaged" STIX fonts at [http://github.com/khaledhosny/xits-math/tree/STIXv1.0.0 github ] | ||
+ | so that it's possible to '''test''' them as an OpentType math. | ||
+ | This is [http://wiki.contextgarden.net/images/c/c3/Latin.pdf pdf] of <tt>latin.tex</tt> | ||
+ | <texcode> | ||
+ | \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<j<n}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 | ||
+ | |||
</texcode> | </texcode> |
Revision as of 06:16, 29 May 2010
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 pdf of latin.tex
\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