[texhax] \epsfbox

David Carlisle d.p.carlisle at gmail.com
Wed Aug 8 22:35:20 CEST 2018


This is something very retro about this whole exchange, the usage is
so 1980's...:-) but anyway

the \vtop are doing nothing different to \vbox as in each case there
is only one nested box, and the vbox around epsbox is doing nothing at
all as that's already a box.

the hbox aligns its contents horizontally with their reference points
at the same level, the reference point of the first vtop is the
baseline of its first box which is baseline of hello, and the
reference point of the second vtop is the baseline of its first box,
which is that of the epsfbox, which is the bottom edge of the image.

you could use

\input epsf

\hbox{\vtop{\hsize5cm\noindent hallo}%
      \vtop{\null\epsfbox{fis1.ps}}}%

\bye

which puts the baseline of hello at the baseline of the null, above
the image, or use \lower to lower it a bit if that is too high.

David



On Wed, 8 Aug 2018 at 20:59, Rodolfo Medina <rodolfo.medina at gmail.com> wrote:
>
> Hi all.
>
> In the attached example, to be processed with simply `tex <filename>', the word
> `hallo' is bottomed down in the first box, whereas I want it at top.  This
> unwanted effect is caused somehow by the presence of \epsfbox: normally, if in
> place of the \epsfbox there were some text, both would be placed at the tops of
> their own boxes.  Please help whoever can to understand why \epsfbox behaves
> like this and how to avoid that.  I'm also attaching the ps file.
>
> Thanks in advance,
>
> Cheers,
>
> Rodolfo
>
>
> \input epsf
>
> \hbox{\vtop{\hsize5cm\noindent hallo}%
>       \vtop{\epsfbox{fis1.ps}}}%
>
> \bye
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org


More information about the texhax mailing list