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...) Mari PS. Hmm... Same thing if I use {\sc blabla} so while I reallly should switch to small caps, that is not the solution. PS2. I just tried with \placefigure[left] and I get overset text with it, too.
Am 13.01.2014 um 12:22 schrieb Mari Voipio
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
On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster
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
On Mon, 13 Jan 2014 16:23:24 +0200
Mari Voipio
On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster
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
participants (3)
-
Alan Braslau
-
Mari Voipio
-
Wolfgang Schuster