<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 June 2014 14:45, Zdenek Wagner <span dir="ltr"><<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-06-20 15:32 GMT+02:00 David Carlisle <span dir="ltr"><<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>This is not the list for reporting problems with macro code (the texlive maintainers maintain the system<br>
</div>but can not control the individual packages which are taken from CTAN)<br>
<br></div>However your document arguably highlights a bug (unreported I think) that's been in latex since the start<br><br>\leavevmode\begin{picture}<br><br></div>should fix it...<span><font color="#888888"><br>
</font></span></div></div></blockquote><div><br></div></div></div><div>I would not consider it a bug. The center environment among others sets \leftskip, \rightskip and \parfillskip. These values are used in the horizontal mode. The picture environment is a box. If it is placed in the vertical mode, the settings made by the ceter environment are not in effect. \leavevmode starts the horizontal mode. In addition, the center environment is not just an environment for centering, it is defined as a list and does too many things. If you have a list without a paragraph, you get the error.<br>
</div></div></div></div></blockquote><div><br></div><div>yes sure but all latex boxes are supposed to leavevmode, and \picture does as well precisely so it works in center etc, but it does it just before use rather than before an internal savebox, and that's too late. I moved a \leavevmode in one of the graphics commands not so long ago for the same issue.<br>
<br><br></div><div>\makeatletter<br></div><div> \long\gdef\picture#1{\leavevmode\pictur@#1} <br></div><div>\makeatother<br><br></div><div>fixes it.<br></div><div><br></div></div></div></div>