ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: tralalas@freenet.de,
	"mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: inline-graphics and unwanted line-break
Date: Thu, 29 Nov 2007 16:47:08 +0100	[thread overview]
Message-ID: <115224fb0711290747y142ad7dfqdb8a91e761ca042d@mail.gmail.com> (raw)
In-Reply-To: <200711291351.34908.tralalas@freenet.de>

2007/11/29, Peter Schorsch <tralalas@freenet.de>:
> Hi,
>
> I have a small metapost graphic I like to use inline. But the arragement
> behaves a little bit "unpractically". As soon there is no character in front
> of the graphic context will break the line after the graphic - but as soon
> there is a character in front of the graphic, context does not adding a
> linebreak after the graphic.
>
> Does anyone know how to prevent the line-break after the graphic if the
> graphic is the first inline?
>
> Thanks, P.
>
> example-file:
>
> \startuseMPgraphic{zo}
>         color schwarz ; schwarz := (.0,.0,.0) ;
>         draw
> (0pt,0pt)--(0pt,8pt)--(5pt,12pt)--(10pt,8pt)--(10pt,0pt)--(0pt,0pt)--cycle
> withcolor schwarz ;
> \stopuseMPgraphic
>
> \starttext
>
> \hbox{\useMPgraphic{zo}} test text - why a line-break? How to prevent this?

write \dontleavehmode\hbox{...}, this is normal TeX bahaviour and has nothing
special to do with ConTeXt.

> a \hbox{\useMPgraphic{zo}} test text - this is fine: no line-break!

the "a" starts horizontal mode but a \hbox did not and this can be
sometimes usefull

> \stoptext

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-11-29 15:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-29 12:51 Peter Schorsch
2007-11-29 15:47 ` Wolfgang Schuster [this message]
2007-11-29 16:45   ` luigi scarso
2007-11-29 16:51     ` Wolfgang Schuster
2007-11-29 17:14       ` luigi scarso

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=115224fb0711290747y142ad7dfqdb8a91e761ca042d@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    --cc=tralalas@freenet.de \
    /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).