[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary Relations, draft 1




> IMHO the rule for upright setting is, that (beside some other entities)
> _numbers_ are typeset upright. Note that it is not _constants_, since any
> ad hoc constants (typically denoted by $c$ or $k$) are typeset in math 
> italics. e, i, j, k, pi (my preferred macros: \ee, \ie, \je, \ka, \pie)
> are numbers, not just constants.

> Unfortunately, as noted before, there is no standard markup for the upright
> math constants. Each publisher uses a different one. Here is my short list:


>    Springer-Verlag Vieweg     Spektrum akad. Verlag

> d  \D              \de        \de
> D
> e  \E              \ee        \ee
> i  \I              \ie        \ie
> j
> k

Elsevier, elsart.cls:

\def\d{\,\mathrm{d}}
\def\e{\mathop{\mathrm{e}}\nolimits}

IOP:  iopart.cls

\newcommand{\e}{\mathrm{e}}
\newcommand{\rme}{\mathrm{e}}
\newcommand{\rmi}{\mathrm{i}}
\newcommand{\rmd}{\mathrm{d}}

AIP, APS: revtex.sty

<nothing>

Private hacks, using overloading:

\DeclareTextSymbolDefault{\@@i}{OT1} % dotless i
\DeclareTextSymbolDefault{\@@j}{OT1} % dotless j
\DeclareTextSymbol{\@@i}{OT1}{16}
\DeclareTextSymbol{\@@j}{OT1}{17}
\DeclareTextSymbol{\@@i}{T1}{25}
\DeclareTextSymbol{\@@j}{T1}{26}

\DeclareTextAccentDefault{\@@d}{OT1} % dot under accent
\DeclareTextCommand{\@@d}{OT1}[1]
   {\oalign{\null#1\crcr\hidewidth\sh@ft{08}.\hidewidth}}
\DeclareTextCommand{\@@d}{T1}[1]
   {\oalign{\null#1\crcr\hidewidth\sh@ft{08}.\hidewidth}}

\DeclareRobustCommand{\e}{\relax\ifmmode\mathrm{e}\else\error\fi}
\DeclareRobustCommand{\i}
  {\relax\ifmmode\mathrm{i}\else\expandafter\@@i\fi}
\DeclareRobustCommand{\j}
  {\relax\ifmmode\mathrm{j}\else\expandafter\@@j\fi}
\DeclareRobustCommand{\d}
  {\relax\ifmmode\mathrm{d}\else\expandafter\@@d\fi}