ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupframedtexts
@ 2006-02-01 11:25 Hans van der Meer
  2006-02-01 12:11 ` setupframedtexts Taco Hoekwater
  2006-02-01 12:44 ` setupframedtexts Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Hans van der Meer @ 2006-02-01 11:25 UTC (permalink / raw)



I guess I am getting a left margin when I enclose some text in a  
\framedtext and want to get rid of it.
The manual gives as settable parameter "margin = standard,yes,no.
However there is no visible effect when using "margin=no" in the setup.
Inspecting the code for setupframedtexts I could not foun something  
like \c!margin.

Is this an obsolete parameter? Or will it be implemented.

yours sincerely,
dr. H. van der Meer

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

* Re: setupframedtexts
  2006-02-01 11:25 setupframedtexts Hans van der Meer
@ 2006-02-01 12:11 ` Taco Hoekwater
  2006-02-01 16:57   ` setupframedtexts Hans van der Meer
  2006-02-01 12:44 ` setupframedtexts Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2006-02-01 12:11 UTC (permalink / raw)


Hans van der Meer wrote:
> I guess I am getting a left margin when I enclose some text in a  
> \framedtext and want to get rid of it.

Don't you need the offset parameter?

Cheers, Taco

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

* Re: setupframedtexts
  2006-02-01 11:25 setupframedtexts Hans van der Meer
  2006-02-01 12:11 ` setupframedtexts Taco Hoekwater
@ 2006-02-01 12:44 ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-02-01 12:44 UTC (permalink / raw)


Hans van der Meer wrote:
> I guess I am getting a left margin when I enclose some text in a  
> \framedtext and want to get rid of it.
> The manual gives as settable parameter "margin = standard,yes,no.
> However there is no visible effect when using "margin=no" in the setup.
> Inspecting the code for setupframedtexts I could not foun something  
> like \c!margin.
>
> Is this an obsolete parameter? Or will it be implemented.
>   
does setting "leftoffset=0pt" work?

-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: setupframedtexts
  2006-02-01 12:11 ` setupframedtexts Taco Hoekwater
@ 2006-02-01 16:57   ` Hans van der Meer
  2006-02-01 21:15     ` setupframedtexts Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Hans van der Meer @ 2006-02-01 16:57 UTC (permalink / raw)



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

In reply to Taco's and Hans' suggestions:

Setting offset=0pt did help somewhat, but not enough.

The small example below gives me text protruding outside the frame to  
the right ("010" sticking out) and seems to give about as much  
whitespace on the left inside the frame.
Without offset=0pt somewhat more sticks out:  "00010".

Changing the setup to "width=fit,offset=0pt" seems needed for the  
right edge, but on the left there is still some whitespace.
Then I realized that typing might have a margin, adding \setuptyping 
[margin=no] finally did the trick.

Thanks for your help.

\starttext
\placefigure{Sterk gestructureerde tekst}{%
\startframedtext[frame=on]
\starttyping
* MYSTERY PROGRAM                                              00000010
* D.E.KNUTH                                                    00000020
* THE ART OF COMPUTER PROGRAMMING, VOL I                       00000030
\stoptyping
\stopframedtext}

yours sincerely,
dr. H. van der Meer



On Feb 1, 2006, at 13:11, Taco Hoekwater wrote:

> Hans van der Meer wrote:
>> I guess I am getting a left margin when I enclose some text in a
>> \framedtext and want to get rid of it.
>
> Don't you need the offset parameter?
>
> Cheers, Taco
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context


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

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

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: setupframedtexts
  2006-02-01 16:57   ` setupframedtexts Hans van der Meer
@ 2006-02-01 21:15     ` Hans Hagen
  2006-02-01 22:25       ` setupframedtexts Taco Hoekwater
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2006-02-01 21:15 UTC (permalink / raw)


Hans van der Meer wrote:
> In reply to Taco's and Hans' suggestions:
>
> Setting offset=0pt did help somewhat, but not enough.
>
> The small example below gives me text protruding outside the frame to 
> the right ("010" sticking out) and seems to give about as much 
> whitespace on the left inside the frame.
> Without offset=0pt somewhat more sticks out:� "00010".
>
> Changing the setup to "width=fit,offset=0pt" seems needed for the 
> right edge, but on the left there is still some whitespace.
> Then I realized that typing might have a margin, adding 
> \setuptyping[margin=no] finally did the trick.
>
> Thanks for your help.
>
> \starttext
> \placefigure{Sterk gestructureerde tekst}{%
> \startframedtext[frame=on]
> \starttyping
> * MYSTERY PROGRAM� � � � � � � � � � � � � � � � � � � � � � � 00000010
> * D.E.KNUTH� � � � � � � � � � � � � � � � � � � � � � � � � � 00000020
> * THE ART OF COMPUTER PROGRAMMING, VOL I � � � � � � � � � � � 00000030
> \stoptyping
> \stopframedtext}
i'm not entirely sure what you want to achieve

\starttext

\placefigure
  {Sterk gestructureerde tekst}
  {\startframedtext[frame=on,width=fit,offset=none]
\starttyping
* MYSTERY PROGRAM? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 00000010
* D.E.KNUTH? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 00000020
* THE ART OF COMPUTER PROGRAMMING, VOL I ? ? ? ? ? ? ? ? ? ? ? 00000030
\stoptyping
\stopframedtext}

\placefigure
  {Sterk gestructureerde tekst}
  {\startframedtext[frame=on,width=fit,offset=0pt]
\startnarrower[right]
\starttyping
* MYSTERY PROGRAM? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 00000010
* D.E.KNUTH? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 00000020
* THE ART OF COMPUTER PROGRAMMING, VOL I ? ? ? ? ? ? ? ? ? ? ? 00000030
\stoptyping
\stopnarrower
\stopframedtext}

\stoptext

typing means monospaces which also means that space is not stretchable, so you can get over/underfull lines 

maybe the following is better 

\tt 
\startlines
* MYSTERY PROGRAM? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 00000010
* D.E.KNUTH? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 00000020
* THE ART OF COMPUTER PROGRAMMING, VOL I ? ? ? ? ? ? ? ? ? ? ? 00000030
\stoplines 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: setupframedtexts
  2006-02-01 21:15     ` setupframedtexts Hans Hagen
@ 2006-02-01 22:25       ` Taco Hoekwater
  0 siblings, 0 replies; 6+ messages in thread
From: Taco Hoekwater @ 2006-02-01 22:25 UTC (permalink / raw)


Hans Hagen wrote:
>   {\startframedtext[frame=on,width=fit,offset=none]
                                ^^^^^^^^^
does that solve it?

Taco

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

end of thread, other threads:[~2006-02-01 22:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-01 11:25 setupframedtexts Hans van der Meer
2006-02-01 12:11 ` setupframedtexts Taco Hoekwater
2006-02-01 16:57   ` setupframedtexts Hans van der Meer
2006-02-01 21:15     ` setupframedtexts Hans Hagen
2006-02-01 22:25       ` setupframedtexts Taco Hoekwater
2006-02-01 12:44 ` setupframedtexts 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).