Re: [NTG-context] Bug (?) with \placefigure[right]

2022-08-16 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 16.08.2022 um 18:11:

Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly 
with three or so nearly blank (except for the subject) pages produced.

\setuppapersize [A5] [A5]
\starttext
\dorecurse{12}{
\subject{Some heading}
\placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]}
\input lorem
}
\stoptext

I actually want \placefigure[right,none] in my real doc but that also goes awry.
LMTX current version: 2022.08.05 11:44

My actual requirement is to have a set of short biographies, including a small 
'passport' photo, for each contributor to a book. So any suggestions on how to 
wrap text around the photo that avoids this issue would be welcome.


\setuppapersize [A5] [A5]

\starttext

\dorecurse{12}
  {\subject{Some heading}
   \starthanging[right]{\externalfigure[cow.pdf][width=3cm]}
   \samplefile{lorem}
   \stophanging}

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Bug in \placefigure[right]?

2014-01-13 Thread Wolfgang Schuster

Am 13.01.2014 um 12:22 schrieb Mari Voipio mari.voi...@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
___


Re: [NTG-context] Bug in \placefigure[right]?

2014-01-13 Thread Mari Voipio
On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:

 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 …} …

Ah, I just haven't known what to look for, then. The magic formula
works and it is *much* better than hardcoding the line breaks. :-)


Thank you for your quick reply, Wolfgang!


Mari
___
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
___


Re: [NTG-context] Bug in \placefigure[right]?

2014-01-13 Thread Alan Braslau
On Mon, 13 Jan 2014 16:23:24 +0200
Mari Voipio mari.voi...@iki.fi wrote:

 On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster
 schuster.wolfg...@gmail.com wrote:
 
  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 …} …
 
 Ah, I just haven't known what to look for, then. The magic formula
 works and it is *much* better than hardcoding the line breaks. :-)

Wikified:

http://wiki.contextgarden.net/Font_Switching

Alan
___
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
___