ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* issue in the wiki
@ 2016-05-29 10:35 Pablo Rodriguez
  2016-05-29 15:31 ` Mohammad Hossein Bateni
  0 siblings, 1 reply; 15+ messages in thread
From: Pablo Rodriguez @ 2016-05-29 10:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

modifying http://wiki.contextgarden.net/Command/hrule#Example, I added
an "\hrule height .25in".

I’m afraid that this command make all rules vanish in the final document.

The same source compiles fine with latest beta (2016.05.22 15:18) on my
laptop.

Is there anything that I’m missing or have i hit a bug?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 15+ messages in thread

* Re: issue in the wiki
  2016-05-29 10:35 issue in the wiki Pablo Rodriguez
@ 2016-05-29 15:31 ` Mohammad Hossein Bateni
  2016-05-29 16:36   ` Letterspacing Thomas Fehige
  2016-05-31  8:31   ` issue in the wiki Pablo Rodriguez
  0 siblings, 2 replies; 15+ messages in thread
From: Mohammad Hossein Bateni @ 2016-05-29 15:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

The version on the wiki is the stable version from mid 2015.
On May 29, 2016 12:36 PM, "Pablo Rodriguez" <oinos@gmx.es> wrote:

> Dear list,
>
> modifying http://wiki.contextgarden.net/Command/hrule#Example, I added
> an "\hrule height .25in".
>
> I’m afraid that this command make all rules vanish in the final document.
>
> The same source compiles fine with latest beta (2016.05.22 15:18) on my
> laptop.
>
> Is there anything that I’m missing or have i hit a bug?
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 2034 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] 15+ messages in thread

* Letterspacing
  2016-05-29 15:31 ` Mohammad Hossein Bateni
@ 2016-05-29 16:36   ` Thomas Fehige
  2016-05-29 16:49     ` Letterspacing Hans Hagen
  2016-05-31  8:31   ` issue in the wiki Pablo Rodriguez
  1 sibling, 1 reply; 15+ messages in thread
From: Thomas Fehige @ 2016-05-29 16:36 UTC (permalink / raw)
  To: ntg-context

I'm still trying to understand some ConTeXt ways of doing things, being 
a kind of LaTeX native myself. I bought the context-fonts manual, but 
still can't figure out how to implement a macro that does the simple(?) 
following, especially item 3:

1. Make #1 uppercase [OK, in simple situations I could just type the 
uppercase letters]
2. change #1's color to xxx [not a problem]
3. apply an amount of letterspacing to the capitalized #1 that I can 
specify myself.

Maybe I'm only using the wrong search term, maybe the letterspace 
feature is well hidden in the documentation, maybe it doesn't exist: I 
simply don't know and don't see a way to find out. \stretched is not an 
answer.

Any hints appreciated.

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

* Re: Letterspacing
  2016-05-29 16:36   ` Letterspacing Thomas Fehige
@ 2016-05-29 16:49     ` Hans Hagen
  0 siblings, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2016-05-29 16:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5/29/2016 6:36 PM, Thomas Fehige wrote:
> I'm still trying to understand some ConTeXt ways of doing things, being
> a kind of LaTeX native myself. I bought the context-fonts manual, but
> still can't figure out how to implement a macro that does the simple(?)
> following, especially item 3:
>
> 1. Make #1 uppercase [OK, in simple situations I could just type the
> uppercase letters]
> 2. change #1's color to xxx [not a problem]
> 3. apply an amount of letterspacing to the capitalized #1 that I can
> specify myself.
>
> Maybe I'm only using the wrong search term, maybe the letterspace
> feature is well hidden in the documentation, maybe it doesn't exist: I
> simply don't know and don't see a way to find out. \stretched is not an
> answer.

\starttext

some words

\WORD{some words}

\definecharacterkerning[mine][factor=0.5]
\definecharacterkerning[less][factor=0.05]
\definecharacterkerning[more][factor=0.1]

\WORD{\setcharacterkerning[mine]some words}

{\setcharactercasing[WORD]\setcharacterkerning[mine]some words}

{\setcharactercasing[Words]\setcharacterkerning[less]some words}

{\setcharactercasing[Words]\setcharacterkerning[more]some words}

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | 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
___________________________________________________________________________________

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

* Re: issue in the wiki
  2016-05-29 15:31 ` Mohammad Hossein Bateni
  2016-05-29 16:36   ` Letterspacing Thomas Fehige
@ 2016-05-31  8:31   ` Pablo Rodriguez
  2016-06-06  8:11     ` Partial \framed Thomas Fehige
  1 sibling, 1 reply; 15+ messages in thread
From: Pablo Rodriguez @ 2016-05-31  8:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 05/29/2016 05:31 PM, Mohammad Hossein Bateni wrote:
> The version on the wiki is the stable version from mid 2015.

Hi Mohammad,

the stable version (from 2015.05.18 12:26) compiles the document fine.
All rules are there.

There must be something problematic besides ConTeXt itself (something
related to the generation of the .png image?).

Many thanks for your help,

Pablo


> On May 29, 2016 12:36 PM, "Pablo Rodriguez" wrote:
> 
>     Dear list,
> 
>     modifying http://wiki.contextgarden.net/Command/hrule#Example, I added
>     an "\hrule height .25in".
> 
>     I’m afraid that this command make all rules vanish in the final
>     document.
> 
>     The same source compiles fine with latest beta (2016.05.22 15:18)
>     on my laptop.
> 
>     Is there anything that I’m missing or have i hit a bug?
> 
>     Many thanks for your help,
> 
>     Pablo



-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 15+ messages in thread

* Partial \framed
  2016-05-31  8:31   ` issue in the wiki Pablo Rodriguez
@ 2016-06-06  8:11     ` Thomas Fehige
  2016-06-06 10:32       ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Fehige @ 2016-06-06  8:11 UTC (permalink / raw)
  To: ntg-context

I'm trying to put a piece of text in a partial frame that's meant to 
look like square brackets aligned with the left and right edges of the 
textblock.

I tried to use two \framed constructions inside each other, the outer 
one with width=textwidth and negative toffset and boffset, the inner one 
with a smaller width, a fat rulethickness and the color of the 
background, expecting it to erase the outer frame where it's not needed:

\color[zier]{%

\framed[%

align=middle,

width=\textwidth,

                         toffset=-4mm,

boffset=-4mm,

strut=no,

]{%

\color[paper]{\framed[%

align=middle,

width=222mm, % i.e. \textwidth-4mm

                                 toffset=6mm,

boffset=5mm,

rulethickness=5mm

]{%

\color[zier]{\tfd \strut Here's the text that is menat to look 
important; its length/number of lines is undetermined.\strut}

}}%

}%

}%

... but it doesn't work. Apparently the inner frame is drawn before the 
outer one. Putting the wider frame inside the narrower results in 
alignment problems --  due to the overfull hbox, I presume.

Is  there a simple solution in ConTeXt that I haven't found yet, or will 
I have to try some plain TeX box magic myself?

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

* Re: Partial \framed
  2016-06-06  8:11     ` Partial \framed Thomas Fehige
@ 2016-06-06 10:32       ` Wolfgang Schuster
  2016-06-06 12:14         ` Thomas Fehige
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2016-06-06 10:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Thomas Fehige <mailto:thomas@fehige.de>
> 6. Juni 2016 um 10:11
> I'm trying to put a piece of text in a partial frame that's meant to 
> look like square brackets aligned with the left and right edges of the 
> textblock.
>
> I tried to use two \framed constructions inside each other, the outer 
> one with width=textwidth and negative toffset and boffset, the inner 
> one with a smaller width, a fat rulethickness and the color of the 
> background, expecting it to erase the outer frame where it's not needed:
>
> \color[zier]{%
>
> \framed[%
>
> align=middle,
>
> width=\textwidth,
>
>                         toffset=-4mm,
>
> boffset=-4mm,
>
> strut=no,
>
> ]{%
>
> \color[paper]{\framed[%
>
> align=middle,
>
> width=222mm, % i.e. \textwidth-4mm
>
>                                 toffset=6mm,
>
> boffset=5mm,
>
> rulethickness=5mm
>
> ]{%
>
> \color[zier]{\tfd \strut Here's the text that is menat to look 
> important; its length/number of lines is undetermined.\strut}
>
> }}%
>
> }%
>
> }%
>
> ... but it doesn't work. Apparently the inner frame is drawn before 
> the outer one. Putting the wider frame inside the narrower results in 
> alignment problems --  due to the overfull hbox, I presume.
Your example is of not much use because it can’t be converted to a PDF 
(missing \starttext and empty lines).
> Is  there a simple solution in ConTeXt that I haven't found yet, or 
> will I have to try some plain TeX box magic myself?
You can use MetaPost to draw the frame/lines for the left and right borders.

\startuseMPgraphic{leftbracket}
     z[0] = (EmWidth,OverlayHeight) ;
     z[1] = (0,OverlayHeight) ;
     z[2] = (0,0) ;
     z[3] = (EmWidth,0) ;
     draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
\stopuseMPgraphic

\startuseMPgraphic{rightbracket}
     z[0] = (-EmWidth,OverlayHeight) ;
     z[1] = (0,OverlayHeight) ;
     z[2] = (0,0) ;
     z[3] = (-EmWidth,0) ;
     draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
\stopuseMPgraphic

\installleftframerenderer {bracket}{\useMPgraphic {leftbracket}}
\installrightframerenderer{bracket}{\useMPgraphic{rightbracket}}

\defineframed
   [bracketframed]
   [frame=off,
    offset=1ex,
    leftframe=bracket,
    rightframe=bracket,
    framecolor=red,
    foregroundstyle=\ssx,
    foregroundcolor=darkgray,
    align=normal,
    width=max]

\starttext
\bracketframed{\input knuth }
\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 4064 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] 15+ messages in thread

* Re: Partial \framed
  2016-06-06 10:32       ` Wolfgang Schuster
@ 2016-06-06 12:14         ` Thomas Fehige
  2016-06-06 14:04           ` basic fontsizes question Thomas Fehige
  2016-06-06 14:05           ` Thomas Fehige
  0 siblings, 2 replies; 15+ messages in thread
From: Thomas Fehige @ 2016-06-06 12:14 UTC (permalink / raw)
  To: ntg-context

Thank you Wolfgang, that is exactly what I was looking for.

I apologize for the incomplete example. I have no idea, however, how all 
the empty lines got in there. They weren't there when I clicked "send", 
only when I saw it in the list.

Thomas

Am 06.06.2016 um 12:32 schrieb Wolfgang Schuster:
> \startuseMPgraphic{leftbracket}
>     z[0] = (EmWidth,OverlayHeight) ;
>     z[1] = (0,OverlayHeight) ;
>     z[2] = (0,0) ;
>     z[3] = (EmWidth,0) ;
>     draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
> \stopuseMPgraphic
>
> \startuseMPgraphic{rightbracket}
>     z[0] = (-EmWidth,OverlayHeight) ;
>     z[1] = (0,OverlayHeight) ;
>     z[2] = (0,0) ;
>     z[3] = (-EmWidth,0) ;
>     draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
> \stopuseMPgraphic
>
> \installleftframerenderer {bracket}{\useMPgraphic {leftbracket}}
> \installrightframerenderer{bracket}{\useMPgraphic{rightbracket}}
>
> \defineframed
>   [bracketframed]
>   [frame=off,
>    offset=1ex,
>    leftframe=bracket,
>    rightframe=bracket,
>    framecolor=red,
>    foregroundstyle=\ssx,
>    foregroundcolor=darkgray,
>    align=normal,
>    width=max]
>
> \starttext
> \bracketframed{\input knuth }
> \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] 15+ messages in thread

* basic fontsizes question
  2016-06-06 12:14         ` Thomas Fehige
@ 2016-06-06 14:04           ` Thomas Fehige
  2016-06-06 14:05           ` Thomas Fehige
  1 sibling, 0 replies; 15+ messages in thread
From: Thomas Fehige @ 2016-06-06 14:04 UTC (permalink / raw)
  To: ntg-context


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

In the fonts book I found the \definebodyfont command, but it does not 
to do what I expected. What I need (for a poster) is a set of absolute 
font sizes. I tried the code below. I put some quirks in, like the huge 
value for "a", to see if it works, but it doesn't. It just uses the 
preset proportions relative to the preceding fontsize command (in the 
example, \tfx is bigger than \tf).

\definebodyfontenvironment[palatino][24pt][

text = 24pt,

small = 22pt,

x=22pt,

scriptscript = 16pt,

xx = 16pt,

big=28pt,

a = 80pt, % 28pt

b = 40pt,

c = 50pt,

d = 50pt,

interlinespace = 3ex,

em = italic

]

\setupbodyfont[palatino,24pt]

\starttext

\tf tf\\

\tfa tfa\\

\tfb tfb\\

\tfx tfx\\

\tfx tfx

\stoptext


[-- Attachment #1.2: Type: text/html, Size: 4981 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] 15+ messages in thread

* basic fontsizes question
  2016-06-06 12:14         ` Thomas Fehige
  2016-06-06 14:04           ` basic fontsizes question Thomas Fehige
@ 2016-06-06 14:05           ` Thomas Fehige
  2016-06-06 14:20             ` Thomas Fehige
  2016-06-06 20:48             ` Wolfgang Schuster
  1 sibling, 2 replies; 15+ messages in thread
From: Thomas Fehige @ 2016-06-06 14:05 UTC (permalink / raw)
  To: ntg-context


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

In the fonts book I found the \definebodyfont command, but it does not 
to do what I expected. What I need (for a poster) is a set of absolute 
font sizes. I tried the code below. I put some quirks in, like the huge 
value for "a", to see if it works, but it doesn't. It just uses the 
preset proportions relative to the preceding fontsize command (in the 
example, \tfx is bigger than \tf).

\definebodyfontenvironment[palatino][24pt][

text = 24pt,

small = 22pt,

x=22pt,

scriptscript = 16pt,

xx = 16pt,

big=28pt,

a = 80pt, % 28pt

b = 40pt,

c = 50pt,

d = 50pt,

interlinespace = 3ex,

em = italic

]

\setupbodyfont[palatino,24pt]

\starttext

\tf tf\\

\tfa tfa\\

\tfb tfb\\

\tfx tfx\\

\tfx tfx

\stoptext


[-- Attachment #1.2: Type: text/html, Size: 4889 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] 15+ messages in thread

* Re: basic fontsizes question
  2016-06-06 14:05           ` Thomas Fehige
@ 2016-06-06 14:20             ` Thomas Fehige
  2016-06-06 20:48             ` Wolfgang Schuster
  1 sibling, 0 replies; 15+ messages in thread
From: Thomas Fehige @ 2016-06-06 14:20 UTC (permalink / raw)
  To: ntg-context


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

edit: Sorry, I meant the command \definebodyfontenvironment, of course, 
like in the code sample.

Am 06.06.2016 um 16:05 schrieb Thomas Fehige:
>
> In the fonts book I found the \definebodyfont command, but it does not 
> to do what I expected. What I need (for a poster) is a set of absolute 
> font sizes. I tried the code below. I put some quirks in, like the 
> huge value for "a", to see if it works, but it doesn't. It just uses 
> the preset proportions relative to the preceding fontsize command (in 
> the example, \tfx is bigger than \tf).
>
> \definebodyfontenvironment[palatino][24pt][
>
> text = 24pt,
>
> small = 22pt,
>
> x=22pt,
>
> scriptscript = 16pt,
>
> xx = 16pt,
>
> big=28pt,
>
> a = 80pt, % 28pt
>
> b = 40pt,
>
> c = 50pt,
>
> d = 50pt,
>
> interlinespace = 3ex,
>
> em = italic
>
> ]
>
> \setupbodyfont[palatino,24pt]
>
> \starttext
>
> \tf tf\\
>
> \tfa tfa\\
>
> \tfb tfb\\
>
> \tfx tfx\\
>
> \tfx tfx
>
> \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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 6429 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] 15+ messages in thread

* Re: basic fontsizes question
  2016-06-06 14:05           ` Thomas Fehige
  2016-06-06 14:20             ` Thomas Fehige
@ 2016-06-06 20:48             ` Wolfgang Schuster
  2016-06-08  8:35               ` Thomas Fehige
  1 sibling, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2016-06-06 20:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Thomas,

please the following article when you have your next question: 
http://www.shlomifish.org/philosophy/computers/netiquette/email/start-new-thread.html
> Thomas Fehige <mailto:thomas@fehige.de>
> 6. Juni 2016 um 16:05
>
> In the fonts book I found the \definebodyfont command, but it does not 
> to do what I expected. What I need (for a poster) is a set of absolute 
> font sizes. I tried the code below. I put some quirks in, like the 
> huge value for "a", to see if it works, but it doesn't. It just uses 
> the preset proportions relative to the preceding fontsize command (in 
> the example, \tfx is bigger than \tf).
>
> \definebodyfontenvironment[palatino][24pt][
>
> text = 24pt,
>
> small = 22pt,
>
> x=22pt,
>
> scriptscript = 16pt,
>
> xx = 16pt,
>
> big=28pt,
>
> a = 80pt, % 28pt
>
> b = 40pt,
>
> c = 50pt,
>
> d = 50pt,
>
> interlinespace = 3ex,
>
> em = italic
>
> ]
>
> \setupbodyfont[palatino,24pt]
>
> \starttext
>
> \tf tf\\
>
> \tfa tfa\\
>
> \tfb tfb\\
>
> \tfx tfx\\
>
> \tfx tfx
>
> \stoptext
>
>
When you have only a small amount of text the use of 
\definebodyfontenvironment is overkill because you can use the 
\definedfont command to set a certain font size.

\starttext

\start \definedfont[Serif at 20pt]
\input ward
\stop

\startfont[SansBoldItalic at 18pt]
\input ward
\stopfont

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 6534 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] 15+ messages in thread

* Re: basic fontsizes question
  2016-06-06 20:48             ` Wolfgang Schuster
@ 2016-06-08  8:35               ` Thomas Fehige
  2016-06-08  9:11                 ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Fehige @ 2016-06-08  8:35 UTC (permalink / raw)
  To: ntg-context

Am 06.06.2016 um 22:48 schrieb Wolfgang Schuster:
> Hi Thomas,

[Thanks for the hint re starting a new thread, I didn't know that, sorry.]

>> Thomas Fehige <mailto:thomas@fehige.de>
>> 6. Juni 2016 um 16:05
>>
>> In the fonts book I found the \definebodyfont command, but it does not
>> to do what I expected. What I need (for a poster) is a set of absolute
>> font sizes. I tried the code below. I put some quirks in, like the
>> huge value for "a", to see if it works, but it doesn't. It just uses
>> the preset proportions relative to the preceding fontsize command (in
>> the example, \tfx is bigger than \tf).
>>
>> \definebodyfontenvironment[palatino][24pt][
>>    text = 24pt,
>>    small = 22pt,
>>    x = 22pt,
>>    scriptscript = 16pt,
>>    xx = 16pt,
>>    big=28pt,
>>    a = 80pt, % 28pt
>>    b = 40pt,
>>    c = 50pt,
>>    d = 50pt,
>>    interlinespace = 3ex,
>>    em = italic
>> ]
>>
>> \setupbodyfont[palatino,24pt]
>>
>> \starttext
>>    \tf tf\\
>>    \tfa tfa\\
>>    \tfb tfb\\
>>    \tfx tfx\\
>>    \tfx tfx
>> \stoptext
>>
>>
> When you have only a small amount of text the use of
> \definebodyfontenvironment is overkill because you can use the
> \definedfont command to set a certain font size.
>
> \starttext
>
> \start \definedfont[Serif at 20pt]
> \input ward
> \stop
>
> \startfont[SansBoldItalic at 18pt]
> \input ward
> \stopfont
>
> \stoptext
>
> Wolfgang

Nevertheless, I prefer to keep all the font and fontsize definitions and 
tweaks together in the preamble. This poster is not the only work I'm 
planning to do in ConTeXt, and I need to learn to swim while already in 
the water ;) .

Meanwhile I found the command \definebodyfontswitch and defined switches 
like \normalsize, \scriptsize, \large, \Large etc.

But this doesn't explain why \definebodyfontenvironment did not do 
anything in my MNWE. The fonts book is not very clear on its intended use.

BTW, I have no idea how all the strange line breaks crept into my code 
sample again. It seems tabs in a html mail are converted into line 
breaks somewhere along the line. I'll stick to plain text in the future.

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

* Re: basic fontsizes question
  2016-06-08  8:35               ` Thomas Fehige
@ 2016-06-08  9:11                 ` Wolfgang Schuster
  2016-06-08 12:40                   ` Thomas Fehige
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2016-06-08  9:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Thomas Fehige <mailto:thomas@fehige.de>
> 8. Juni 2016 um 10:35
> Nevertheless, I prefer to keep all the font and fontsize definitions 
> and tweaks together in the preamble. This poster is not the only work 
> I'm planning to do in ConTeXt, and I need to learn to swim while 
> already in the water ;) .
For short texts where you want a certain style and size (e.g. a title 
page or a poster with few words) \definedfont is the recommended method, 
for larger amounts of the text (e.g. the abstract of a book) you can use 
\switchtobodyfont to change the size.
> Meanwhile I found the command \definebodyfontswitch and defined 
> switches like \normalsize, \scriptsize, \large, \Large etc.
The \definebodyfontswitch creates only a command which uses 
\switchtobodyfont with a fixed number of arguments.
> But this doesn't explain why \definebodyfontenvironment did not do 
> anything in my MNWE. The fonts book is not very clear on its intended 
> use.
You put spaces before and after = which aren’t allowed there.

\definebodyfontenvironment
   [24pt]
   [         small=22pt,
               big=28pt,
                 x=22pt,
                xx=16pt,
                 a=30pt,
                 b=40pt,
                 c=50pt,
                 d=60pt,
    interlinespace=30pt,
                em=italic]

\setupbodyfont[palatino,24pt]

\starttext

\startlines
  \tf   tf
{\tfa  tfa}
{\tfb  tfb}
{\tfc  tfc}
{\tfd  tfd}
{\tfx  tfx}
{\tfxx tfxx}
\stoplines

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3234 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] 15+ messages in thread

* Re: basic fontsizes question
  2016-06-08  9:11                 ` Wolfgang Schuster
@ 2016-06-08 12:40                   ` Thomas Fehige
  0 siblings, 0 replies; 15+ messages in thread
From: Thomas Fehige @ 2016-06-08 12:40 UTC (permalink / raw)
  To: ntg-context

Thank you Wolfgang, that solves the mystery. (As the poster is for a 
philosophical association, "few words" is not applicable here.)

Am 08.06.2016 um 11:11 schrieb Wolfgang Schuster:
>> Thomas Fehige <mailto:thomas@fehige.de>
>> 8. Juni 2016 um 10:35
>> Nevertheless, I prefer to keep all the font and fontsize definitions
>> and tweaks together in the preamble. This poster is not the only work
>> I'm planning to do in ConTeXt, and I need to learn to swim while
>> already in the water ;) .
> For short texts where you want a certain style and size (e.g. a title
> page or a poster with few words) \definedfont is the recommended method,
> for larger amounts of the text (e.g. the abstract of a book) you can use
> \switchtobodyfont to change the size.
>> Meanwhile I found the command \definebodyfontswitch and defined
>> switches like \normalsize, \scriptsize, \large, \Large etc.
> The \definebodyfontswitch creates only a command which uses
> \switchtobodyfont with a fixed number of arguments.
>> But this doesn't explain why \definebodyfontenvironment did not do
>> anything in my MNWE. The fonts book is not very clear on its intended
>> use.
> You put spaces before and after = which aren’t allowed there.
>
> \definebodyfontenvironment
>    [24pt]
>    [         small=22pt,
>                big=28pt,
>                  x=22pt,
>                 xx=16pt,
>                  a=30pt,
>                  b=40pt,
>                  c=50pt,
>                  d=60pt,
>     interlinespace=30pt,
>                 em=italic]
>
> \setupbodyfont[palatino,24pt]
>
> \starttext
>
> \startlines
>   \tf   tf
> {\tfa  tfa}
> {\tfb  tfb}
> {\tfc  tfc}
> {\tfd  tfd}
> {\tfx  tfx}
> {\tfxx tfxx}
> \stoplines
>
> \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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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] 15+ messages in thread

end of thread, other threads:[~2016-06-08 12:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-29 10:35 issue in the wiki Pablo Rodriguez
2016-05-29 15:31 ` Mohammad Hossein Bateni
2016-05-29 16:36   ` Letterspacing Thomas Fehige
2016-05-29 16:49     ` Letterspacing Hans Hagen
2016-05-31  8:31   ` issue in the wiki Pablo Rodriguez
2016-06-06  8:11     ` Partial \framed Thomas Fehige
2016-06-06 10:32       ` Wolfgang Schuster
2016-06-06 12:14         ` Thomas Fehige
2016-06-06 14:04           ` basic fontsizes question Thomas Fehige
2016-06-06 14:05           ` Thomas Fehige
2016-06-06 14:20             ` Thomas Fehige
2016-06-06 20:48             ` Wolfgang Schuster
2016-06-08  8:35               ` Thomas Fehige
2016-06-08  9:11                 ` Wolfgang Schuster
2016-06-08 12:40                   ` Thomas Fehige

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