[tex-eplain] boldface greek symbols

Gérald Tenenbaum gerald.tenenbaum at univ-lorraine.fr
Sun Aug 27 15:44:40 CEST 2023


Thank you.

Here is indeed a working example

\input eplain
\font\tengp=cmmib10
\newfam\gpfam
\textfont\gpfam=\tengp
\def\gp{\fam\gpfam\textfont1=\tengp}
\def\gth{\hbox{$\gp\vartheta$}}
$\gth\neq\vartheta$
\end

However this would require distinct definitions for the same letter in 
distinct sizes.
The behavior therefore radically departs from standard use in which you 
can do, for instance,

\font\tenscaln=eusm10
\font\sevenscaln=eusm10 scaled 700
\newfam\scalnfam\textfont\scalnfam=\tenscaln\scriptfont\scalnfam=\sevenscaln
\def\scaln{\fam\scalnfam\tenscaln}%
\def\scal{\scaln}
\def\A{{\scaln A}}
\def\B{{\scaln B}}
$\A_\B$

Regards,

Gérald

Laurence.Finston at gmx.net a écrit le 27/8/23 à 15:13 :
> First, you define a new family using \newfam.  This takes care of the 
> problem that Philip brought up, because your new \boldgreek or \bg or 
> whatever macro will change the family within its scope.  I think you 
> can have 11 families or so and plain tex only uses 7 or something.  I 
> don't remember the details.  It would be like this:
> \newfam\boldgreekfam
> \def\boldgreek{\fam\boldgreekfam\tenboldgreek}
> \newfam just assigns a number.  If you know the number, you could use 
> it instead of \boldgreekfam, but it's better not to.
> Then you set \textfont, \scriptfont and \scriptscriptfont.  You might 
> need to use scaling if this font isn't available in the sizes you need.
> For example, \font\fiveboldgreek=cmboldgreek10 scaled 700.
> I haven't tested this, so you may have to fiddle with it and/or refer 
> to _The TeXbook_ (never a bad idea).
> That is my attempt to answer your question.  My opinion is that it 
> might be difficult to distinguish bold Greek characters in subscripts 
> from ordinary Greek characters and that \bf and \rm are meant to be 
> the exceptions rather than the rule.  However, to each his/her own.
> If you have any problems, I'll be happy to try to make a working example.
> *Gesendet:* Sonntag, 27. August 2023 um 12:44 Uhr
> *Von:* "Gérald Tenenbaum" <gerald.tenenbaum at univ-lorraine.fr>
> *An:* Laurence.Finston at gmx.net
> *Cc:* "Eplain" <tex-eplain at tug.org>
> *Betreff:* Re: Aw: Re: [tex-eplain] boldface greek symbols
> So how would it work with bold greek?
> When I tried this I get an error until I insert \hboxes
>
> Laurence.Finston at gmx.net a écrit le 27/8/23 à 12:12 :
>
>     > Can't one design a setting working like \bf or \it ?
>     Sure.  This is how \bf is defined in plain.tex:
>     \newfam\bffam \def\bf{\fam\bffam\tenbf} % \bf is family 6
>     \textfont\bffam=\tenbf \scriptfont\bffam=\sevenbf
>     \scriptscriptfont\bffam=\fivebf
>     *Gesendet:* Sonntag, 27. August 2023 um 11:41 Uhr
>     *Von:* "Gérald Tenenbaum" <gerald.tenenbaum at univ-lorraine.fr>
>     *An:* "Philip Taylor (Hellenic Institute)"
>     <P.Taylor at Hellenic-Institute.Uk>
>     *Cc:* "Eplain" <tex-eplain at tug.org>
>     *Betreff:* Re: [tex-eplain] boldface greek symbols
>     Thanks.
>     Yes it suffices, but I also need these boldface letters in subscripts.
>     I am puzzled by the necessity of using \hbox. Can't one design a
>     setting working like \bf or \it ?
>     Regards,
>
>     Gérald
>
>     Philip Taylor (Hellenic Institute) a écrit le 27/8/23 à 11:21 :
>
>         You don't appear to be using \gpfam, Gérald — will not the
>         following suffice ?
>
>
>         \font \tengp = cmmib10
>         \def \gp {\textfont 1 = \tengp}
>         \def \gth {\hbox {$\gp \vartheta $}}
>         $\gth \neq \vartheta $
>         \end
>
>         --
>         /Philip Taylor/
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-eplain/attachments/20230827/a8bbce89/attachment-0001.htm>


More information about the tex-eplain mailing list.