RE: [NTG-context] \underbar not allowing line-breaking

2003-08-14 Thread Duncan Hothersall
Hans wrote:

 % output=pdftex

 \starttext

 \definetextbackground
[underbared]
[alternative=1,location=text,
 background=,frame=]

 \def\underbared
{\groupedcommand
   {\starttextbackground[underbared]}
   {\stoptextbackground}}


 \underbared{\input tufte\relax}

 \stoptext

 typical an example for a MyWay document -)

Thanks! I've been looking through core-pos to try to understand how I can
change the look of this. I can set the colour of the line with framecolor,
but I can't seem to adjust the offset. The default appears to be overlay,
but this looks ugly as an underline, as it obscures the baseline of the
text. I have tried offset=, frameoffset= and backgroundoffset=, but no
change occurs.

Then I also tried getting rid of the alternative=1 (what does this do?) and
putting frame=off,bottomframe=on, but this produced no output at all.

Is there a way to do it?

Also, when a line break occurs the underlining stretches out to the right
further than the end of the line - is there any way to stop this happening?

Thanks

Duncan
[EMAIL PROTECTED]

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] \underbar not allowing line-breaking

2003-07-31 Thread Duncan Hothersall
In answer to my own question, and possibly as a bug report: line breaking
within \underbar{...} is broken when used in conjunction with

\setupalign[{right,nothyphenated}]

Duncan

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Behalf Of Duncan Hothersall
 Sent: 29 July 2003 19:10
 To: ConTeXt Mailing List
 Subject: [NTG-context] \underbar not allowing line-breaking


 A quick question: \underbar is demonstrated in the manual as
 allowing lines
 to break normally (page 204). In my texts line breaks won't happen in an
 underlined phrase, meaning that they stick out into the right hand margin.
 Is this a known problem, or does it work for other people?

 Thanks

 Duncan
 [EMAIL PROTECTED]


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context