[dev-context] error: You can't use `\vadjust' in internal vertical mode

Hans Hagen pragma at wxs.nl
Fri Jun 12 19:12:51 CEST 2009


Taco Hoekwater wrote:
> Hans Hagen wrote:
>> Taco Hoekwater wrote:
>>> Hans Hagen wrote:
>>>> Hans Hagen wrote:
>>>>> Sanjoy Mahajan wrote:
>>>>>>> Either the bug is fixed or there is a subtle difference between
>>>>>>> our installations, but I do not get an error
>>>>>
>>>>> interesting, i get an error on ...  pplb8r
>>>>>
>>>>> i think i'm going to blame mojca ... (this will trigger her into 
>>>>> solution mode)
>>>>
>>>> ok, the problem is in the images ... please make images self contained 
>>>
>>> I don 't think so. I have the font (which is just Palatino-Roman), and
>>
>> well, the a map file issue .. but i gave up on those funny tex fonts 
>> (esp the ones ending on r)
>>
>> anyhow, with the new zip i get the error
> 
> If I patch \sidefloatoutput (page-sid.tex) like so:
> 
> \def\sidefloatoutput
>   {\iffloatshort
>      \unvbox\normalpagebox
>      \setbox\floatbottom\lastbox
>      \ifdim\wd\floatbottom>\sidefloathsize
>        \penalty-201
>        \box\floatbottom
>      \else
>        \ifvoid\floatbottom
>        \else
>          \restoreleftindent
>          \ifdim\wd\floatbottom<\sidefloathsize
>            \parskip\zeropoint
>            %\noindent
> -           \vadjust{\penalty\minusone}%
> +           \ifinner\else \vadjust{\penalty\minusone}\fi
> 
> 
> it runs without error. It looks like the side float output routine
> is called in the middle of this math display:
> 
>   \startformula
>   a-b+c-d+f-g+h-e\equiv1\ (\mod 3),
>   \stopformula
>   which shows that all vertices cannot be made multiples of~3
>   simultaneously.
> 
> I think my patch somewhat odd, but at least it does not crash and I fear
> that the sidefloat output in this case (a float next to a display that
> forces a page break) is somewhat undefined anyway.

ah .. i was already staring at it for a while

it's the first time that i run into something with side floats (started 
out as copied code from a tug boat article)

there's also a patch needed for

        \ifinner\else\vadjust{\penalty\minusone}\fi

later on

Thanks

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list