[Ipe-discuss] cmss for math symbols

Johan Ingvast ingvast at md.kth.se
Wed Jul 19 16:35:52 CEST 2006


Alexander Wolff wrote:
> dear johan,
> 
> i forgot to mention that the problem only occurs in math mode,
> e.g.,  $d(x,y)$  becomes  d(x;y)
> 
> sascha
> 
> 
>  > > for my slides i would like to use the text font (cmss) suggested in
>  > > presentation.xml also for my math formulas (in italics).  i used the
>  > > following lines in my style sheet:
>  > > 
>  > > <preamble>
>  > > \renewcommand\rmdefault{cmss}
>  > > \DeclareSymbolFont{operators}{OT1}{cmss}{m}{n}
>  > > \DeclareSymbolFont{letters}  {OT1}{cmss}{m}{it}
>  > > \DeclareSymbolFont{bold}     {OT1}{cmss}{bx}{n}
>  > > \DeclareSymbolFont{italic}   {OT1}{cmss}{m}{it}
>  > > </preamble>
>  > > 
>  > > this basically works, but some characters seem to be encoded
>  > > differently.  e.g. if i write a comma (,) i get a semicolon (;),
>  > > if i write a perion (.) i get a colon (:).

After some reading in 
http://www.tug.org/tex-archive/macros/latex/doc/fntguide.pdf I found a solution 
that solves at least this problem. (I don't know if it causes any other.)
After the lines of DeclareSymbolFont add some lines that changes the way the 
comma and colon looks like.

\DeclareMathDelimiter{,}{\mathpunct}{letters}{"2C}{symbols}{"2C}
\DeclareMathDelimiter{.}{\mathpunct}{letters}{"2E}{symbols}{"2E}

I don't exactly know what all arguments are good for, but it works.
Hope it helps.
/johan




More information about the Ipe-discuss mailing list