From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Floris van Manen <vm@klankschap.nl>
Subject: Re: [preventing blackrule tp break line]
Date: Fri, 6 Mar 2020 12:43:03 +0100 [thread overview]
Message-ID: <ff16d22a-c116-92bc-133e-9b54b31ea5bf@xs4all.nl> (raw)
In-Reply-To: <9fd49588-a68f-7935-6759-32339aac0458@klankschap.nl>
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
___________________________________________________________________________________
prev parent reply other threads:[~2020-03-06 11:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 11:07 Floris van Manen
2020-03-06 11:43 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff16d22a-c116-92bc-133e-9b54b31ea5bf@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=vm@klankschap.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).