* \hbox and figures
@ 2006-01-28 10:20 andrea valle
2006-01-28 10:44 ` Taco Hoekwater
0 siblings, 1 reply; 5+ messages in thread
From: andrea valle @ 2006-01-28 10:20 UTC (permalink / raw)
Hi to all,
I guess it's something obvious but...
I was taking a look at the nice cows on p.298 cont-eni:
I cannot understand why in compiling this code "test" is always one
line down and never on the same line, just on quarter's side. Quarter
is a small figure, and I tested with other small figures, both in pdf
and png.
\starttext
\hbox {\externalfigure[quarter]} test
\stoptext
Many thanks!
-a-
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \hbox and figures
2006-01-28 10:20 \hbox and figures andrea valle
@ 2006-01-28 10:44 ` Taco Hoekwater
2006-01-28 10:54 ` andrea valle
0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2006-01-28 10:44 UTC (permalink / raw)
andrea valle wrote:
> Hi to all,
> I guess it's something obvious but...
> \hbox {\externalfigure[quarter]} test
If TeX sees a \hbox when in vertical mode, it stays in
vertical mode, simply adding the box to the page. Only
when it sees the 't' from test does it start the next
paragraph. To make the box part of the paragraph, TeX
has to be told to enter horizontal mode first. That is
done by adding \dontleavehmode:
\starttext
\dontleavehmode
\hbox {\externalfigure[quarter]} test
\stoptext
Cheers,
Taco
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \hbox and figures
2006-01-28 10:44 ` Taco Hoekwater
@ 2006-01-28 10:54 ` andrea valle
2006-01-28 10:59 ` Taco Hoekwater
0 siblings, 1 reply; 5+ messages in thread
From: andrea valle @ 2006-01-28 10:54 UTC (permalink / raw)
Thanks as usual Taco,
no errors, but doesn't work for me.
\starttext
\dontleavehmode
\hbox {\externalfigure[quarter][png]} test
\stoptext
The same as before
-a-
On 28 Jan 2006, at 11:44, Taco Hoekwater wrote:
> \dontleavehmode
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \hbox and figures
2006-01-28 10:54 ` andrea valle
@ 2006-01-28 10:59 ` Taco Hoekwater
2006-01-28 17:56 ` andrea valle
0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2006-01-28 10:59 UTC (permalink / raw)
andrea valle wrote:
> Thanks as usual Taco,
> no errors, but doesn't work for me.
>
>
> \starttext
> \dontleavehmode
>
> \hbox {\externalfigure[quarter][png]} test
You have to remove that empty line between
the \dontleavehmode and the \hbox.
Taco
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \hbox and figures
2006-01-28 10:59 ` Taco Hoekwater
@ 2006-01-28 17:56 ` andrea valle
0 siblings, 0 replies; 5+ messages in thread
From: andrea valle @ 2006-01-28 17:56 UTC (permalink / raw)
Thanks,
I have never seen it in the docs (at least, in the ones I know).
Best
-a-
On 28 Jan 2006, at 11:59, Taco Hoekwater wrote:
> andrea valle wrote:
>> Thanks as usual Taco,
>> no errors, but doesn't work for me.
>>
>>
>> \starttext
>> \dontleavehmode
>>
>> \hbox {\externalfigure[quarter][png]} test
>
> You have to remove that empty line between
> the \dontleavehmode and the \hbox.
>
> Taco
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-01-28 17:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-28 10:20 \hbox and figures andrea valle
2006-01-28 10:44 ` Taco Hoekwater
2006-01-28 10:54 ` andrea valle
2006-01-28 10:59 ` Taco Hoekwater
2006-01-28 17:56 ` andrea valle
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).