ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* upright lowercase Greek letters in math formulas
@ 2014-05-26 12:12 Mojca Miklavec
  2014-05-26 12:57 ` Mikael P. Sundqvist
  2014-05-26 13:10 ` Johannes Kuester
  0 siblings, 2 replies; 5+ messages in thread
From: Mojca Miklavec @ 2014-05-26 12:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

How could I get upright lowercase Greek letters in math formulas
(provided that such a symbol exists, of course)?

Here's a minimal example:

\setupbodyfont[times]
\starttext
$15{\rm\frac{μm}{μs}}$ 15 μs
\stoptext

Thank you,
    Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: upright lowercase Greek letters in math formulas
  2014-05-26 12:12 upright lowercase Greek letters in math formulas Mojca Miklavec
@ 2014-05-26 12:57 ` Mikael P. Sundqvist
  2014-05-26 13:37   ` Mojca Miklavec
  2014-05-26 13:51   ` Wolfgang Schuster
  2014-05-26 13:10 ` Johannes Kuester
  1 sibling, 2 replies; 5+ messages in thread
From: Mikael P. Sundqvist @ 2014-05-26 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, May 26, 2014 at 2:12 PM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> wrote:
> How could I get upright lowercase Greek letters in math formulas
> (provided that such a symbol exists, of course)?

$\mathgreekupright 15{\rm\frac{μm}{μs}}$ 15 μs

I guess you are aware of \setupmathematics[lcgreek=normal] that makes
all lower case greek letters upright.

/Mikael
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: upright lowercase Greek letters in math formulas
  2014-05-26 12:12 upright lowercase Greek letters in math formulas Mojca Miklavec
  2014-05-26 12:57 ` Mikael P. Sundqvist
@ 2014-05-26 13:10 ` Johannes Kuester
  1 sibling, 0 replies; 5+ messages in thread
From: Johannes Kuester @ 2014-05-26 13:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Mojca,

it seems font switches do not work here.

You must define your own commands for upright Greek letters, e.g.

    \def\muup {\Umathchar  "0"0"0000B5 }

At least this works, maybe there is a better way to do it.


Johannes


Am 26.05.14 14:12, schrieb Mojca Miklavec:
> Hi,
>
> How could I get upright lowercase Greek letters in math formulas
> (provided that such a symbol exists, of course)?
>
> Here's a minimal example:
>
> \setupbodyfont[times]
> \starttext
> $15{\rm\frac{μm}{μs}}$ 15 μs
> \stoptext
>
> Thank you,
>      Mojca
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: upright lowercase Greek letters in math formulas
  2014-05-26 12:57 ` Mikael P. Sundqvist
@ 2014-05-26 13:37   ` Mojca Miklavec
  2014-05-26 13:51   ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Mojca Miklavec @ 2014-05-26 13:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, May 26, 2014 at 2:57 PM, Mikael P. Sundqvist wrote:
> On Mon, May 26, 2014 at 2:12 PM, Mojca Miklavec wrote:
>> How could I get upright lowercase Greek letters in math formulas
>> (provided that such a symbol exists, of course)?
>
> $\mathgreekupright 15{\rm\frac{μm}{μs}}$ 15 μs

Thank you, that worked.

> I guess you are aware of \setupmathematics[lcgreek=normal] that makes
> all lower case greek letters upright.

I don't want that. I would still like to be able to have italic
letters by default, for example for quantities like magnetic
permeability.

All I need is a switch to make *all* the letters upright, including
the Greek ones.

So the only question is: is it an oversight or is it on purpose that
\rm doesn't also switch the Greek letters to their upright form?

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: upright lowercase Greek letters in math formulas
  2014-05-26 12:57 ` Mikael P. Sundqvist
  2014-05-26 13:37   ` Mojca Miklavec
@ 2014-05-26 13:51   ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2014-05-26 13:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.05.2014 um 14:57 schrieb Mikael P. Sundqvist <mickep@gmail.com>:

> On Mon, May 26, 2014 at 2:12 PM, Mojca Miklavec
> <mojca.miklavec.lists@gmail.com> wrote:
>> How could I get upright lowercase Greek letters in math formulas
>> (provided that such a symbol exists, of course)?
> 
> $\mathgreekupright 15{\rm\frac{μm}{μs}}$ 15 μs
> 
> I guess you are aware of \setupmathematics[lcgreek=normal] that makes
> all lower case greek letters upright.


Use “lcgreek=none” and enable the upright, bold etc. symbols with the \tf, \bf etc. commands.

\setupbodyfont[times]

\setupmathematics[lcgreek=none]

\starttext

$ 15\frac{μm}{μs} \quad 15\frac{\tf μm}{\tf μs} $

\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-26 13:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-26 12:12 upright lowercase Greek letters in math formulas Mojca Miklavec
2014-05-26 12:57 ` Mikael P. Sundqvist
2014-05-26 13:37   ` Mojca Miklavec
2014-05-26 13:51   ` Wolfgang Schuster
2014-05-26 13:10 ` Johannes Kuester

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).