ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* smaller size for particular style
@ 2016-05-22  8:33 Meer, Hans van der
  2016-05-22 10:07 ` L.S.-Soc&Gam
  2016-05-22 16:08 ` Wolfgang Schuster
  0 siblings, 2 replies; 7+ messages in thread
From: Meer, Hans van der @ 2016-05-22  8:33 UTC (permalink / raw)
  To: NTG ConTeXt

As usual I do a setup for the font with for example: \setupbodyfont[cambria].
For most style variants this is fine, but for \tt I find the size too big.
Thus I would like to keep the sizes as setup by the \setupbodyfont for everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should have the size as if the bodyfont had been setup with \setupbodyfont[cambria,small].

How to effectuate this?

Hans van der Meer




___________________________________________________________________________________
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] 7+ messages in thread

* Re: smaller size for particular style
  2016-05-22  8:33 smaller size for particular style Meer, Hans van der
@ 2016-05-22 10:07 ` L.S.-Soc&Gam
  2016-05-22 10:23   ` Meer, Hans van der
  2016-05-22 16:08 ` Wolfgang Schuster
  1 sibling, 1 reply; 7+ messages in thread
From: L.S.-Soc&Gam @ 2016-05-22 10:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Did you try        \setupbodyfontenvironment        ?

http://wiki.contextgarden.net/Command/setupbodyfontenvironment

I hope that helps.

Greetings, Seba

Am 22.05.2016 um 10:33 schrieb Meer, Hans van der:
> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
> For most style variants this is fine, but for \tt I find the size too big.
> Thus I would like to keep the sizes as setup by the \setupbodyfont for everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should have the size as if the bodyfont had been setup with \setupbodyfont[cambria,small].
>
> How to effectuate this?
>
> Hans van der Meer
>
>
>
>
> ___________________________________________________________________________________
> 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] 7+ messages in thread

* Re: smaller size for particular style
  2016-05-22 10:07 ` L.S.-Soc&Gam
@ 2016-05-22 10:23   ` Meer, Hans van der
  0 siblings, 0 replies; 7+ messages in thread
From: Meer, Hans van der @ 2016-05-22 10:23 UTC (permalink / raw)
  To: NTG ConTeXt


> On 22 May 2016, at 12:07, L.S.-Soc&Gam <axteffekt@gmail.com> wrote:
> 
> Did you try        \setupbodyfontenvironment        ?
> 
> http://wiki.contextgarden.net/Command/setupbodyfontenvironment

Didn't help, because I cannot deduce from this how to systematically change the series of fontsizes for one style (tt) only.

> 
> I hope that helps.
> 
> Greetings, Seba
> 
> Am 22.05.2016 um 10:33 schrieb Meer, Hans van der:
>> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
>> For most style variants this is fine, but for \tt I find the size too big.
>> Thus I would like to keep the sizes as setup by the \setupbodyfont for everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should have the size as if the bodyfont had been setup with \setupbodyfont[cambria,small].
>> 
>> How to effectuate this?
>> 
>> Hans van der Meer
>> 

met vriendelijke groet
Hans van der Meer




___________________________________________________________________________________
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] 7+ messages in thread

* Re: smaller size for particular style
  2016-05-22  8:33 smaller size for particular style Meer, Hans van der
  2016-05-22 10:07 ` L.S.-Soc&Gam
@ 2016-05-22 16:08 ` Wolfgang Schuster
  2016-05-22 17:02   ` Henman
  2016-05-22 18:01   ` Meer, Hans van der
  1 sibling, 2 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2016-05-22 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 832 bytes --]

> Meer, Hans van der <mailto:H.vanderMeer@uva.nl>
> 22. Mai 2016 um 10:33
> As usual I do a setup for the font with for example: 
> \setupbodyfont[cambria].
> For most style variants this is fine, but for \tt I find the size too big.
> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) 
> should have the size as if the bodyfont had been setup with 
> \setupbodyfont[cambria,small].
>
> How to effectuate this?
You can define your own typeface where you change the scaling.

\definetypeface [hans] [rm] [serif] [cambria] [default]
\definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
\definetypeface [hans] [mm] [math]  [cambria] [default]

\setupbodyfont[hans]

\starttext
a{\tt a} e{\tt e} A{\tt A}
\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1887 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: smaller size for particular style
  2016-05-22 16:08 ` Wolfgang Schuster
@ 2016-05-22 17:02   ` Henman
  2016-05-22 18:01   ` Meer, Hans van der
  1 sibling, 0 replies; 7+ messages in thread
From: Henman @ 2016-05-22 17:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

When I  change the middle line in Wolfgang's example at the bottom of 
this message from:

a{\tt a} e{\tt e} A{\tt A}
              |
              | to the below
              v
x{\tt a} y{\tt e} z{\tt A}

I thought i should get:     aa   ee  and AA for  the given example
                             and:     xa   ye  and zA  for my modified 
version.

But the output is exactly the same. (Using; ConTeXt TDS Runner Tool 1.31)

So what do the letters preceding the { } groups do?
Can this behavior be easily explained or a reference given to me to 
understand this?
>
> On 05/22/2016 09:08 AM, Wolfgang Schuster wrote:
> You can define your own typeface where you change the scaling.
>
> \definetypeface [hans] [rm] [serif] [cambria] [default]
> \definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
> \definetypeface [hans] [mm] [math]  [cambria] [default]
>
> \setupbodyfont[hans]
>
> \starttext
> a{\tt a} e{\tt e} A{\tt A}
> \stoptext

___________________________________________________________________________________
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] 7+ messages in thread

* Re: smaller size for particular style
  2016-05-22 16:08 ` Wolfgang Schuster
  2016-05-22 17:02   ` Henman
@ 2016-05-22 18:01   ` Meer, Hans van der
  2016-05-22 18:11     ` Meer, Hans van der
  1 sibling, 1 reply; 7+ messages in thread
From: Meer, Hans van der @ 2016-05-22 18:01 UTC (permalink / raw)
  To: NTG ConTeXt


> On 22 May 2016, at 18:08, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>> Meer, Hans van der 22. Mai 2016 um 10:33
>> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
>> For most style variants this is fine, but for \tt I find the size too big.
>> Thus I would like to keep the sizes as setup by the \setupbodyfont for everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should have the size as if the bodyfont had been setup with \setupbodyfont[cambria,small].
>> 
>> How to effectuate this?
> You can define your own typeface where you change the scaling.
> 
> \definetypeface [hans] [rm] [serif] [cambria] [default]
> \definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
> \definetypeface [hans] [mm] [math]  [cambria] [default]
> 
> \setupbodyfont[hans]
> 
> \starttext
> a{\tt a} e{\tt e} A{\tt A}
> \stoptext
> 
> Wolfgang

Am I right that to change nothing more than the size of \tt it is sufficient to just redefine that one only:

\setupbodyfont[afont]
\definetypeface [hans][tt][mono][\fontclass][default][rscale=0.85]
\setupbodyfont[hans]

and leaving everything else as is?

Hans van der Meer




___________________________________________________________________________________
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] 7+ messages in thread

* Re: smaller size for particular style
  2016-05-22 18:01   ` Meer, Hans van der
@ 2016-05-22 18:11     ` Meer, Hans van der
  0 siblings, 0 replies; 7+ messages in thread
From: Meer, Hans van der @ 2016-05-22 18:11 UTC (permalink / raw)
  To: NTG ConTeXt


> On 22 May 2016, at 20:01, Meer, Hans van der <H.vanderMeer@uva.nl> wrote:
> 
> 
>> On 22 May 2016, at 18:08, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>> 
>>> Meer, Hans van der 22. Mai 2016 um 10:33
>>> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
>>> For most style variants this is fine, but for \tt I find the size too big.
>>> Thus I would like to keep the sizes as setup by the \setupbodyfont for everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should have the size as if the bodyfont had been setup with \setupbodyfont[cambria,small].
>>> 
>>> How to effectuate this?
>> You can define your own typeface where you change the scaling.
>> 
>> \definetypeface [hans] [rm] [serif] [cambria] [default]
>> \definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
>> \definetypeface [hans] [mm] [math]  [cambria] [default]
>> 
>> \setupbodyfont[hans]
>> 
>> \starttext
>> a{\tt a} e{\tt e} A{\tt A}
>> \stoptext
>> 
>> Wolfgang
> 
> Am I right that to change nothing more than the size of \tt it is sufficient to just redefine that one only:
> 
> \setupbodyfont[afont]
> \definetypeface [hans][tt][mono][\fontclass][default][rscale=0.85]
> \setupbodyfont[hans]
> 
> and leaving everything else as is?
> 
> Hans van der Meer
> 
> 

No I already guess I am wrong here: in order to keep cambria for rm etc I should add also:
\definetypeface [hans][rm][serif][\fontclass][default]
etc.
Right?

Hans van der Meer




___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2016-05-22 18:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-22  8:33 smaller size for particular style Meer, Hans van der
2016-05-22 10:07 ` L.S.-Soc&Gam
2016-05-22 10:23   ` Meer, Hans van der
2016-05-22 16:08 ` Wolfgang Schuster
2016-05-22 17:02   ` Henman
2016-05-22 18:01   ` Meer, Hans van der
2016-05-22 18:11     ` Meer, Hans van der

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).