[NTG-context] \hbox and figures
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 [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \hbox and figures
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \hbox and figures
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 [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \hbox and figures
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
Re: [NTG-context] \hbox and figures
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 [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context