Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Stix \mathscr{o} within a different font

119 views
Skip to first unread message

user

unread,
Mar 22, 2014, 7:38:45 AM3/22/14
to
I Miktex 2.9 I have a recent and working copy of stix fonts.

I would like to be able to define a command like \stixmathscr so that
I can insert in a Latex (no XeLateX) document, where I use a DIFFERENT
font both in text and in math, the math script letters from stix
fonts. In package stix a command is defined as \mathscr and I would
like to have the same result I get from

\usepackage{stix}

and then

$\mathscr{o}$

without the former, just using something like

$\stixmathscr{o}$.

in a document where all the rest is typeset with a different font, and
where there is no mathscr font defined.

Actually, it would be enough to have a command to insert the little o
only (I do not need the whole alphabet...)

I tried to google for this but I couldn't do it...

Thanks
Maurizio

Scott Pakin

unread,
Mar 22, 2014, 2:28:03 PM3/22/14
to
On 03/22/2014 05:38 AM, user wrote:
> I Miktex 2.9 I have a recent and working copy of stix fonts.
>
> I would like to be able to define a command like \stixmathscr so that
> I can insert in a Latex (no XeLateX) document, where I use a DIFFERENT
> font both in text and in math, the math script letters from stix
> fonts. In package stix a command is defined as \mathscr and I would
> like to have the same result I get from
>
> \usepackage{stix}
>
> and then
>
> $\mathscr{o}$
>
> without the former, just using something like
>
> $\stixmathscr{o}$.
>
> in a document where all the rest is typeset with a different font, and
> where there is no mathscr font defined.

Try this:

\documentclass[12pt]{article}

\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix}{m}{n}
\DeclareSymbolFont{stixsymbols}{LS1}{stixscr}{m}{n}
\DeclareSymbolFontAlphabet{\stixmathscr}{stixsymbols}

\begin{document}

Hell$\stixmathscr{o}$, w$\stixmathscr{o}$rld!

\end{document}

I just copied, _mutatis mutandis_, the definition of \mathscr and its
dependences from stix.sty and pasted them in the document.

-- Scott

Robin Fairbairns

unread,
Mar 22, 2014, 3:00:20 PM3/22/14
to
user <us...@invalid.it> writes:

> I Miktex 2.9 I have a recent and working copy of stix fonts.
>
> I would like to be able to define a command like \stixmathscr so that
> I can insert in a Latex (no XeLateX) document, where I use a DIFFERENT
> font both in text and in math, the math script letters from stix
> fonts. In package stix a command is defined as \mathscr and I would
> like to have the same result I get from
>
> \usepackage{stix}
>
> and then
>
> $\mathscr{o}$
>
> without the former, just using something like
>
> $\stixmathscr{o}$.
>
> in a document where all the rest is typeset with a different font, and
> where there is no mathscr font defined.

i don't know of a quick-and-easy solution. using stix (as it stands)
requires opentype processing ... which of course you rule out.

so you need the alternative esstix set ("stix for latex" was an ams
mantra i saw at one stage).

the esstix fonts are presented as type 1, so you can in principal use
them. they're distributed by miktex ... i'm afraid i'm not in a
position to look in the docs to help you find precisely what to do.
--
Robin Fairbairns, Cambridge

Bob Tennent

unread,
Mar 22, 2014, 3:18:50 PM3/22/14
to
On Sat, 22 Mar 2014 19:00:20 +0000, Robin Fairbairns wrote:

> i don't know of a quick-and-easy solution. using stix (as it stands)
> requires opentype processing ...

The stix package has had type1 fonts and support files since the
beginning of the year. It would be nice if the Catalogue caught up.

Bob T.

user

unread,
Mar 23, 2014, 1:59:02 PM3/23/14
to
On Sat, 22 Mar 2014 12:28:03 -0600, Scott Pakin <scot...@pakin.org>
wrote:
>
>Try this:
>
> \documentclass[12pt]{article}
>
> \DeclareFontEncoding{LS1}{}{}
> \DeclareFontSubstitution{LS1}{stix}{m}{n}
> \DeclareSymbolFont{stixsymbols}{LS1}{stixscr}{m}{n}
> \DeclareSymbolFontAlphabet{\stixmathscr}{stixsymbols}
>

It works! Thanks. Anyway I confirm that you can get stix fonts in
Type1 format working in a latex doc.

Thanks
Maurizio

Herbert Schulz

unread,
Mar 23, 2014, 4:32:49 PM3/23/14
to
Howdy,

At least with an up to date TeX Live 2013 there is a stix package which
implements the type1 stix fonts for LaTeX.

--
Good Luck,
Herb Schulz

Robin Fairbairns

unread,
Mar 24, 2014, 6:23:38 AM3/24/14
to
perhaps i ought to retire as catalogue maintainer.

obviously a failure in that role.
--
Robin Fairbairns, Cambridge
0 new messages