ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [preventing blackrule tp break line]
@ 2020-03-06 11:07 Floris van Manen
  2020-03-06 11:43 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Floris van Manen @ 2020-03-06 11:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

Using lmtx, while trying to get multiple pieces of black rule on one
line, for some reason the line breaks after the first item, to continue
on the second line with the remainder.


\starttext
\blackrule[width=15mm,height=1mm,depth=0mm,color=yellow]\quad%
\blackrule[width=15mm,height=1mm,depth=0mm,color=red]\quad%
\blackrule[width=15mm,height=1mm,depth=0mm,color=green]\quad%
\blackrule[width=15mm,height=1mm,depth=0mm,color=blue]\quad

\blackrule[width=15mm,height=1mm,depth=0mm,color=yellow]\quad%
\blackrule[width=15mm,height=1mm,depth=0mm,color=red]\quad%
\blackrule[width=15mm,height=1mm,depth=0mm,color=green]\quad%
\blackrule[width=15mm,height=1mm,depth=0mm,color=blue]\quad
\stoptext


What is the proper way to do it?
.F

[-- Attachment #2: Screenshot from 2020-03-06 12-05-17.png --]
[-- Type: image/png, Size: 1226 bytes --]

[-- Attachment #3: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 2456 bytes --]

[-- Attachment #4: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: [preventing blackrule tp break line]
  2020-03-06 11:07 [preventing blackrule tp break line] Floris van Manen
@ 2020-03-06 11:43 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2020-03-06 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Floris van Manen

On 3/6/2020 12:07 PM, Floris van Manen wrote:
> Using lmtx, while trying to get multiple pieces of black rule on one
> line, for some reason the line breaks after the first item, to continue
> on the second line with the remainder.
> 
> 
> \starttext

\dontleavehmode
> \blackrule[width=15mm,height=1mm,depth=0mm,color=yellow]\quad%
> \blackrule[width=15mm,height=1mm,depth=0mm,color=red]\quad%
> \blackrule[width=15mm,height=1mm,depth=0mm,color=green]\quad%
> \blackrule[width=15mm,height=1mm,depth=0mm,color=blue]\quad

\dontleavehmode
> \blackrule[width=15mm,height=1mm,depth=0mm,color=yellow]\quad%
> \blackrule[width=15mm,height=1mm,depth=0mm,color=red]\quad%
> \blackrule[width=15mm,height=1mm,depth=0mm,color=green]\quad%
> \blackrule[width=15mm,height=1mm,depth=0mm,color=blue]\quad
> \stoptext
> 
> 
> What is the proper way to do it?
force horizontal mode with

\dontleavehmode

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-03-06 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 11:07 [preventing blackrule tp break line] Floris van Manen
2020-03-06 11:43 ` 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).