On 5/17/2014 7:20 PM, Aíre Funvake wrote:
Hi there,
Am used to seeing the names of well known functions in upright math
font, instead of italics. With LaTeX, it seems, this is default,
plus one can use macros like `\mathrm` or `\textrm` for other text.
An `\hbox{}` too, in plain TeX, but not around `\sin`, for example.
With ConTeXt's LuaTeX-Plain format (may ConTeXt itself as well),
these functions are in italics. Is it possible to control this via
the redefinition of the math fonts? Following does not work for me:
\font\lmromr =
{LucidaBrightMathOT:mode=base} at 14pt
\font\lmromi =
{LucidaBrightMathOT:mode=base} at 14pt
\font\lmromsr =
{LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt
\font\lmromsi =
{LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt
\font\lmromssr =
{LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt
\font\lmromssi =
{LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt
\textfont0 = \lmromr %--sin, cos, numbers
\scriptfont0 = \lmromsr %
\scriptscriptfont0 = \lmromssr %
\textfont1 = \lmromi %--variables
\scriptfont1 = \lmromsi %
\scriptscriptfont1 = \lmromssi %
\textfont2 = \lmromr %--symbols
\scriptfont2 = \lmromsr %
\scriptscriptfont2 = \lmromssr %
\textfont3 = \lmromr %--extras
\scriptfont3 = \lmromsr %
\scriptscriptfont3 = \lmromssr %
It's more like this:
\font\tenrm=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at 10pt
\font\sevenrm=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at 7pt
\font\fiverm=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at 5pt
\font\tentt=file:lucidabrightot.otf at 10pt
\font\tenit=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at 10pt
\font\tenit=file:lucidabrightot-italic.otf:+liga;+kern;+tlig;+trep at 10pt
\font\tenbf=file:lucidabrightot-demi.otf:+liga;+kern;+tlig;+trep at 10pt
\font\tenbi=file:lucidabrightot-demiitalic.otf:+liga;+kern;+tlig;+trep
at 10pt
\font\mathfonttextupright=file:lucidabrightmathot.otf:ssty=0;fixmath=yes
at 10pt
\font\mathfontscriptupright=file:lucidabrightmathot.otf:ssty=1;fixmath=yes
at 7pt
\font\mathfontscriptscriptupright=file:lucidabrightmathot.otf:ssty=2;fixmath=yes
at 5pt
\textfont0=\mathfonttextupright
\scriptfont0=\mathfontscriptupright
\scriptscriptfont0=\mathfontscriptscriptupright
\tenrm
Same for CambriaMath or LatinModernRomanMath. For `\<font>0`,
tried a non-math font, but it did not work. How to set
`\<font>0` to use roman? and `\<font>1` to use italics?
You really need to keep in mind that plain tex is an example tex format,
used for the books that DEK makes and that it normally expects
additional definitions. it's fine to extend it, e.g. with different font
support, which in 8 bit fonts is quite some work due to differences in
encoding, but you must ask yourself if you want to write all that code.
The plain support code that ships with context is mostly meant for
testing. Anyway, I've added lucidaot to plain-math.tex and as a
convenience added a --lucidabright switch, so:
mtxrun --script plain --lucidabright somefile.tex
instead you can use \lucidabright in a document (but then \latinmodern
gets preloaded too). A more efficient setup is possible but not on the
agenda (as we have context already).
In the next beta,
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________