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
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
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Hans van der Meer
-
Taco Hoekwater