ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bug in \placefigure[right]?
Date: Mon, 13 Jan 2014 12:27:38 +0100	[thread overview]
Message-ID: <2D8BBDC9-0E84-41A3-B52C-634472EE9138@gmail.com> (raw)
In-Reply-To: <CAGbDsP1SmX0TdyxxxLi1zaWOH0-55tT++dACGJ0dfETNz7OKMA@mail.gmail.com>


Am 13.01.2014 um 12:22 schrieb Mari Voipio <mari.voipio@iki.fi>:

> Hello!
> 
> For a while I've been baffled by a weird bug where sometimes I get
> overset text when using \placefigure[right]. The problem appeared
> sometime this autumn in places where everything has worked before.
> 
> This far I've (reluctantly) worked my way around the bug by using hard
> line breaks where needed, but the current project has so many of those
> spots that a more flexible solution would be nice.
> 
> On the other hand, just because I have so many of them and some
> appeared today, I realized that the problem can be related to {\tfx }
> in the beginning of the line. Here's a minimal example:
> 
> 
> ============
> 
> \starttext
> 
> \placefigure
>    [right][cow]
>    {A cow}
>    {\externalfigure[cow]}
> 
> 
> {\tfx SET TIME/DATE} allows you to (re)set the instrument date and
> time. Time is set by inputting a certain amount of digits. Possible
> inputs are 4, 6, 8 and 12 digits. To set hours and minutes, input 4
> digits. To set day of month and time input 6 digits. To set month, day
> and time input 8 digits. To set year, month, day and time input 12
> digits. In all cases seconds can be set by separating them with a dot.
> The format can be seen below.
> 
> \input tufte
> 
> 
> 
> \stoptext
> 
> ===============
> 
> 
> 
> I know it is not beautiful, but I'm doing something very specific
> where this is needed. In a real pinch I can probably rewrite every
> problem sentence to put the \tfx in the middle instead of the
> beginning, but this still doesn't make the original problem go away.
> (Although I may be the only one bothered by it…)

It’s a known problem when you have a font switch at the begin of a paragraph
and you can avoid it only when you force horizontal mode before you change
the font with

  \dontleavehmode{\tfx …} …

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


  reply	other threads:[~2014-01-13 11:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13 11:22 Mari Voipio
2014-01-13 11:27 ` Wolfgang Schuster [this message]
2014-01-13 14:23   ` Mari Voipio
2014-01-13 14:47     ` Alan Braslau

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=2D8BBDC9-0E84-41A3-B52C-634472EE9138@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.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).