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

Latex "Sha"

896 views
Skip to first unread message

G. A. Edgar

unread,
Aug 1, 2003, 7:58:03 AM8/1/03
to
A typist asked me how to put the Cyrillic letter "Sha" (for the
Shafarevich group) in a mathematical formula. She is using Latex, and
I normally use non-Latex AMS-TeX, so I did not know the answer for her.

--
G. A. Edgar http://www.math.ohio-state.edu/~edgar/

Robin Fairbairns

unread,
Aug 1, 2003, 8:19:17 AM8/1/03
to
"G. A. Edgar" <gzda...@sneakemail.com> writes:
>A typist asked me how to put the Cyrillic letter "Sha" (for the
>Shafarevich group) in a mathematical formula. She is using Latex, and

\usepackage[OT2,OT1]{fontenc}
\def\Sha{{\fontencoding{OT2}\selectfont SH}}
\def\sha{{\fontencoding{OT2}\selectfont sh}}

before \begin{document} will set up the commands with the obvious
semantics.

note, if she's already using {fontenc}, simply prepend "OT2," to its
list of options -- the above assumes no prior use of fontenc.
--
Robin Fairbairns, Cambridge

Donald Arseneau

unread,
Aug 1, 2003, 8:36:33 PM8/1/03
to
r...@cl.cam.ac.uk (Robin Fairbairns) writes:

> "G. A. Edgar" <gzda...@sneakemail.com> writes:
> >A typist asked me how to put the Cyrillic letter "Sha" (for the
> >Shafarevich group) in a mathematical formula. She is using Latex, and
>
> \usepackage[OT2,OT1]{fontenc}
> \def\Sha{{\fontencoding{OT2}\selectfont SH}}
> \def\sha{{\fontencoding{OT2}\selectfont sh}}

G.A. asked for math. I expect I could figure something out by
reading through fntguide (again), but then so could other people.
I expect it will involve \DeclareMathAlphabet as the first step,
then \DeclareMathSymbol.

Donald Arseneau as...@triumf.ca


Robin Fairbairns

unread,
Aug 2, 2003, 6:00:11 AM8/2/03
to

sigh. given the nature of the thing i would tend to put it into a
\text command and have done. surely one doesn't want to waste a maths
alphabet on a single character. so, for example

\def\Sha{{\text{\fontencoding{OT2}\selectfont SH}}} % don't know if outer
% braces are needed
or

\def\Sha{{\ifmmode
\text{\fontencoding{OT2}\selectfont SH}
\else
\fontencoding{OT2}\selectfont SH
\fi}}

after all, it's actually an alphabetic character...
--
Robin Fairbairns, Cambridge

0 new messages