* small typing
@ 2002-05-26 14:33 Denis B. Roegel
2002-05-26 17:56 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Denis B. Roegel @ 2002-05-26 14:33 UTC (permalink / raw)
Cc: Denis B. Roegel
I want to include a piece of code, but smaller than the main text.
One way to get something smaller is to write
...
main text
{\tfxx
\starttyping
...
\stoptyping
}
but this gets the amount of space between lines wrong. Is there
an option to \starttyping to get the things right?
Thanks,
Denis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small typing
2002-05-26 14:33 small typing Denis B. Roegel
@ 2002-05-26 17:56 ` Hans Hagen
2002-05-27 5:27 ` Denis B. Roegel
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2002-05-26 17:56 UTC (permalink / raw)
Cc: ntg-context, Denis B. Roegel
At 04:33 PM 5/26/2002 +0200, Denis B. Roegel wrote:
>I want to include a piece of code, but smaller than the main text.
>One way to get something smaller is to write
>
>...
>main text
>
>{\tfxx
>\starttyping
>...
>\stoptyping
>
>}
>
>but this gets the amount of space between lines wrong. Is there
>an option to \starttyping to get the things right?
\definetyping[smalltyping][style=\ttx]
\startsmalltyping
test test test
\stopsmalltyping
\starttyping
test test test
\stoptyping
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small typing
2002-05-26 17:56 ` Hans Hagen
@ 2002-05-27 5:27 ` Denis B. Roegel
2002-05-27 10:02 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Denis B. Roegel @ 2002-05-27 5:27 UTC (permalink / raw)
Cc: Denis B. Roegel, ntg-context, Denis B. Roegel
On Sun, May 26, 2002 at 07:56:31PM +0200, Hans Hagen wrote:
> At 04:33 PM 5/26/2002 +0200, Denis B. Roegel wrote:
> >I want to include a piece of code, but smaller than the main text.
> >One way to get something smaller is to write
> >
> >...
> >main text
> >
> >{\tfxx
> >\starttyping
> >...
> >\stoptyping
> >
> >}
> >
> >but this gets the amount of space between lines wrong. Is there
> >an option to \starttyping to get the things right?
>
> \definetyping[smalltyping][style=\ttx]
>
> \startsmalltyping
> test test test
> \stopsmalltyping
but this doesn't decrease the baselineskip, which is my problem.
Denis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small typing
2002-05-27 5:27 ` Denis B. Roegel
@ 2002-05-27 10:02 ` Hans Hagen
2002-05-27 11:25 ` Denis B. Roegel
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2002-05-27 10:02 UTC (permalink / raw)
Cc: ntg-context, Denis B. Roegel
At 07:27 AM 5/27/2002 +0200, Denis B. Roegel wrote:
>On Sun, May 26, 2002 at 07:56:31PM +0200, Hans Hagen wrote:
> > At 04:33 PM 5/26/2002 +0200, Denis B. Roegel wrote:
> > >I want to include a piece of code, but smaller than the main text.
> > >One way to get something smaller is to write
> > >
> > >...
> > >main text
> > >
> > >{\tfxx
> > >\starttyping
> > >...
> > >\stoptyping
> > >
> > >}
> > >
> > >but this gets the amount of space between lines wrong. Is there
> > >an option to \starttyping to get the things right?
> >
> > \definetyping[smalltyping][style=\ttx]
> >
> > \startsmalltyping
> > test test test
> > \stopsmalltyping
>
>but this doesn't decrease the baselineskip, which is my problem.
before={\blank\start\setupbodyfont[small]},after={\stop\blank}
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small typing
2002-05-27 10:02 ` Hans Hagen
@ 2002-05-27 11:25 ` Denis B. Roegel
2002-05-27 20:02 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Denis B. Roegel @ 2002-05-27 11:25 UTC (permalink / raw)
Cc: Denis B. Roegel, ntg-context, Denis B. Roegel
On Mon, May 27, 2002 at 12:02:55PM +0200, Hans Hagen wrote:
> before={\blank\start\setupbodyfont[small]},after={\stop\blank}
>
It's still not what I want. For instance, the file below shows clearly
that it doesn't work (or at least, the way I understood your suggestion
doesn't work). The smalltyping lines are too much vertically spaced.
Denis
%output=pdftex
\definetyping[smalltyping][style=\ttxx,
before={\blank\start\setupbodyfont[small]},
after={\stop\blank}]
\starttext
\starttyping
test
test test test test test test test test test test
test test test test test test test test test
test test test test test testtest test
\stoptyping
\startsmalltyping
test test test test test test test test test test test test
test test test test test test
test test test test test test test test test test
test test test test test test test test test
test test test test test testtest test
test test test test test testtest
test test test test test test
\stopsmalltyping
\stoptext
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small typing
2002-05-27 11:25 ` Denis B. Roegel
@ 2002-05-27 20:02 ` Hans Hagen
2002-05-28 2:50 ` Denis B. Roegel
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2002-05-27 20:02 UTC (permalink / raw)
Cc: ntg-context, Denis B. Roegel
At 01:25 PM 5/27/2002 +0200, Denis B. Roegel wrote:
>%output=pdftex
>\definetyping[smalltyping][style=\ttxx,
> before={\blank\start\setupbodyfont[small]},
> after={\stop\blank}]
oeps, should be \switchtobodyfont
and ... no style in this case
>\startsmalltyping
>test test test test test test test test test test test test
>test test test test test test
>test test test test test test test test test test
>test test test test test test test test test
>test test test test test testtest test
>test test test test test testtest
>test test test test test test
>\stopsmalltyping
however, there's a better way:
\definetyping
[smalltyping]
[bodyfont=small]
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small typing
2002-05-27 20:02 ` Hans Hagen
@ 2002-05-28 2:50 ` Denis B. Roegel
2002-05-28 20:15 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Denis B. Roegel @ 2002-05-28 2:50 UTC (permalink / raw)
Cc: Denis B. Roegel, ntg-context, Denis B. Roegel
On Mon, May 27, 2002 at 10:02:33PM +0200, Hans Hagen wrote:
> At 01:25 PM 5/27/2002 +0200, Denis B. Roegel wrote:
>
> >%output=pdftex
> >\definetyping[smalltyping][style=\ttxx,
> > before={\blank\start\setupbodyfont[small]},
> > after={\stop\blank}]
>
> oeps, should be \switchtobodyfont
>
> and ... no style in this case
>
> >\startsmalltyping
> >test test test test test test test test test test test test
> >test test test test test test
> >test test test test test test test test test test
> >test test test test test test test test test
> >test test test test test testtest test
> >test test test test test testtest
> >test test test test test test
> >\stopsmalltyping
>
> however, there's a better way:
>
> \definetyping
> [smalltyping]
> [bodyfont=small]
Actually, I got what I wanted with
\definetyping[smalltyping][style=\ttxx\setupinterlinespace]
What would be the difference with your suggestion?
I am slowly learning...
Denis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small typing
2002-05-28 2:50 ` Denis B. Roegel
@ 2002-05-28 20:15 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2002-05-28 20:15 UTC (permalink / raw)
Cc: ntg-context, Denis B. Roegel
At 04:50 AM 5/28/2002 +0200, Denis B. Roegel wrote:
>On Mon, May 27, 2002 at 10:02:33PM +0200, Hans Hagen wrote:
> > At 01:25 PM 5/27/2002 +0200, Denis B. Roegel wrote:
> >
> > >%output=pdftex
> > >\definetyping[smalltyping][style=\ttxx,
> > > before={\blank\start\setupbodyfont[small]},
> > > after={\stop\blank}]
> >
> > oeps, should be \switchtobodyfont
> >
> > and ... no style in this case
> >
> > >\startsmalltyping
> > >test test test test test test test test test test test test
> > >test test test test test test
> > >test test test test test test test test test test
> > >test test test test test test test test test
> > >test test test test test testtest test
> > >test test test test test testtest
> > >test test test test test test
> > >\stopsmalltyping
> >
> > however, there's a better way:
> >
> > \definetyping
> > [smalltyping]
> > [bodyfont=small]
>
>Actually, I got what I wanted with
>
>\definetyping[smalltyping][style=\ttxx\setupinterlinespace]
>
>What would be the difference with your suggestion?
bodyfont=... results in better control over spacing, esp before/after
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-05-28 20:15 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-26 14:33 small typing Denis B. Roegel
2002-05-26 17:56 ` Hans Hagen
2002-05-27 5:27 ` Denis B. Roegel
2002-05-27 10:02 ` Hans Hagen
2002-05-27 11:25 ` Denis B. Roegel
2002-05-27 20:02 ` Hans Hagen
2002-05-28 2:50 ` Denis B. Roegel
2002-05-28 20:15 ` Hans Hagen
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).